< prev index next >

src/hotspot/cpu/arm/stubGenerator_arm.cpp

rename things

*** 24,34 **** #include "precompiled.hpp" #include "asm/assembler.hpp" #include "assembler_arm.inline.hpp" #include "gc/shared/barrierSet.hpp" ! #include "gc/shared/barrierSetCodeGen.hpp" #include "interpreter/interpreter.hpp" #include "nativeInst_arm.hpp" #include "oops/instanceOop.hpp" #include "oops/method.hpp" #include "oops/objArrayKlass.hpp" --- 24,34 ---- #include "precompiled.hpp" #include "asm/assembler.hpp" #include "assembler_arm.inline.hpp" #include "gc/shared/barrierSet.hpp" ! #include "gc/shared/barrierSetAssembler.hpp" #include "interpreter/interpreter.hpp" #include "nativeInst_arm.hpp" #include "oops/instanceOop.hpp" #include "oops/method.hpp" #include "oops/objArrayKlass.hpp" ***************
*** 2874,2886 **** __ sub_ptr_scaled_int32(to, to, count, LogBytesPerHeapOop); } // 'to' is the beginning of the region ! BarrierSet *bs = BarrierSet::barrier_set(); ! BarrierSetCodeGen *code_gen = bs->code_gen(); ! code_gen->arraycopy_epilogue(this, decorators, true, to, count, tmp); if (status) { __ mov(R0, 0); // OK } --- 2874,2885 ---- __ sub_ptr_scaled_int32(to, to, count, LogBytesPerHeapOop); } // 'to' is the beginning of the region ! BarrierSetAssembler *bs = BarrierSet::barrier_set()->barrier_set_assembler(); ! bs->arraycopy_epilogue(this, decorators, true, to, count, tmp); if (status) { __ mov(R0, 0); // OK } ***************
*** 2952,2964 **** } if (aligned) { decorators |= ARRAYCOPY_ALIGNED; } ! BarrierSet *bs = BarrierSet::barrier_set(); ! BarrierSetCodeGen *code_gen = bs->code_gen(); ! code_gen->arraycopy_prologue(this, decorators, true, to, count, callee_saved_regs); // save arguments for barrier generation (after the pre barrier) __ mov(saved_count, count); if (!forward) { --- 2951,2962 ---- } if (aligned) { decorators |= ARRAYCOPY_ALIGNED; } ! BarrierSetAssembler *bs = BarrierSet::barrier_set()->barrier_set_assembler(); ! bs->arraycopy_prologue(this, decorators, true, to, count, callee_saved_regs); // save arguments for barrier generation (after the pre barrier) __ mov(saved_count, count); if (!forward) { ***************
*** 3219,3231 **** pushed+=1; #endif // AARCH64 DecoratorSet decorators = ARRAYCOPY_CHECKCAST; ! BarrierSet *bs = BarrierSet::barrier_set(); ! BarrierSetCodeGen *code_gen = bs->code_gen(); ! code_gen->arraycopy_prologue(this, decorators, true, to, count, callee_saved_regs); #ifndef AARCH64 const RegisterSet caller_saved_regs = RegisterSet(R4,R6) | RegisterSet(R8,R9) | altFP_7_11; __ push(caller_saved_regs); assert(caller_saved_regs.size() == 6, "check the count"); --- 3217,3228 ---- pushed+=1; #endif // AARCH64 DecoratorSet decorators = ARRAYCOPY_CHECKCAST; ! BarrierSetAssembler *bs = BarrierSet::barrier_set()->barrier_set_assembler(); ! bs->arraycopy_prologue(this, decorators, true, to, count, callee_saved_regs); #ifndef AARCH64 const RegisterSet caller_saved_regs = RegisterSet(R4,R6) | RegisterSet(R8,R9) | altFP_7_11; __ push(caller_saved_regs); assert(caller_saved_regs.size() == 6, "check the count"); ***************
*** 3299,3309 **** __ subs_32(copied, saved_count, count); // copied count (in saved reg) __ b(L_not_copied, eq); // nothing was copied, skip post barrier __ sub(to, to, AsmOperand(copied, lsl, LogBytesPerHeapOop)); // initial to value __ mov(R12, copied); // count arg scratched by post barrier ! code_gen->arraycopy_epilogue(this, decorators, true, to, R12, R3); assert_different_registers(R3,R12,LR,copied,saved_count); inc_counter_np(SharedRuntime::_checkcast_array_copy_ctr, R3, R12); __ BIND(L_not_copied); --- 3296,3306 ---- __ subs_32(copied, saved_count, count); // copied count (in saved reg) __ b(L_not_copied, eq); // nothing was copied, skip post barrier __ sub(to, to, AsmOperand(copied, lsl, LogBytesPerHeapOop)); // initial to value __ mov(R12, copied); // count arg scratched by post barrier ! bs->arraycopy_epilogue(this, decorators, true, to, R12, R3); assert_different_registers(R3,R12,LR,copied,saved_count); inc_counter_np(SharedRuntime::_checkcast_array_copy_ctr, R3, R12); __ BIND(L_not_copied);
< prev index next >