From 02ca05a5a6e3f5028c6c2987a81be481d07bc617 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 12 May 2020 13:58:51 +0100 Subject: Move HandleCache to HGraph. This avoids passing the `VariableSizedHandleScope*` argument around and eliminates HGraph::inexact_object_rti_ and its initialization. The latter shall allow running Optimizing gtests that do not require type information without creating a Runtime in future. (To be implemented in a separate CL.) Test: m test-art-host-gtest Test: testrunner.py --host --optmizing Test: aosp_taimen-userdebug boots. Change-Id: I36fe9bc556c6d610d644c8c14cc74c9985a14d64 --- compiler/optimizing/instruction_builder.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compiler/optimizing/instruction_builder.h') diff --git a/compiler/optimizing/instruction_builder.h b/compiler/optimizing/instruction_builder.h index 95d331558f..04f2a22301 100644 --- a/compiler/optimizing/instruction_builder.h +++ b/compiler/optimizing/instruction_builder.h @@ -41,7 +41,6 @@ class InstructionOperands; class OptimizingCompilerStats; class ScopedObjectAccess; class SsaBuilder; -class VariableSizedHandleScope; namespace mirror { class Class; @@ -61,7 +60,6 @@ class HInstructionBuilder : public ValueObject { CodeGenerator* code_generator, ArrayRef interpreter_metadata, OptimizingCompilerStats* compiler_stats, - VariableSizedHandleScope* handles, ScopedArenaAllocator* local_allocator); bool Build(); @@ -301,7 +299,6 @@ class HInstructionBuilder : public ValueObject { ArenaAllocator* const allocator_; HGraph* const graph_; - VariableSizedHandleScope* const handles_; // The dex file where the method being compiled is, and the bytecode data. const DexFile* const dex_file_; @@ -343,7 +340,7 @@ class HInstructionBuilder : public ValueObject { ScopedArenaVector loop_headers_; // Cached resolved types for the current compilation unit's DexFile. - // Handle<>s reference entries in the `handles_`. + // Handle<>s reference entries in the `graph_->GetHandleCache()`. ScopedArenaSafeMap> class_cache_; static constexpr int kDefaultNumberOfLoops = 2; -- cgit v1.2.3-59-g8ed1b