mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8244775: Remove unnecessary dependency to jfrEvents.hpp
Reviewed-by: kbarrett, kvn
This commit is contained in:
parent
49bfbd3bc7
commit
92d1c4a61a
16 changed files with 110 additions and 59 deletions
|
@ -631,25 +631,7 @@ class Compile : public Phase {
|
|||
#endif
|
||||
}
|
||||
|
||||
void print_method(CompilerPhaseType cpt, int level = 1, int idx = 0) {
|
||||
EventCompilerPhase event;
|
||||
if (event.should_commit()) {
|
||||
CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, cpt, C->_compile_id, level);
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
if (should_print(level)) {
|
||||
char output[1024];
|
||||
if (idx != 0) {
|
||||
jio_snprintf(output, sizeof(output), "%s:%d", CompilerPhaseTypeHelper::to_string(cpt), idx);
|
||||
} else {
|
||||
jio_snprintf(output, sizeof(output), "%s", CompilerPhaseTypeHelper::to_string(cpt));
|
||||
}
|
||||
_printer->print_method(output, level);
|
||||
}
|
||||
#endif
|
||||
C->_latest_stage_start_counter.stamp();
|
||||
}
|
||||
void print_method(CompilerPhaseType cpt, int level = 1, int idx = 0);
|
||||
|
||||
#ifndef PRODUCT
|
||||
void igv_print_method_to_file(const char* phase_name = "Debug", bool append = false);
|
||||
|
@ -658,18 +640,7 @@ class Compile : public Phase {
|
|||
static IdealGraphPrinter* debug_network_printer() { return _debug_network_printer; }
|
||||
#endif
|
||||
|
||||
void end_method(int level = 1) {
|
||||
EventCompilerPhase event;
|
||||
if (event.should_commit()) {
|
||||
CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, PHASE_END, C->_compile_id, level);
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
if (_printer && _printer->should_print(level)) {
|
||||
_printer->end_method();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
void end_method(int level = 1);
|
||||
|
||||
int macro_count() const { return _macro_nodes->length(); }
|
||||
int predicate_count() const { return _predicate_opaqs->length();}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue