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/ssa_builder.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'compiler/optimizing/ssa_builder.h') diff --git a/compiler/optimizing/ssa_builder.h b/compiler/optimizing/ssa_builder.h index bb892c9304..a7d4e0ebd3 100644 --- a/compiler/optimizing/ssa_builder.h +++ b/compiler/optimizing/ssa_builder.h @@ -51,19 +51,16 @@ class SsaBuilder : public ValueObject { SsaBuilder(HGraph* graph, Handle class_loader, Handle dex_cache, - VariableSizedHandleScope* handles, ScopedArenaAllocator* local_allocator) : graph_(graph), class_loader_(class_loader), dex_cache_(dex_cache), - handles_(handles), agets_fixed_(false), local_allocator_(local_allocator), ambiguous_agets_(local_allocator->Adapter(kArenaAllocGraphBuilder)), ambiguous_asets_(local_allocator->Adapter(kArenaAllocGraphBuilder)), uninitialized_strings_(local_allocator->Adapter(kArenaAllocGraphBuilder)), uninitialized_string_phis_(local_allocator->Adapter(kArenaAllocGraphBuilder)) { - graph_->InitializeInexactObjectRTI(handles); } GraphAnalysisResult BuildSsa(); @@ -129,7 +126,6 @@ class SsaBuilder : public ValueObject { HGraph* const graph_; Handle class_loader_; Handle dex_cache_; - VariableSizedHandleScope* const handles_; // True if types of ambiguous ArrayGets have been resolved. bool agets_fixed_; -- cgit v1.2.3-59-g8ed1b