176 private:
177 static void print_impl(outputStream* st, Method* method, int compile_id, int comp_level,
178 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false,
179 const char* msg = NULL, bool short_form = false, bool cr = true);
180
181 public:
182 void print(outputStream* st = tty, const char* msg = NULL, bool short_form = false, bool cr = true);
183 static void print(outputStream* st, const nmethod* nm, const char* msg = NULL, bool short_form = false, bool cr = true) {
184 print_impl(st, nm->method(), nm->compile_id(), nm->comp_level(),
185 nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false,
186 msg, short_form, cr);
187 }
188
189 static void print_inline_indent(int inline_level, outputStream* st = tty);
190
191 void print_tty();
192 void print_line_on_error(outputStream* st, char* buf, int buflen);
193
194 void log_task(xmlStream* log);
195 void log_task_queued();
196 void log_task_dequeued(const char* comment);
197 void log_task_start(CompileLog* log);
198 void log_task_done(CompileLog* log);
199
200 void set_failure_reason(const char* reason) {
201 _failure_reason = reason;
202 }
203
204 bool check_break_at_flags();
205
206 static void print_inlining_inner(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg = NULL);
207 static void print_inlining_tty(ciMethod* method, int inline_level, int bci, const char* msg = NULL) {
208 print_inlining_inner(tty, method, inline_level, bci, msg);
209 }
210 };
211
212 #endif // SHARE_VM_COMPILER_COMPILETASK_HPP
|
176 private:
177 static void print_impl(outputStream* st, Method* method, int compile_id, int comp_level,
178 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false,
179 const char* msg = NULL, bool short_form = false, bool cr = true);
180
181 public:
182 void print(outputStream* st = tty, const char* msg = NULL, bool short_form = false, bool cr = true);
183 static void print(outputStream* st, const nmethod* nm, const char* msg = NULL, bool short_form = false, bool cr = true) {
184 print_impl(st, nm->method(), nm->compile_id(), nm->comp_level(),
185 nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false,
186 msg, short_form, cr);
187 }
188
189 static void print_inline_indent(int inline_level, outputStream* st = tty);
190
191 void print_tty();
192 void print_line_on_error(outputStream* st, char* buf, int buflen);
193
194 void log_task(xmlStream* log);
195 void log_task_queued();
196 void log_task_start(CompileLog* log);
197 void log_task_done(CompileLog* log);
198
199 void set_failure_reason(const char* reason) {
200 _failure_reason = reason;
201 }
202
203 bool check_break_at_flags();
204
205 static void print_inlining_inner(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg = NULL);
206 static void print_inlining_tty(ciMethod* method, int inline_level, int bci, const char* msg = NULL) {
207 print_inlining_inner(tty, method, inline_level, bci, msg);
208 }
209 };
210
211 #endif // SHARE_VM_COMPILER_COMPILETASK_HPP
|