--- old/src/cpu/ppc/vm/sharedRuntime_ppc.cpp 2016-02-18 15:25:01.386823077 -0800 +++ new/src/cpu/ppc/vm/sharedRuntime_ppc.cpp 2016-02-18 15:25:01.249813483 -0800 @@ -482,6 +482,18 @@ assert(size <= 8, "%d bytes vectors are not supported", size); return size > 8; } + +size_t SharedRuntime::trampoline_size() { + return Assembler::load_const_size + 8; +} + +void SharedRuntime::generate_trampoline(MacroAssembler *masm, address destination) { + Register Rtemp = R12; + __ load_const(Rtemp, destination); + __ mtctr(Rtemp); + __ bctr(); +} + #ifdef COMPILER2 static int reg2slot(VMReg r) { return r->reg2stack() + SharedRuntime::out_preserve_stack_slots();