[class fields] Remove a bit of dead code leftover from cleanup
R=littledan@chromium.org BUG=v8:5367 Review-Url: https://codereview.chromium.org/2611063002 Cr-Commit-Position: refs/heads/master@{#42097}
This commit is contained in:
parent
6e0796c2b9
commit
1bc48138a6
@ -6223,10 +6223,6 @@ BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo,
|
||||
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
|
||||
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken,
|
||||
kIsAsmWasmBroken)
|
||||
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, requires_class_field_init,
|
||||
kRequiresClassFieldInit)
|
||||
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_class_field_initializer,
|
||||
kIsClassFieldInitializer)
|
||||
|
||||
bool Script::HasValidSource() {
|
||||
Object* src = this->source();
|
||||
|
@ -7451,12 +7451,6 @@ class SharedFunctionInfo: public HeapObject {
|
||||
// Indicates that code for this function cannot be flushed.
|
||||
DECL_BOOLEAN_ACCESSORS(dont_flush)
|
||||
|
||||
// Indicates that this is a constructor for a base class with instance fields.
|
||||
DECL_BOOLEAN_ACCESSORS(requires_class_field_init)
|
||||
// Indicates that this is a synthesized function to set up class instance
|
||||
// fields.
|
||||
DECL_BOOLEAN_ACCESSORS(is_class_field_initializer)
|
||||
|
||||
// Indicates that this function is an asm function.
|
||||
DECL_BOOLEAN_ACCESSORS(asm_function)
|
||||
|
||||
@ -7738,13 +7732,12 @@ class SharedFunctionInfo: public HeapObject {
|
||||
kAllowLazyCompilation,
|
||||
kMarkedForTierUp,
|
||||
kOptimizationDisabled,
|
||||
kIsClassFieldInitializer,
|
||||
kHasDuplicateParameters,
|
||||
kNative,
|
||||
kStrictModeFunction,
|
||||
kUsesArguments,
|
||||
kNeedsHomeObject,
|
||||
// byte 1
|
||||
kHasDuplicateParameters,
|
||||
kForceInline,
|
||||
kIsAsmFunction,
|
||||
kIsAnonymousExpression,
|
||||
@ -7752,14 +7745,13 @@ class SharedFunctionInfo: public HeapObject {
|
||||
kIsFunction,
|
||||
kMustUseIgnitionTurbo,
|
||||
kDontFlush,
|
||||
kIsDeclaration,
|
||||
// byte 2
|
||||
kFunctionKind,
|
||||
// rest of byte 2 and first two bits of byte 3 are used by FunctionKind
|
||||
// byte 3
|
||||
kDeserialized = kFunctionKind + 10,
|
||||
kIsDeclaration,
|
||||
kIsAsmWasmBroken,
|
||||
kRequiresClassFieldInit,
|
||||
kCompilerHintsCount, // Pseudo entry
|
||||
};
|
||||
// kFunctionKind has to be byte-aligned
|
||||
|
@ -94,15 +94,6 @@ bool ParseInfo::is_declaration() const {
|
||||
return (compiler_hints_ & (1 << SharedFunctionInfo::kIsDeclaration)) != 0;
|
||||
}
|
||||
|
||||
bool ParseInfo::requires_class_field_init() const {
|
||||
return (compiler_hints_ &
|
||||
(1 << SharedFunctionInfo::kRequiresClassFieldInit)) != 0;
|
||||
}
|
||||
bool ParseInfo::is_class_field_initializer() const {
|
||||
return (compiler_hints_ &
|
||||
(1 << SharedFunctionInfo::kIsClassFieldInitializer)) != 0;
|
||||
}
|
||||
|
||||
FunctionKind ParseInfo::function_kind() const {
|
||||
return SharedFunctionInfo::FunctionKindBits::decode(compiler_hints_);
|
||||
}
|
||||
|
@ -162,8 +162,6 @@ class V8_EXPORT_PRIVATE ParseInfo {
|
||||
|
||||
// Getters for individual compiler hints.
|
||||
bool is_declaration() const;
|
||||
bool requires_class_field_init() const;
|
||||
bool is_class_field_initializer() const;
|
||||
FunctionKind function_kind() const;
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
@ -593,7 +593,6 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
||||
int pos);
|
||||
Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args,
|
||||
int pos);
|
||||
Expression* CallClassFieldInitializer(Scope* scope, Expression* this_expr);
|
||||
Expression* RewriteSuperCall(Expression* call_expression);
|
||||
|
||||
void SetLanguageMode(Scope* scope, LanguageMode mode);
|
||||
|
Loading…
Reference in New Issue
Block a user