8293109: Remove unused methods in Compiler

Reviewed-by: roland, thartmann, kvn
This commit is contained in:
Johan Sjölén 2022-08-31 06:57:54 +00:00 committed by Tobias Hartmann
parent d2eed079c3
commit c42478b723
2 changed files with 0 additions and 35 deletions

@ -716,31 +716,6 @@ void CompilationResourceObj::print_on(outputStream* st) const {
st->print_cr("CompilationResourceObj(" INTPTR_FORMAT ")", p2i(this));
}
void Compilation::compile_only_this_method() {
ResourceMark rm;
fileStream stream(os::fopen("c1_compile_only", "wt"));
stream.print_cr("# c1 compile only directives");
compile_only_this_scope(&stream, hir()->top_scope());
}
void Compilation::compile_only_this_scope(outputStream* st, IRScope* scope) {
st->print("CompileOnly=");
scope->method()->holder()->name()->print_symbol_on(st);
st->print(".");
scope->method()->name()->print_symbol_on(st);
st->cr();
}
void Compilation::exclude_this_method() {
fileStream stream(os::fopen(".hotspot_compiler", "at"));
stream.print("exclude ");
method()->holder()->name()->print_symbol_on(&stream);
stream.print(" ");
method()->name()->print_symbol_on(&stream);
stream.cr();
stream.cr();
}
// Called from debugger to get the interval with 'reg_num' during register allocation.
Interval* find_interval(int reg_num) {
return Compilation::current()->allocator()->find_interval_at(reg_num);

@ -220,16 +220,6 @@ class Compilation: public StackObj {
// timers
static void print_timers();
#ifndef PRODUCT
// debugging support.
// produces a file named c1compileonly in the current directory with
// directives to compile only the current method and it's inlines.
// The file can be passed to the command line option -XX:Flags=<filename>
void compile_only_this_method();
void compile_only_this_scope(outputStream* st, IRScope* scope);
void exclude_this_method();
#endif // PRODUCT
bool is_profiling() {
return env()->comp_level() == CompLevel_full_profile ||
env()->comp_level() == CompLevel_limited_profile;