diff options
author | David Srbecky <dsrbecky@google.com> | 2018-06-13 18:55:35 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2018-06-13 19:03:09 +0100 |
commit | 50fac06c51864f293c61ff9d0983b82698cf6dac (patch) | |
tree | 7f7d09fa8aeacf4b5a255085af02970347a54cd0 /compiler/optimizing/code_generator.h | |
parent | 86decb6a3e3ebba8c3c67bfd25c12d9a85794f65 (diff) |
Add Kind column to stack maps.
Add 'Kind' column to stack maps which marks special stack map types,
and use it at run-time to add extra sanity checks.
It will also allow us to binary search the stack maps.
The column increases .oat file by 0.2%.
Test: test-art-host-gtest-stack_map_test
Change-Id: I2a9143afa0e32bb06174604ca81a64c41fed232f
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r-- | compiler/optimizing/code_generator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index b3c29aa804..03ae4983d4 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -323,7 +323,10 @@ class CodeGenerator : public DeletableArenaObject<kArenaAllocCodeGenerator> { } // Record native to dex mapping for a suspend point. Required by runtime. - void RecordPcInfo(HInstruction* instruction, uint32_t dex_pc, SlowPathCode* slow_path = nullptr); + void RecordPcInfo(HInstruction* instruction, + uint32_t dex_pc, + SlowPathCode* slow_path = nullptr, + bool native_debug_info = false); // Check whether we have already recorded mapping at this PC. bool HasStackMapAtCurrentPc(); // Record extra stack maps if we support native debugging. |