From 26aef1213dbdd7ab03688d898cf802c8c8d7e610 Mon Sep 17 00:00:00 2001 From: Mythri Alle Date: Wed, 13 Jul 2022 07:17:56 +0000 Subject: 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 --- runtime/stack_map.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'runtime/stack_map.h') 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; -- cgit v1.2.3-59-g8ed1b