From 2c76257e4bfcd6f522b0cd3487ba7d9900043243 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 27 Jun 2018 10:09:11 +0100 Subject: Remove unused InvokeInfo from stack maps and the runtime. Test: test-art-host-gtest Change-Id: I5ce28973042f9241e72ceb52fc5db472ca571563 --- compiler/optimizing/code_generator.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'compiler/optimizing/code_generator.cc') diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 074f249fe1..0ebf4bec0a 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -70,9 +70,6 @@ namespace art { -// If true, we record the static and direct invokes in the invoke infos. -static constexpr bool kEnableDexLayoutOptimizations = false; - // Return whether a location is consistent with a type. static bool CheckType(DataType::Type type, Location location) { if (location.IsFpuRegister() @@ -1136,15 +1133,6 @@ void CodeGenerator::RecordPcInfo(HInstruction* instruction, locations->GetStackMask(), kind); EmitEnvironment(environment, slow_path); - // Record invoke info, the common case for the trampoline is super and static invokes. Only - // record these to reduce oat file size. - if (kEnableDexLayoutOptimizations) { - if (instruction->IsInvokeStaticOrDirect()) { - HInvoke* const invoke = instruction->AsInvokeStaticOrDirect(); - DCHECK(environment != nullptr); - stack_map_stream->AddInvoke(invoke->GetInvokeType(), invoke->GetDexMethodIndex()); - } - } stack_map_stream->EndStackMapEntry(); if (osr) { -- cgit v1.2.3-59-g8ed1b