diff options
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index c3ccf954d0..16abf9d37d 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -800,8 +800,6 @@ CodeGenerator* OptimizingCompiler::TryCompile(ArenaAllocator* allocator, dead_reference_safe = false; } - bool is_instrumentation_enabled = - Runtime::Current()->GetInstrumentation()->NeedInstrumentationSupportForJIT(); HGraph* graph = new (allocator) HGraph( allocator, arena_stack, @@ -811,7 +809,7 @@ CodeGenerator* OptimizingCompiler::TryCompile(ArenaAllocator* allocator, compiler_options.GetInstructionSet(), kInvalidInvokeType, dead_reference_safe, - compiler_options.GetDebuggable() || is_instrumentation_enabled, + compiler_options.GetDebuggable(), compilation_kind); if (method != nullptr) { @@ -1298,8 +1296,7 @@ bool OptimizingCompiler::JitCompile(Thread* self, /* is_full_debug_info= */ compiler_options.GetGenerateDebugInfo(), compilation_kind, /* has_should_deoptimize_flag= */ false, - cha_single_implementation_list, - /* has_instrumentation_support= */ false)) { + cha_single_implementation_list)) { code_cache->Free(self, region, reserved_code.data(), reserved_data.data()); return false; } @@ -1407,8 +1404,7 @@ bool OptimizingCompiler::JitCompile(Thread* self, /* is_full_debug_info= */ compiler_options.GetGenerateDebugInfo(), compilation_kind, codegen->GetGraph()->HasShouldDeoptimizeFlag(), - codegen->GetGraph()->GetCHASingleImplementationList(), - codegen->GetGraph()->IsDebuggable())) { + codegen->GetGraph()->GetCHASingleImplementationList())) { code_cache->Free(self, region, reserved_code.data(), reserved_data.data()); return false; } |