[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/+/3652276 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Tao Pan <tao.pan@intel.com> Cr-Commit-Position: refs/heads/main@{#80651}
This commit is contained in:
parent
599b415bd3
commit
54191d0887
@ -305,17 +305,6 @@ BailoutReason SharedFunctionInfo::disabled_optimization_reason() const {
|
||||
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 {
|
||||
static_assert(LanguageModeSize == 2);
|
||||
return construct_language_mode(IsStrictBit::decode(flags(kRelaxedLoad)));
|
||||
|
@ -41,8 +41,6 @@ class WasmCapiFunctionData;
|
||||
class WasmExportedFunctionData;
|
||||
class WasmJSFunctionData;
|
||||
|
||||
enum OSRCodeCacheStateOfSFI : uint8_t;
|
||||
|
||||
namespace wasm {
|
||||
struct WasmModule;
|
||||
class ValueType;
|
||||
@ -520,10 +518,6 @@ class SharedFunctionInfo
|
||||
// shared function info.
|
||||
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
|
||||
// initializer. This flag is set when creating the
|
||||
// SharedFunctionInfo as a reminder to emit the initializer call
|
||||
|
@ -17,7 +17,6 @@ extern class InterpreterData extends Struct {
|
||||
type FunctionKind extends uint8 constexpr 'FunctionKind';
|
||||
type FunctionSyntaxKind extends uint8 constexpr 'FunctionSyntaxKind';
|
||||
type BailoutReason extends uint8 constexpr 'BailoutReason';
|
||||
type OSRCodeCacheStateOfSFI extends uint8 constexpr 'OSRCodeCacheStateOfSFI';
|
||||
|
||||
bitfield struct SharedFunctionInfoFlags extends uint32 {
|
||||
// Have FunctionKind first to make it cheaper to access.
|
||||
@ -38,7 +37,6 @@ bitfield struct SharedFunctionInfoFlags extends uint32 {
|
||||
is_top_level: bool: 1 bit;
|
||||
properties_are_final: bool: 1 bit;
|
||||
private_name_lookup_skips_outer_class: bool: 1 bit;
|
||||
osr_code_cache_state: OSRCodeCacheStateOfSFI: 2 bit;
|
||||
}
|
||||
|
||||
bitfield struct SharedFunctionInfoFlags2 extends uint8 {
|
||||
|
Loading…
Reference in New Issue
Block a user