comparison src/share/vm/c1/c1_Runtime1.cpp @ 2891:75a99b4f1c98

Rebranded C++ part from C1X to Graal.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 08 Jun 2011 14:01:51 +0200
parents 008adfd6d850
children d577d07cedec
comparison
equal deleted inserted replaced
2890:c23d45daff9b 2891:75a99b4f1c98
199 case g1_pre_barrier_slow_id: 199 case g1_pre_barrier_slow_id:
200 case g1_post_barrier_slow_id: 200 case g1_post_barrier_slow_id:
201 case slow_subtype_check_id: 201 case slow_subtype_check_id:
202 case fpu2long_stub_id: 202 case fpu2long_stub_id:
203 case unwind_exception_id: 203 case unwind_exception_id:
204 case c1x_verify_pointer_id: 204 case graal_verify_pointer_id:
205 case c1x_unwind_exception_call_id: 205 case graal_unwind_exception_call_id:
206 case c1x_slow_subtype_check_id: 206 case graal_slow_subtype_check_id:
207 case c1x_arithmetic_frem_id: 207 case graal_arithmetic_frem_id:
208 case c1x_arithmetic_drem_id: 208 case graal_arithmetic_drem_id:
209 #ifndef TIERED 209 #ifndef TIERED
210 case counter_overflow_id: // Not generated outside the tiered world 210 case counter_overflow_id: // Not generated outside the tiered world
211 #endif 211 #endif
212 #ifdef SPARC 212 #ifdef SPARC
213 case handle_exception_nofpu_id: // Unused on sparc 213 case handle_exception_nofpu_id: // Unused on sparc
466 JRT_ENTRY_NO_ASYNC(static address, exception_handler_for_pc_helper(JavaThread* thread, oopDesc* ex, address pc, nmethod*& nm)) 466 JRT_ENTRY_NO_ASYNC(static address, exception_handler_for_pc_helper(JavaThread* thread, oopDesc* ex, address pc, nmethod*& nm))
467 // Reset method handle flag. 467 // Reset method handle flag.
468 thread->set_is_method_handle_return(false); 468 thread->set_is_method_handle_return(false);
469 469
470 Handle exception(thread, ex); 470 Handle exception(thread, ex);
471 if (UseC1X && exception.is_null()) { 471 if (UseGraal && exception.is_null()) {
472 exception = Exceptions::new_exception(thread, vmSymbols::java_lang_NullPointerException(), NULL); 472 exception = Exceptions::new_exception(thread, vmSymbols::java_lang_NullPointerException(), NULL);
473 } 473 }
474 nm = CodeCache::find_nmethod(pc); 474 nm = CodeCache::find_nmethod(pc);
475 assert(nm != NULL, "this is not an nmethod"); 475 assert(nm != NULL, "this is not an nmethod");
476 // Adjust the pc as needed/ 476 // Adjust the pc as needed/
659 659
660 660
661 JRT_ENTRY_NO_ASYNC(void, Runtime1::monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock)) 661 JRT_ENTRY_NO_ASYNC(void, Runtime1::monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock))
662 NOT_PRODUCT(_monitorenter_slowcase_cnt++;) 662 NOT_PRODUCT(_monitorenter_slowcase_cnt++;)
663 #ifdef ASSERT 663 #ifdef ASSERT
664 if (TraceC1X >= 3) { 664 if (Tracegraal >= 3) {
665 tty->print_cr("entered locking slow case with obj=" INTPTR_FORMAT " and lock= " INTPTR_FORMAT, obj, lock); 665 tty->print_cr("entered locking slow case with obj=" INTPTR_FORMAT " and lock= " INTPTR_FORMAT, obj, lock);
666 } 666 }
667 if (PrintBiasedLockingStatistics) { 667 if (PrintBiasedLockingStatistics) {
668 Atomic::inc(BiasedLocking::slow_path_entry_count_addr()); 668 Atomic::inc(BiasedLocking::slow_path_entry_count_addr());
669 } 669 }
687 lock->set_obj(obj); 687 lock->set_obj(obj);
688 ObjectSynchronizer::fast_enter(h_obj, lock->lock(), false, THREAD); 688 ObjectSynchronizer::fast_enter(h_obj, lock->lock(), false, THREAD);
689 } 689 }
690 } 690 }
691 #ifdef ASSERT 691 #ifdef ASSERT
692 if (TraceC1X >= 3) { 692 if (Tracegraal >= 3) {
693 tty->print_cr("exiting locking lock state: obj=" INTPTR_FORMAT, lock->obj()); 693 tty->print_cr("exiting locking lock state: obj=" INTPTR_FORMAT, lock->obj());
694 lock->lock()->print_on(tty); 694 lock->lock()->print_on(tty);
695 tty->print_cr(""); 695 tty->print_cr("");
696 tty->print_cr("done"); 696 tty->print_cr("done");
697 } 697 }