summaryrefslogtreecommitdiff
path: root/runtime/stack_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stack_map.h')
-rw-r--r--runtime/stack_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/stack_map.h b/runtime/stack_map.h
index 598f3e4473..2065a79dd5 100644
--- a/runtime/stack_map.h
+++ b/runtime/stack_map.h
@@ -429,6 +429,10 @@ class CodeInfo {
return (*code_info_data & kHasInlineInfo) != 0;
}
+ ALWAYS_INLINE static bool IsBaseline(const uint8_t* code_info_data) {
+ return (*code_info_data & kIsBaseline) != 0;
+ }
+
private:
// Scan backward to determine dex register locations at given stack map.
void DecodeDexRegisterMap(uint32_t stack_map_index,
@@ -472,6 +476,7 @@ class CodeInfo {
enum Flags {
kHasInlineInfo = 1 << 0,
+ kIsBaseline = 1 << 1,
};
// The CodeInfo starts with sequence of variable-length bit-encoded integers.