Commit 1bc48138 authored by adamk's avatar adamk Committed by Commit bot

[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}
parent 6e0796c2
...@@ -6223,10 +6223,6 @@ BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, ...@@ -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, dont_flush, kDontFlush)
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken,
kIsAsmWasmBroken) kIsAsmWasmBroken)
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, requires_class_field_init,
kRequiresClassFieldInit)
BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_class_field_initializer,
kIsClassFieldInitializer)
bool Script::HasValidSource() { bool Script::HasValidSource() {
Object* src = this->source(); Object* src = this->source();
......
...@@ -7451,12 +7451,6 @@ class SharedFunctionInfo: public HeapObject { ...@@ -7451,12 +7451,6 @@ class SharedFunctionInfo: public HeapObject {
// Indicates that code for this function cannot be flushed. // Indicates that code for this function cannot be flushed.
DECL_BOOLEAN_ACCESSORS(dont_flush) 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. // Indicates that this function is an asm function.
DECL_BOOLEAN_ACCESSORS(asm_function) DECL_BOOLEAN_ACCESSORS(asm_function)
...@@ -7738,13 +7732,12 @@ class SharedFunctionInfo: public HeapObject { ...@@ -7738,13 +7732,12 @@ class SharedFunctionInfo: public HeapObject {
kAllowLazyCompilation, kAllowLazyCompilation,
kMarkedForTierUp, kMarkedForTierUp,
kOptimizationDisabled, kOptimizationDisabled,
kIsClassFieldInitializer, kHasDuplicateParameters,
kNative, kNative,
kStrictModeFunction, kStrictModeFunction,
kUsesArguments, kUsesArguments,
kNeedsHomeObject, kNeedsHomeObject,
// byte 1 // byte 1
kHasDuplicateParameters,
kForceInline, kForceInline,
kIsAsmFunction, kIsAsmFunction,
kIsAnonymousExpression, kIsAnonymousExpression,
...@@ -7752,14 +7745,13 @@ class SharedFunctionInfo: public HeapObject { ...@@ -7752,14 +7745,13 @@ class SharedFunctionInfo: public HeapObject {
kIsFunction, kIsFunction,
kMustUseIgnitionTurbo, kMustUseIgnitionTurbo,
kDontFlush, kDontFlush,
kIsDeclaration,
// byte 2 // byte 2
kFunctionKind, kFunctionKind,
// rest of byte 2 and first two bits of byte 3 are used by FunctionKind // rest of byte 2 and first two bits of byte 3 are used by FunctionKind
// byte 3 // byte 3
kDeserialized = kFunctionKind + 10, kDeserialized = kFunctionKind + 10,
kIsDeclaration,
kIsAsmWasmBroken, kIsAsmWasmBroken,
kRequiresClassFieldInit,
kCompilerHintsCount, // Pseudo entry kCompilerHintsCount, // Pseudo entry
}; };
// kFunctionKind has to be byte-aligned // kFunctionKind has to be byte-aligned
......
...@@ -94,15 +94,6 @@ bool ParseInfo::is_declaration() const { ...@@ -94,15 +94,6 @@ bool ParseInfo::is_declaration() const {
return (compiler_hints_ & (1 << SharedFunctionInfo::kIsDeclaration)) != 0; 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 { FunctionKind ParseInfo::function_kind() const {
return SharedFunctionInfo::FunctionKindBits::decode(compiler_hints_); return SharedFunctionInfo::FunctionKindBits::decode(compiler_hints_);
} }
......
...@@ -162,8 +162,6 @@ class V8_EXPORT_PRIVATE ParseInfo { ...@@ -162,8 +162,6 @@ class V8_EXPORT_PRIVATE ParseInfo {
// Getters for individual compiler hints. // Getters for individual compiler hints.
bool is_declaration() const; bool is_declaration() const;
bool requires_class_field_init() const;
bool is_class_field_initializer() const;
FunctionKind function_kind() const; FunctionKind function_kind() const;
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
......
...@@ -593,7 +593,6 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) { ...@@ -593,7 +593,6 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
int pos); int pos);
Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args, Expression* SpreadCallNew(Expression* function, ZoneList<Expression*>* args,
int pos); int pos);
Expression* CallClassFieldInitializer(Scope* scope, Expression* this_expr);
Expression* RewriteSuperCall(Expression* call_expression); Expression* RewriteSuperCall(Expression* call_expression);
void SetLanguageMode(Scope* scope, LanguageMode mode); void SetLanguageMode(Scope* scope, LanguageMode mode);
......
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