comparison src/share/vm/prims/methodHandleWalk.cpp @ 1783:d5d065957597

6953144: Tiered compilation Summary: Infrastructure for tiered compilation support (interpreter + c1 + c2) for 32 and 64 bit. Simple tiered policy implementation. Reviewed-by: kvn, never, phh, twisti
author iveresov
date Fri, 03 Sep 2010 17:51:07 -0700
parents e0ba4e04c839
children d257356e35f0
comparison
equal deleted inserted replaced
1782:f353275af40e 1783:d5d065957597
977 // instanceKlass* ik = instanceKlass::cast(klass); 977 // instanceKlass* ik = instanceKlass::cast(klass);
978 // tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string()); 978 // tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string());
979 979
980 // Inline the method. 980 // Inline the method.
981 InvocationCounter* ic = m->invocation_counter(); 981 InvocationCounter* ic = m->invocation_counter();
982 ic->set_carry(); 982 ic->set_carry_flag();
983 983
984 for (int i = 0; i < argc; i++) { 984 for (int i = 0; i < argc; i++) {
985 ArgToken arg = argv[i]; 985 ArgToken arg = argv[i];
986 TokenType tt = arg.token_type(); 986 TokenType tt = arg.token_type();
987 BasicType bt = arg.basic_type(); 987 BasicType bt = arg.basic_type();
1207 m->set_exception_table(exception_handlers()); 1207 m->set_exception_table(exception_handlers());
1208 1208
1209 // Set the carry bit of the invocation counter to force inlining of 1209 // Set the carry bit of the invocation counter to force inlining of
1210 // the adapter. 1210 // the adapter.
1211 InvocationCounter* ic = m->invocation_counter(); 1211 InvocationCounter* ic = m->invocation_counter();
1212 ic->set_carry(); 1212 ic->set_carry_flag();
1213 1213
1214 // Rewrite the method and set up the constant pool cache. 1214 // Rewrite the method and set up the constant pool cache.
1215 objArrayOop m_array = oopFactory::new_system_objArray(1, CHECK_(nullHandle)); 1215 objArrayOop m_array = oopFactory::new_system_objArray(1, CHECK_(nullHandle));
1216 objArrayHandle methods(THREAD, m_array); 1216 objArrayHandle methods(THREAD, m_array);
1217 methods->obj_at_put(0, m()); 1217 methods->obj_at_put(0, m());