From 2808be84a8f86542450670acdb5e6b55498ff5f0 Mon Sep 17 00:00:00 2001 From: Artem Serov Date: Thu, 20 Dec 2018 19:15:11 +0000 Subject: ART: Introduce stackmap with no DexRegInfo. Some of safepoints don't need to have DexRegisterMap info; this will decrease the stackmap size. .oat file size reduction: - boot.oat: -233 kb (-5.4%) - boot-framework.oat: -704 kb (-4.9%) Test: 461-get-reference-vreg, 466-get-live-vreg. Test: 543-env-long-ref, 616-cha*. Test: test-art-target, +gc-stress. Change-Id: Idbad355770e30a30dcf14127642e03ee666878b8 --- compiler/optimizing/stack_map_stream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/stack_map_stream.h') diff --git a/compiler/optimizing/stack_map_stream.h b/compiler/optimizing/stack_map_stream.h index 33c624a36c..f45e3d720e 100644 --- a/compiler/optimizing/stack_map_stream.h +++ b/compiler/optimizing/stack_map_stream.h @@ -68,7 +68,8 @@ class StackMapStream : public DeletableArenaObject { uint32_t native_pc_offset, uint32_t register_mask = 0, BitVector* sp_mask = nullptr, - StackMap::Kind kind = StackMap::Kind::Default); + StackMap::Kind kind = StackMap::Kind::Default, + bool needs_vreg_info = true); void EndStackMapEntry(); void AddDexRegisterEntry(DexRegisterLocation::Kind kind, int32_t value) { -- cgit v1.2.3-59-g8ed1b