comparison src/cpu/ppc/vm/cppInterpreter_ppc.cpp @ 17793:c668f307a4c0

8031319: PPC64: Some fixes in ppc and aix coding. Reviewed-by: kvn
author goetz
date Tue, 07 Jan 2014 17:24:59 +0100
parents 67fa91961822
children e5e8aa897002
comparison
equal deleted inserted replaced
17792:4345c6a92f35 17793:c668f307a4c0
1511 __ ld(R0, _top_ijava_frame_abi(frame_manager_lr), R1_SP); 1511 __ ld(R0, _top_ijava_frame_abi(frame_manager_lr), R1_SP);
1512 __ mtlr(R0); 1512 __ mtlr(R0);
1513 // Resize frame to get rid of a potential extension. 1513 // Resize frame to get rid of a potential extension.
1514 __ resize_frame_to_initial_caller(R11_scratch1, R12_scratch2); 1514 __ resize_frame_to_initial_caller(R11_scratch1, R12_scratch2);
1515 1515
1516 assert(StubRoutines::throw_StackOverflowError_entry() != NULL, "generated in wrong order");
1516 // Load target address of the runtime stub. 1517 // Load target address of the runtime stub.
1517 __ load_const(R12_scratch2, (StubRoutines::throw_StackOverflowError_entry())); 1518 __ load_const(R12_scratch2, (StubRoutines::throw_StackOverflowError_entry()));
1518 __ mtctr(R12_scratch2); 1519 __ mtctr(R12_scratch2);
1519 __ bctr(); 1520 __ bctr();
1520 1521
2148 // throw_stackoverflow_stub->VM->throw_stackoverflow_stub->forward_excep-> 2149 // throw_stackoverflow_stub->VM->throw_stackoverflow_stub->forward_excep->
2149 // ->rethrow_excp_entry of frame manager->resume_method 2150 // ->rethrow_excp_entry of frame manager->resume_method
2150 // Since we restored the caller SP above, the rethrow_excp_entry can restore the original interpreter state 2151 // Since we restored the caller SP above, the rethrow_excp_entry can restore the original interpreter state
2151 // registers using the stack and resume the calling method with a pending excp. 2152 // registers using the stack and resume the calling method with a pending excp.
2152 2153
2154 assert(StubRoutines::throw_StackOverflowError_entry() != NULL, "generated in wrong order");
2153 __ load_const(R3_ARG1, (StubRoutines::throw_StackOverflowError_entry())); 2155 __ load_const(R3_ARG1, (StubRoutines::throw_StackOverflowError_entry()));
2154 __ mtctr(R3_ARG1); 2156 __ mtctr(R3_ARG1);
2155 __ bctr(); 2157 __ bctr();
2156 } 2158 }
2157 //============================================================================= 2159 //=============================================================================