|
|
@@ -196,7 +196,7 @@ enum FncFlags : uint
|
|
|
kFunctionIsClassConstructor = 1 << 18, // function is a class constructor
|
|
|
kFunctionIsBaseClassConstructor = 1 << 19, // function is a base class constructor
|
|
|
kFunctionIsClassMember = 1 << 20, // function is a class member
|
|
|
- kFunctionNameIsHidden = 1 << 21, // True if a named function expression has its name hidden from nested functions
|
|
|
+ // Free = 1 << 21,
|
|
|
kFunctionIsGeneratedDefault = 1 << 22, // Is the function generated by us as a default (e.g. default class constructor)
|
|
|
kFunctionHasDefaultArguments = 1 << 23, // Function has one or more ES6 default arguments
|
|
|
kFunctionIsStaticMember = 1 << 24,
|
|
|
@@ -317,7 +317,6 @@ public:
|
|
|
void SetIsLambda(bool set = true) { SetFlags(kFunctionIsLambda, set); }
|
|
|
void SetIsMethod(bool set = true) { SetFlags(kFunctionIsMethod, set); }
|
|
|
void SetIsStaticMember(bool set = true) { SetFlags(kFunctionIsStaticMember, set); }
|
|
|
- void SetNameIsHidden(bool set = true) { SetFlags(kFunctionNameIsHidden, set); }
|
|
|
void SetNested(bool set = true) { SetFlags(kFunctionNested, set); }
|
|
|
void SetStrictMode(bool set = true) { SetFlags(kFunctionStrictMode, set); }
|
|
|
void SetIsModule(bool set = true) { SetFlags(kFunctionIsModule, set); }
|
|
|
@@ -358,7 +357,6 @@ public:
|
|
|
bool IsNested() const { return HasFlags(kFunctionNested); }
|
|
|
bool IsStaticMember() const { return HasFlags(kFunctionIsStaticMember); }
|
|
|
bool IsModule() const { return HasFlags(kFunctionIsModule); }
|
|
|
- bool NameIsHidden() const { return HasFlags(kFunctionNameIsHidden); }
|
|
|
bool UsesArguments() const { return HasFlags(kFunctionUsesArguments); }
|
|
|
bool IsDefaultModuleExport() const { return HasFlags(kFunctionIsDefaultModuleExport); }
|
|
|
bool NestedFuncEscapes() const { return nestedFuncEscapes; }
|
|
|
@@ -370,7 +368,6 @@ public:
|
|
|
kFunctionNested |
|
|
|
kFunctionDeclaration |
|
|
|
kFunctionStrictMode |
|
|
|
- kFunctionNameIsHidden |
|
|
|
kFunctionHasReferenceableBuiltInArguments |
|
|
|
kFunctionHasNonThisStmt |
|
|
|
// todo:: we shouldn't accept kFunctionHasAnyWriteToFormals on the asm module, but it looks like a bug is setting that flag incorrectly
|