116 private:
117 static void print_impl(outputStream* st, Method* method, int compile_id, int comp_level,
118 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false,
119 const char* msg = NULL, bool short_form = false, bool cr = true);
120
121 public:
122 void print(outputStream* st = tty, const char* msg = NULL, bool short_form = false, bool cr = true);
123 static void print(outputStream* st, const nmethod* nm, const char* msg = NULL, bool short_form = false, bool cr = true) {
124 print_impl(st, nm->method(), nm->compile_id(), nm->comp_level(),
125 nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false,
126 msg, short_form, cr);
127 }
128
129 static void print_inline_indent(int inline_level, outputStream* st = tty);
130
131 void print_tty();
132 void print_line_on_error(outputStream* st, char* buf, int buflen);
133
134 void log_task(xmlStream* log);
135 void log_task_queued();
136 void log_task_start(CompileLog* log);
137 void log_task_done(CompileLog* log);
138
139 void set_failure_reason(const char* reason) {
140 _failure_reason = reason;
141 }
142
143 bool check_break_at_flags();
144
145 static void print_inlining_inner(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg = NULL);
146 static void print_inlining_tty(ciMethod* method, int inline_level, int bci, const char* msg = NULL) {
147 print_inlining_inner(tty, method, inline_level, bci, msg);
148 }
149 };
150
151 #endif // SHARE_VM_COMPILER_COMPILETASK_HPP
|
116 private:
117 static void print_impl(outputStream* st, Method* method, int compile_id, int comp_level,
118 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false,
119 const char* msg = NULL, bool short_form = false, bool cr = true);
120
121 public:
122 void print(outputStream* st = tty, const char* msg = NULL, bool short_form = false, bool cr = true);
123 static void print(outputStream* st, const nmethod* nm, const char* msg = NULL, bool short_form = false, bool cr = true) {
124 print_impl(st, nm->method(), nm->compile_id(), nm->comp_level(),
125 nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false,
126 msg, short_form, cr);
127 }
128
129 static void print_inline_indent(int inline_level, outputStream* st = tty);
130
131 void print_tty();
132 void print_line_on_error(outputStream* st, char* buf, int buflen);
133
134 void log_task(xmlStream* log);
135 void log_task_queued();
136 void log_task_dequeued(const char* comment);
137 void log_task_start(CompileLog* log);
138 void log_task_done(CompileLog* log);
139
140 void set_failure_reason(const char* reason) {
141 _failure_reason = reason;
142 }
143
144 bool check_break_at_flags();
145
146 static void print_inlining_inner(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg = NULL);
147 static void print_inlining_tty(ciMethod* method, int inline_level, int bci, const char* msg = NULL) {
148 print_inlining_inner(tty, method, inline_level, bci, msg);
149 }
150 };
151
152 #endif // SHARE_VM_COMPILER_COMPILETASK_HPP
|