From e1412dacbf1d2a809bd1fca658cc8cb8f61f8ee6 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 13 Feb 2019 17:27:17 +0000 Subject: Revert^2 "Add code size to CodeInfo" This temporarily adds 0.25% to oat file size. The space will be reclaimed back in follow-up CL. This reverts commit 8f20a23a35fa6fbe4dcb4ff70268a24dc7fb2a24. Reason for revert: Reland as-is after CL/903819 Bug: 123510633 Test: DCHECK compare the two stored code sizes. Change-Id: Ia3ab31c208948f4996188764fcdcba13d9977d19 --- compiler/optimizing/code_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/code_generator.cc') diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 9e2f5cd508..122f27b0e0 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -440,7 +440,7 @@ void CodeGenerator::Compile(CodeAllocator* allocator) { // Finalize instructions in assember; Finalize(allocator); - GetStackMapStream()->EndMethod(); + GetStackMapStream()->EndMethod(GetAssembler()->CodeSize()); } void CodeGenerator::Finalize(CodeAllocator* allocator) { -- cgit v1.2.3-59-g8ed1b