hotspot/src/cpu/aarch64/vm/c1_CodeStubs_aarch64.cpp
changeset 34200 0a24709c3861
parent 32086 7590882ae33a
child 35560 b3fa0a291684
equal deleted inserted replaced
34199:ae7dbc401221 34200:0a24709c3861
    39 
    39 
    40 #define __ ce->masm()->
    40 #define __ ce->masm()->
    41 
    41 
    42 void CounterOverflowStub::emit_code(LIR_Assembler* ce) {
    42 void CounterOverflowStub::emit_code(LIR_Assembler* ce) {
    43   __ bind(_entry);
    43   __ bind(_entry);
    44   ce->store_parameter(_method->as_register(), 1);
    44   Metadata *m = _method->as_constant_ptr()->as_metadata();
       
    45   __ mov_metadata(rscratch1, m);
       
    46   ce->store_parameter(rscratch1, 1);
    45   ce->store_parameter(_bci, 0);
    47   ce->store_parameter(_bci, 0);
    46   __ far_call(RuntimeAddress(Runtime1::entry_for(Runtime1::counter_overflow_id)));
    48   __ far_call(RuntimeAddress(Runtime1::entry_for(Runtime1::counter_overflow_id)));
    47   ce->add_call_info_here(_info);
    49   ce->add_call_info_here(_info);
    48   ce->verify_oop_map(_info);
    50   ce->verify_oop_map(_info);
    49   __ b(_continuation);
    51   __ b(_continuation);