389 |
389 |
390 LIR_Opr safepoint_poll_register(); |
390 LIR_Opr safepoint_poll_register(); |
391 |
391 |
392 void profile_branch(If* if_instr, If::Condition cond); |
392 void profile_branch(If* if_instr, If::Condition cond); |
393 void increment_event_counter_impl(CodeEmitInfo* info, |
393 void increment_event_counter_impl(CodeEmitInfo* info, |
394 ciMethod *method, int frequency, |
394 ciMethod *method, LIR_Opr step, int frequency, |
395 int bci, bool backedge, bool notify); |
395 int bci, bool backedge, bool notify); |
396 void increment_event_counter(CodeEmitInfo* info, int bci, bool backedge); |
396 void increment_event_counter(CodeEmitInfo* info, LIR_Opr step, int bci, bool backedge); |
397 void increment_invocation_counter(CodeEmitInfo *info) { |
397 void increment_invocation_counter(CodeEmitInfo *info) { |
398 if (compilation()->count_invocations()) { |
398 if (compilation()->count_invocations()) { |
399 increment_event_counter(info, InvocationEntryBci, false); |
399 increment_event_counter(info, LIR_OprFact::intConst(InvocationCounter::count_increment), InvocationEntryBci, false); |
400 } |
400 } |
401 } |
401 } |
402 void increment_backedge_counter(CodeEmitInfo* info, int bci) { |
402 void increment_backedge_counter(CodeEmitInfo* info, int bci) { |
403 if (compilation()->count_backedges()) { |
403 if (compilation()->count_backedges()) { |
404 increment_event_counter(info, bci, true); |
404 increment_event_counter(info, LIR_OprFact::intConst(InvocationCounter::count_increment), bci, true); |
|
405 } |
|
406 } |
|
407 void increment_backedge_counter_conditionally(LIR_Condition cond, LIR_Opr left, LIR_Opr right, CodeEmitInfo* info, int left_bci, int right_bci, int bci); |
|
408 void increment_backedge_counter(CodeEmitInfo* info, LIR_Opr step, int bci) { |
|
409 if (compilation()->count_backedges()) { |
|
410 increment_event_counter(info, step, bci, true); |
405 } |
411 } |
406 } |
412 } |
407 void decrement_age(CodeEmitInfo* info); |
413 void decrement_age(CodeEmitInfo* info); |
408 CodeEmitInfo* state_for(Instruction* x, ValueStack* state, bool ignore_xhandler = false); |
414 CodeEmitInfo* state_for(Instruction* x, ValueStack* state, bool ignore_xhandler = false); |
409 CodeEmitInfo* state_for(Instruction* x); |
415 CodeEmitInfo* state_for(Instruction* x); |