summaryrefslogtreecommitdiff
path: root/compiler/optimizing/stack_map_stream.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2018-06-03 09:51:22 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-06-03 09:51:22 +0000
commit0366f3251c3078a0161d178e3b0afd5efc4c84c0 (patch)
tree7c735fe5a4214689114e48a0989ceffa85dacaf8 /compiler/optimizing/stack_map_stream.h
parent5ab7d77cdc10f3e50c2cff21f29de5865d90cf7d (diff)
parent049d68181e4862271acc027bcb0b4cf5bcc122b6 (diff)
Merge "Rewrite stackmap verification code."
Diffstat (limited to 'compiler/optimizing/stack_map_stream.h')
-rw-r--r--compiler/optimizing/stack_map_stream.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/compiler/optimizing/stack_map_stream.h b/compiler/optimizing/stack_map_stream.h
index cefe165a67..c758bca951 100644
--- a/compiler/optimizing/stack_map_stream.h
+++ b/compiler/optimizing/stack_map_stream.h
@@ -30,7 +30,7 @@
namespace art {
-class DexRegisterMap;
+class CodeInfo;
/**
* Collects and builds stack maps for a method. All the stack maps
@@ -138,11 +138,6 @@ class StackMapStream : public ValueObject {
void CreateDexRegisterMap();
- void CheckDexRegisterMap(const DexRegisterMap& dex_register_map,
- size_t dex_register_mask_index,
- size_t dex_register_map_index) const;
- void CheckCodeInfo(MemoryRegion region) const;
-
const InstructionSet instruction_set_;
BitTableBuilder<StackMapEntry> stack_maps_;
BitTableBuilder<RegisterMaskEntry> register_masks_;
@@ -171,9 +166,9 @@ class StackMapStream : public ValueObject {
ArenaBitVector temp_dex_register_mask_;
ScopedArenaVector<uint32_t> temp_dex_register_map_;
- // Records num_dex_registers for every StackMapEntry and InlineInfoEntry.
- // Only used in debug builds to verify the dex registers at the end.
- std::vector<uint32_t> dcheck_num_dex_registers_;
+ // A set of lambda functions to be executed at the end to verify
+ // the encoded data. It is generally only used in debug builds.
+ std::vector<std::function<void(CodeInfo&)>> dchecks_;
DISALLOW_COPY_AND_ASSIGN(StackMapStream);
};