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/builder.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compiler/optimizing/builder.h') diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 6152740324..8b76dd9106 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -39,14 +39,12 @@ class HGraphBuilder : public ValueObject { const DexCompilationUnit* outer_compilation_unit, CodeGenerator* code_generator, OptimizingCompilerStats* compiler_stats, - ArrayRef interpreter_metadata, - VariableSizedHandleScope* handles); + ArrayRef interpreter_metadata); // Only for unit testing. HGraphBuilder(HGraph* graph, const DexCompilationUnit* dex_compilation_unit, const CodeItemDebugInfoAccessor& accessor, - VariableSizedHandleScope* handles, DataType::Type return_type = DataType::Type::kInt32); GraphAnalysisResult BuildGraph(); @@ -72,7 +70,6 @@ class HGraphBuilder : public ValueObject { OptimizingCompilerStats* const compilation_stats_; const ArrayRef interpreter_metadata_; - VariableSizedHandleScope* const handles_; const DataType::Type return_type_; DISALLOW_COPY_AND_ASSIGN(HGraphBuilder); -- cgit v1.2.3-59-g8ed1b