From 68efa7b1128486e08ae60cd27181645b27bbd2e4 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Mon, 28 Jan 2019 18:59:23 +0000 Subject: Add code size to CodeInfo This temporarily adds 0.25% to oat file size. The space will be reclaimed back in follow-up CL. Bug: 123510633 Test: DCHECK compare the two stored code sizes. Change-Id: I15340824ca637fd075a4cef87771b06cb96bb9f4 --- 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