diff options
author | 2020-05-12 13:58:51 +0100 | |
---|---|---|
committer | 2020-05-13 08:00:22 +0000 | |
commit | 02ca05a5a6e3f5028c6c2987a81be481d07bc617 (patch) | |
tree | a364c4a46c573fdfddf607b0e78e5fd3f455c17f /compiler/optimizing/builder.h | |
parent | 5868adaefe72cc8bcdcd8325c40f712375a506d1 (diff) |
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
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r-- | compiler/optimizing/builder.h | 5 |
1 files changed, 1 insertions, 4 deletions
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<const uint8_t> interpreter_metadata, - VariableSizedHandleScope* handles); + ArrayRef<const uint8_t> 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<const uint8_t> interpreter_metadata_; - VariableSizedHandleScope* const handles_; const DataType::Type return_type_; DISALLOW_COPY_AND_ASSIGN(HGraphBuilder); |