equal
deleted
inserted
replaced
65 Symbol* signature, MethodMatcher* next); |
65 Symbol* signature, MethodMatcher* next); |
66 MethodMatcher(Symbol* class_name, Symbol* method_name, MethodMatcher* next); |
66 MethodMatcher(Symbol* class_name, Symbol* method_name, MethodMatcher* next); |
67 |
67 |
68 // utility method |
68 // utility method |
69 MethodMatcher* find(methodHandle method) { |
69 MethodMatcher* find(methodHandle method) { |
70 Symbol* class_name = Klass::cast(method->method_holder())->name(); |
70 Symbol* class_name = method->method_holder()->name(); |
71 Symbol* method_name = method->name(); |
71 Symbol* method_name = method->name(); |
72 for (MethodMatcher* current = this; current != NULL; current = current->_next) { |
72 for (MethodMatcher* current = this; current != NULL; current = current->_next) { |
73 if (match(class_name, current->class_name(), current->_class_mode) && |
73 if (match(class_name, current->class_name(), current->_class_mode) && |
74 match(method_name, current->method_name(), current->_method_mode) && |
74 match(method_name, current->method_name(), current->_method_mode) && |
75 (current->signature() == NULL || current->signature() == method->signature())) { |
75 (current->signature() == NULL || current->signature() == method->signature())) { |
622 |
622 |
623 void CompilerOracle::append_exclude_to_file(methodHandle method) { |
623 void CompilerOracle::append_exclude_to_file(methodHandle method) { |
624 assert(has_command_file(), "command file must be specified"); |
624 assert(has_command_file(), "command file must be specified"); |
625 fileStream stream(fopen(cc_file(), "at")); |
625 fileStream stream(fopen(cc_file(), "at")); |
626 stream.print("exclude "); |
626 stream.print("exclude "); |
627 Klass::cast(method->method_holder())->name()->print_symbol_on(&stream); |
627 method->method_holder()->name()->print_symbol_on(&stream); |
628 stream.print("."); |
628 stream.print("."); |
629 method->name()->print_symbol_on(&stream); |
629 method->name()->print_symbol_on(&stream); |
630 method->signature()->print_symbol_on(&stream); |
630 method->signature()->print_symbol_on(&stream); |
631 stream.cr(); |
631 stream.cr(); |
632 stream.cr(); |
632 stream.cr(); |