Mercurial > hg > truffle
comparison src/share/vm/prims/methodHandleWalk.cpp @ 2001:f2da85a9b08e
7001363: java/dyn/InvokeDynamic should not be a well-known class in the JVM
Summary: Because of the removal of language support, the JDK 7 API for JSR 292 no longer includes a public class named java/dyn/InvokeDynamic.
Reviewed-by: jrose, kvn
author | twisti |
---|---|
date | Tue, 30 Nov 2010 09:53:04 -0800 |
parents | f95d63e2154a |
children | 70427f06ea47 |
comparison
equal
deleted
inserted
replaced
1972:f95d63e2154a | 2001:f2da85a9b08e |
---|---|
966 symbolOop name = m->name(); | 966 symbolOop name = m->name(); |
967 symbolOop signature = m->signature(); | 967 symbolOop signature = m->signature(); |
968 | 968 |
969 if (tailcall) { | 969 if (tailcall) { |
970 // Actually, in order to make these methods more recognizable, | 970 // Actually, in order to make these methods more recognizable, |
971 // let's put them in holder classes MethodHandle and InvokeDynamic. | 971 // let's put them in holder class MethodHandle. That way stack |
972 // That way stack walkers and compiler heuristics can recognize them. | 972 // walkers and compiler heuristics can recognize them. |
973 _target_klass = (for_invokedynamic() | 973 _target_klass = SystemDictionary::MethodHandle_klass(); |
974 ? SystemDictionary::InvokeDynamic_klass() | 974 } |
975 : SystemDictionary::MethodHandle_klass()); | |
976 } | |
977 | |
978 // instanceKlass* ik = instanceKlass::cast(klass); | |
979 // tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string()); | |
980 | 975 |
981 // Inline the method. | 976 // Inline the method. |
982 InvocationCounter* ic = m->invocation_counter(); | 977 InvocationCounter* ic = m->invocation_counter(); |
983 ic->set_carry_flag(); | 978 ic->set_carry_flag(); |
984 | 979 |