summaryrefslogtreecommitdiff
path: root/runtime/stack_map.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2022-07-13 07:17:56 +0000
committer Mythri Alle <mythria@google.com> 2022-07-13 09:25:08 +0000
commit26aef1213dbdd7ab03688d898cf802c8c8d7e610 (patch)
tree62c107594123219d845a6730b4781706682ed7b0 /runtime/stack_map.h
parent4ec05bb85ba1107c8295a295eec7e70bace0d047 (diff)
Revert "Introduce a flag to check if JITed code has instrumentation support"
This reverts commit fc067a360d14db5f84fd4b58e0dee6cb04ee759b. Reason for revert: test failures on jit-on-first-use: https://android-build.googleplex.com/builds/submitted/8821659/art-jit-on-first-use/latest/view/logs/build_error.log Change-Id: Ie9bc243baac777ecc4f47cc961494ca6ab3ef4c6
Diffstat (limited to 'runtime/stack_map.h')
-rw-r--r--runtime/stack_map.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/stack_map.h b/runtime/stack_map.h
index 7876a67381..7a13dbd3ac 100644
--- a/runtime/stack_map.h
+++ b/runtime/stack_map.h
@@ -449,10 +449,6 @@ class CodeInfo {
return (*code_info_data & kIsBaseline) != 0;
}
- ALWAYS_INLINE static bool IsDebuggable(const uint8_t* code_info_data) {
- return (*code_info_data & kIsDebuggable) != 0;
- }
-
private:
// Scan backward to determine dex register locations at given stack map.
void DecodeDexRegisterMap(uint32_t stack_map_index,
@@ -499,16 +495,11 @@ class CodeInfo {
enum Flags {
kHasInlineInfo = 1 << 0,
kIsBaseline = 1 << 1,
- kIsDebuggable = 1 << 2,
};
// The CodeInfo starts with sequence of variable-length bit-encoded integers.
- // (Please see kVarintMax for more details about encoding).
static constexpr size_t kNumHeaders = 7;
- // Note that the space for flags is limited to three bits. We use a custom encoding where we
- // encode the value inline if it is less than kVarintMax. We want to access flags without
- // decoding the entire CodeInfo so the value of flags cannot be more than kVarintMax.
- uint32_t flags_ = 0;
+ uint32_t flags_ = 0; // Note that the space is limited to three bits.
uint32_t code_size_ = 0; // The size of native PC range in bytes.
uint32_t packed_frame_size_ = 0; // Frame size in kStackAlignment units.
uint32_t core_spill_mask_ = 0;