summaryrefslogtreecommitdiff
path: root/compiler/exception_test.cc
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-06-23 22:05:49 +0100
committerDavid Srbecky <dsrbecky@google.com>2018-06-26 16:51:15 +0100
commitf6ba5b316b51d0fb9f91cb51a42e51dfeee62ee4 (patch)
treeac3b776ae3c20fc957949d06dd878ef3ffa6ffb5 /compiler/exception_test.cc
parentcca7cb9ffa56d8ab8fd0c5997c8bfd965d7426c1 (diff)
Add method frame info to CodeInfo.
The stored information will be used in follow-up CLs. This temporarily increases .oat file size by 0.7%. Test: test-art-host-gtest Change-Id: Ie7d898b06398ae44287bb1e8153861ab112a216c
Diffstat (limited to 'compiler/exception_test.cc')
-rw-r--r--compiler/exception_test.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/exception_test.cc b/compiler/exception_test.cc
index 8235be943b..b56a991e74 100644
--- a/compiler/exception_test.cc
+++ b/compiler/exception_test.cc
@@ -77,13 +77,10 @@ class ExceptionTest : public CommonRuntimeTest {
ArenaStack arena_stack(&pool);
ScopedArenaAllocator allocator(&arena_stack);
StackMapStream stack_maps(&allocator, kRuntimeISA);
- stack_maps.BeginStackMapEntry(kDexPc,
- native_pc_offset,
- /* register_mask */ 0u,
- /* sp_mask */ nullptr,
- /* num_dex_registers */ 0u,
- /* inlining_depth */ 0u);
+ stack_maps.BeginMethod(4 * sizeof(void*), 0u, 0u, 0u);
+ stack_maps.BeginStackMapEntry(kDexPc, native_pc_offset);
stack_maps.EndStackMapEntry();
+ stack_maps.EndMethod();
const size_t stack_maps_size = stack_maps.PrepareForFillIn();
const size_t header_size = sizeof(OatQuickMethodHeader);
const size_t code_alignment = GetInstructionSetAlignment(kRuntimeISA);