diff options
author | 2018-06-03 12:00:24 +0100 | |
---|---|---|
committer | 2018-06-06 13:14:04 +0100 | |
commit | d97e0828958fd14a962e37af2865bc2e628547ce (patch) | |
tree | bcb4ef65fee75cd64c222a2e3bfb44da6b60ebd5 /compiler/optimizing/stack_map_stream.cc | |
parent | 6e69e52a12883386f91d014324bebee867ca7877 (diff) |
Reduce code repetition in stack maps with macros.
Simplifies the code somewhat. It also makes it possible
to get column names as strings for the debugging code.
Test: test-art-host-gtest-stack_map_test
Change-Id: I1a2e146e7a4372c0752693313e1b881cb4a818bc
Diffstat (limited to 'compiler/optimizing/stack_map_stream.cc')
-rw-r--r-- | compiler/optimizing/stack_map_stream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/stack_map_stream.cc b/compiler/optimizing/stack_map_stream.cc index d80e2fc0e3..3685ab2df4 100644 --- a/compiler/optimizing/stack_map_stream.cc +++ b/compiler/optimizing/stack_map_stream.cc @@ -129,7 +129,7 @@ void StackMapStream::AddInvoke(InvokeType invoke_type, uint32_t dex_method_index CHECK_EQ(invoke_info.GetNativePcOffset(instruction_set_), StackMap::UnpackNativePc(packed_native_pc, instruction_set_)); CHECK_EQ(invoke_info.GetInvokeType(), invoke_type); - CHECK_EQ(method_infos_[invoke_info.GetMethodIndexIdx()], dex_method_index); + CHECK_EQ(method_infos_[invoke_info.GetMethodInfoIndex()], dex_method_index); }); } } @@ -179,7 +179,7 @@ void StackMapStream::BeginInlineInfoEntry(ArtMethod* method, if (encode_art_method) { CHECK_EQ(inline_info.GetArtMethod(), method); } else { - CHECK_EQ(method_infos_[inline_info.GetMethodIndexIdx()], + CHECK_EQ(method_infos_[inline_info.GetMethodInfoIndex()], method->GetDexMethodIndexUnchecked()); } CHECK_EQ(inline_info.HasDexRegisterMap(), (num_dex_registers != 0)); |