< prev index next >

src/cpu/ppc/vm/compiledIC_ppc.cpp

Print this page

        

*** 92,102 **** // // Usage of r1 and r2 in the stubs allows to distinguish them. const int IC_pos_in_java_to_interp_stub = 8; #define __ _masm. ! void CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf) { #ifdef COMPILER2 // Get the mark within main instrs section which is set to the address of the call. address call_addr = cbuf.insts_mark(); // Note that the code buffer's insts_mark is always relative to insts. --- 92,102 ---- // // Usage of r1 and r2 in the stubs allows to distinguish them. const int IC_pos_in_java_to_interp_stub = 8; #define __ _masm. ! address CompiledStaticCall::emit_to_interp_stub(CodeBuffer &cbuf) { #ifdef COMPILER2 // Get the mark within main instrs section which is set to the address of the call. address call_addr = cbuf.insts_mark(); // Note that the code buffer's insts_mark is always relative to insts.
*** 104,115 **** MacroAssembler _masm(&cbuf); // Start the stub. address stub = __ start_a_stub(CompiledStaticCall::to_interp_stub_size()); if (stub == NULL) { ! Compile::current()->env()->record_out_of_memory_failure(); ! return; } // For java_to_interp stubs we use R11_scratch1 as scratch register // and in call trampoline stubs we use R12_scratch2. This way we // can distinguish them (see is_NativeCallTrampolineStub_at()). --- 104,114 ---- MacroAssembler _masm(&cbuf); // Start the stub. address stub = __ start_a_stub(CompiledStaticCall::to_interp_stub_size()); if (stub == NULL) { ! return NULL; // CodeCache is full } // For java_to_interp stubs we use R11_scratch1 as scratch register // and in call trampoline stubs we use R12_scratch2. This way we // can distinguish them (see is_NativeCallTrampolineStub_at()).
*** 147,156 **** --- 146,156 ---- assert(!is_NativeCallTrampolineStub_at(__ addr_at(stub_start_offset)), "must not confuse java_to_interp with trampoline stubs"); // End the stub. __ end_a_stub(); + return stub; #else ShouldNotReachHere(); #endif } #undef __
< prev index next >