Commit 54191d08 authored by Pan, Tao's avatar Pan, Tao Committed by V8 LUCI CQ

[cleanup] Remove abandoned osr_code_cache_state from SFI

All user of osr_code_cache_state had been removed.

Change-Id: I08a4783e47c900617b53ba789d267fb9a0bd1e92
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3652276Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Tao Pan <tao.pan@intel.com>
Cr-Commit-Position: refs/heads/main@{#80651}
parent 599b415b
...@@ -305,17 +305,6 @@ BailoutReason SharedFunctionInfo::disabled_optimization_reason() const { ...@@ -305,17 +305,6 @@ BailoutReason SharedFunctionInfo::disabled_optimization_reason() const {
return DisabledOptimizationReasonBits::decode(flags(kRelaxedLoad)); return DisabledOptimizationReasonBits::decode(flags(kRelaxedLoad));
} }
OSRCodeCacheStateOfSFI SharedFunctionInfo::osr_code_cache_state() const {
return OsrCodeCacheStateBits::decode(flags(kRelaxedLoad));
}
void SharedFunctionInfo::set_osr_code_cache_state(
OSRCodeCacheStateOfSFI state) {
int hints = flags(kRelaxedLoad);
hints = OsrCodeCacheStateBits::update(hints, state);
set_flags(hints, kRelaxedStore);
}
LanguageMode SharedFunctionInfo::language_mode() const { LanguageMode SharedFunctionInfo::language_mode() const {
static_assert(LanguageModeSize == 2); static_assert(LanguageModeSize == 2);
return construct_language_mode(IsStrictBit::decode(flags(kRelaxedLoad))); return construct_language_mode(IsStrictBit::decode(flags(kRelaxedLoad)));
......
...@@ -41,8 +41,6 @@ class WasmCapiFunctionData; ...@@ -41,8 +41,6 @@ class WasmCapiFunctionData;
class WasmExportedFunctionData; class WasmExportedFunctionData;
class WasmJSFunctionData; class WasmJSFunctionData;
enum OSRCodeCacheStateOfSFI : uint8_t;
namespace wasm { namespace wasm {
struct WasmModule; struct WasmModule;
class ValueType; class ValueType;
...@@ -520,10 +518,6 @@ class SharedFunctionInfo ...@@ -520,10 +518,6 @@ class SharedFunctionInfo
// shared function info. // shared function info.
void DisableOptimization(BailoutReason reason); void DisableOptimization(BailoutReason reason);
inline OSRCodeCacheStateOfSFI osr_code_cache_state() const;
inline void set_osr_code_cache_state(OSRCodeCacheStateOfSFI state);
// This class constructor needs to call out to an instance fields // This class constructor needs to call out to an instance fields
// initializer. This flag is set when creating the // initializer. This flag is set when creating the
// SharedFunctionInfo as a reminder to emit the initializer call // SharedFunctionInfo as a reminder to emit the initializer call
......
...@@ -17,7 +17,6 @@ extern class InterpreterData extends Struct { ...@@ -17,7 +17,6 @@ extern class InterpreterData extends Struct {
type FunctionKind extends uint8 constexpr 'FunctionKind'; type FunctionKind extends uint8 constexpr 'FunctionKind';
type FunctionSyntaxKind extends uint8 constexpr 'FunctionSyntaxKind'; type FunctionSyntaxKind extends uint8 constexpr 'FunctionSyntaxKind';
type BailoutReason extends uint8 constexpr 'BailoutReason'; type BailoutReason extends uint8 constexpr 'BailoutReason';
type OSRCodeCacheStateOfSFI extends uint8 constexpr 'OSRCodeCacheStateOfSFI';
bitfield struct SharedFunctionInfoFlags extends uint32 { bitfield struct SharedFunctionInfoFlags extends uint32 {
// Have FunctionKind first to make it cheaper to access. // Have FunctionKind first to make it cheaper to access.
...@@ -38,7 +37,6 @@ bitfield struct SharedFunctionInfoFlags extends uint32 { ...@@ -38,7 +37,6 @@ bitfield struct SharedFunctionInfoFlags extends uint32 {
is_top_level: bool: 1 bit; is_top_level: bool: 1 bit;
properties_are_final: bool: 1 bit; properties_are_final: bool: 1 bit;
private_name_lookup_skips_outer_class: bool: 1 bit; private_name_lookup_skips_outer_class: bool: 1 bit;
osr_code_cache_state: OSRCodeCacheStateOfSFI: 2 bit;
} }
bitfield struct SharedFunctionInfoFlags2 extends uint8 { bitfield struct SharedFunctionInfoFlags2 extends uint8 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment