comparison src/cpu/sparc/vm/sharedRuntime_sparc.cpp @ 19462:33a783b15758

made use of Graal stubs instead of equivalent HotSpot stubs optional and off by default
author Doug Simon <doug.simon@oracle.com>
date Wed, 18 Feb 2015 01:13:17 +0100
parents 2a69cbe850a8
children 7848fc12602b
comparison
equal deleted inserted replaced
19461:501d2d0778c3 19462:33a783b15758
3519 //__ pushptr(Address(G2_thread, in_bytes(JavaThread::graal_implicit_exception_pc_offset()))); 3519 //__ pushptr(Address(G2_thread, in_bytes(JavaThread::graal_implicit_exception_pc_offset())));
3520 __ ld_ptr(G2_thread, in_bytes(JavaThread::graal_implicit_exception_pc_offset()), O7); 3520 __ ld_ptr(G2_thread, in_bytes(JavaThread::graal_implicit_exception_pc_offset()), O7);
3521 //__ add(G0, 0x321, O7); 3521 //__ add(G0, 0x321, O7);
3522 __ add(O7, -8, O7); 3522 __ add(O7, -8, O7);
3523 //__ st_ptr(I7, SP, I7->sp_offset_in_saved_window()*wordSize + STACK_BIAS); 3523 //__ st_ptr(I7, SP, I7->sp_offset_in_saved_window()*wordSize + STACK_BIAS);
3524
3525 int uncommon_trap_offset = __ offset() - start;
3526
3524 // Save everything in sight. 3527 // Save everything in sight.
3525 masm->block_comment("save_live_regs"); 3528 masm->block_comment("save_live_regs");
3526 (void) RegisterSaver::save_live_registers(masm, 0, &frame_size_words); 3529 (void) RegisterSaver::save_live_registers(masm, 0, &frame_size_words);
3527 masm->block_comment("/save_live_regs"); 3530 masm->block_comment("/save_live_regs");
3528 //__ ld_ptr(G2_thread, in_bytes(JavaThread::graal_implicit_exception_pc_offset()), O7); 3531 //__ ld_ptr(G2_thread, in_bytes(JavaThread::graal_implicit_exception_pc_offset()), O7);
3727 3730
3728 masm->flush(); 3731 masm->flush();
3729 _deopt_blob = DeoptimizationBlob::create(&buffer, oop_maps, 0, exception_offset, reexecute_offset, frame_size_words); 3732 _deopt_blob = DeoptimizationBlob::create(&buffer, oop_maps, 0, exception_offset, reexecute_offset, frame_size_words);
3730 _deopt_blob->set_unpack_with_exception_in_tls_offset(exception_in_tls_offset); 3733 _deopt_blob->set_unpack_with_exception_in_tls_offset(exception_in_tls_offset);
3731 #ifdef GRAAL 3734 #ifdef GRAAL
3735 _deopt_blob->set_uncommon_trap_offset(uncommon_trap_offset);
3732 _deopt_blob->set_implicit_exception_uncommon_trap_offset(implicit_exception_uncommon_trap_offset); 3736 _deopt_blob->set_implicit_exception_uncommon_trap_offset(implicit_exception_uncommon_trap_offset);
3733 #endif 3737 #endif
3734 } 3738 }
3735 3739
3736 #ifdef COMPILER2 3740 #ifdef COMPILER2