From a59af8aeaad8fe7d68d8f8de63eab9cf85b6ab31 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 27 Nov 2019 17:42:32 +0000 Subject: JIT baseline: trigger optimized compilation on hotness threshold. - Add a new hotness count in the ProfilingInfo to not conflict with interpreter hotness which may use it for OSR. - Add a baseline flag in the OatQuickMethodHeader to identify baseline compiled methods. - Add a -Xusetieredjit flag to experiment and test. Bug: 119800099 Test: test.py with Xusetieredjit to true Change-Id: I8512853f869f1312e3edc60bf64413dee9143c52 --- runtime/stack_map.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/stack_map.h') 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. -- cgit v1.2.3-59-g8ed1b