|
| WTF_MAKE_NONCOPYABLE (Scope) |
|
| Scope (const VM *vm, bool isFunction, bool isGenerator, bool strictMode, bool isArrowFunction, bool isAsyncFunction) |
|
| Scope (Scope &&other) |
|
void | startSwitch () |
|
void | endSwitch () |
|
void | startLoop () |
|
void | endLoop () |
|
bool | inLoop () |
|
bool | breakIsValid () |
|
bool | continueIsValid () |
|
void | pushLabel (const Identifier *label, bool isLoop) |
|
void | popLabel () |
|
ScopeLabelInfo * | getLabel (const Identifier *label) |
|
void | setSourceParseMode (SourceParseMode mode) |
|
bool | isFunction () const |
|
bool | isFunctionBoundary () const |
|
bool | isGenerator () const |
|
bool | isGeneratorBoundary () const |
|
bool | isAsyncFunction () const |
|
bool | isAsyncFunctionBoundary () const |
|
bool | hasArguments () const |
|
void | setIsLexicalScope () |
|
bool | isLexicalScope () |
|
bool | usesEval () |
|
const HashSet< UniquedStringImpl * > & | closedVariableCandidates () const |
|
VariableEnvironment & | declaredVariables () |
|
VariableEnvironment & | lexicalVariables () |
|
VariableEnvironment & | finalizeLexicalEnvironment () |
|
void | computeLexicallyCapturedVariablesAndPurgeCandidates () |
|
DeclarationResultMask | declareCallee (const Identifier *ident) |
|
DeclarationResultMask | declareVariable (const Identifier *ident) |
|
DeclarationResultMask | declareFunction (const Identifier *ident, bool declareAsVar, bool isSloppyModeHoistingCandidate) |
|
void | addSloppyModeHoistableFunctionCandidate (const Identifier *ident) |
|
void | appendFunction (FunctionMetadataNode *node) |
|
DeclarationStacks::FunctionStack && | takeFunctionDeclarations () |
|
DeclarationResultMask | declareLexicalVariable (const Identifier *ident, bool isConstant, DeclarationImportType importType=DeclarationImportType::NotImported) |
|
bool | hasDeclaredVariable (const Identifier &ident) |
|
bool | hasDeclaredVariable (const RefPtr< UniquedStringImpl > &ident) |
|
bool | hasLexicallyDeclaredVariable (const RefPtr< UniquedStringImpl > &ident) const |
|
ALWAYS_INLINE bool | hasDeclaredParameter (const Identifier &ident) |
|
bool | hasDeclaredParameter (const RefPtr< UniquedStringImpl > &ident) |
|
void | preventAllVariableDeclarations () |
|
void | preventVarDeclarations () |
|
bool | allowsVarDeclarations () const |
|
bool | allowsLexicalDeclarations () const |
|
DeclarationResultMask | declareParameter (const Identifier *ident) |
|
bool | usedVariablesContains (UniquedStringImpl *impl) const |
|
template<typename Func > |
void | forEachUsedVariable (const Func &func) |
|
void | useVariable (const Identifier *ident, bool isEval) |
|
void | useVariable (UniquedStringImpl *impl, bool isEval) |
|
void | pushUsedVariableSet () |
|
size_t | currentUsedVariablesSize () |
|
void | revertToPreviousUsedVariables (size_t size) |
|
void | setNeedsFullActivation () |
|
bool | needsFullActivation () const |
|
bool | isArrowFunctionBoundary () |
|
bool | isArrowFunction () |
|
bool | hasDirectSuper () const |
|
bool | setHasDirectSuper () |
|
bool | needsSuperBinding () const |
|
bool | setNeedsSuperBinding () |
|
void | setEvalContextType (EvalContextType evalContextType) |
|
EvalContextType | evalContextType () |
|
InnerArrowFunctionCodeFeatures | innerArrowFunctionFeatures () |
|
void | setExpectedSuperBinding (SuperBinding superBinding) |
|
SuperBinding | expectedSuperBinding () const |
|
void | setConstructorKind (ConstructorKind constructorKind) |
|
ConstructorKind | constructorKind () const |
|
void | setInnerArrowFunctionUsesSuperCall () |
|
void | setInnerArrowFunctionUsesSuperProperty () |
|
void | setInnerArrowFunctionUsesEval () |
|
void | setInnerArrowFunctionUsesThis () |
|
void | setInnerArrowFunctionUsesNewTarget () |
|
void | setInnerArrowFunctionUsesArguments () |
|
bool | isEvalContext () const |
|
void | setIsEvalContext (bool isEvalContext) |
|
void | setInnerArrowFunctionUsesEvalAndUseArgumentsIfNeeded () |
|
void | addClosedVariableCandidateUnconditionally (UniquedStringImpl *impl) |
|
void | collectFreeVariables (Scope *nestedScope, bool shouldTrackClosedVariables) |
|
void | mergeInnerArrowFunctionFeatures (InnerArrowFunctionCodeFeatures arrowFunctionCodeFeatures) |
|
void | getSloppyModeHoistedFunctions (UniquedStringImplPtrSet &sloppyModeHoistedFunctions) |
|
void | getCapturedVars (IdentifierSet &capturedVariables) |
|
void | setStrictMode () |
|
bool | strictMode () const |
|
bool | isValidStrictMode () const |
|
bool | shadowsArguments () const |
|
void | setHasNonSimpleParameterList () |
|
bool | hasNonSimpleParameterList () const |
|
void | copyCapturedVariablesToVector (const UniquedStringImplPtrSet &usedVariables, Vector< UniquedStringImpl *, 8 > &vector) |
|
void | fillParametersForSourceProviderCache (SourceProviderCacheItemCreationParameters ¶meters, const UniquedStringImplPtrSet &capturesFromParameterExpressions) |
|
void | restoreFromSourceProviderCache (const SourceProviderCacheItem *info) |
|
| WTF_MAKE_NONCOPYABLE (Scope) |
|
| Scope (const VM *vm, bool isFunction, bool isGenerator, bool strictMode, bool isArrowFunction, bool isAsyncFunction) |
|
| Scope (Scope &&other) |
|
void | startSwitch () |
|
void | endSwitch () |
|
void | startLoop () |
|
void | endLoop () |
|
bool | inLoop () |
|
bool | breakIsValid () |
|
bool | continueIsValid () |
|
void | pushLabel (const Identifier *label, bool isLoop) |
|
void | popLabel () |
|
ScopeLabelInfo * | getLabel (const Identifier *label) |
|
void | setSourceParseMode (SourceParseMode mode) |
|
bool | isFunction () const |
|
bool | isFunctionBoundary () const |
|
bool | isGenerator () const |
|
bool | isGeneratorBoundary () const |
|
bool | isAsyncFunction () const |
|
bool | isAsyncFunctionBoundary () const |
|
bool | hasArguments () const |
|
void | setIsLexicalScope () |
|
bool | isLexicalScope () |
|
bool | usesEval () |
|
const HashSet< UniquedStringImpl * > & | closedVariableCandidates () const |
|
VariableEnvironment & | declaredVariables () |
|
VariableEnvironment & | lexicalVariables () |
|
VariableEnvironment & | finalizeLexicalEnvironment () |
|
void | computeLexicallyCapturedVariablesAndPurgeCandidates () |
|
DeclarationResultMask | declareCallee (const Identifier *ident) |
|
DeclarationResultMask | declareVariable (const Identifier *ident) |
|
DeclarationResultMask | declareFunction (const Identifier *ident, bool declareAsVar, bool isSloppyModeHoistingCandidate) |
|
void | addSloppyModeHoistableFunctionCandidate (const Identifier *ident) |
|
void | appendFunction (FunctionMetadataNode *node) |
|
DeclarationStacks::FunctionStack && | takeFunctionDeclarations () |
|
DeclarationResultMask | declareLexicalVariable (const Identifier *ident, bool isConstant, DeclarationImportType importType=DeclarationImportType::NotImported) |
|
bool | hasDeclaredVariable (const Identifier &ident) |
|
bool | hasDeclaredVariable (const RefPtr< UniquedStringImpl > &ident) |
|
bool | hasLexicallyDeclaredVariable (const RefPtr< UniquedStringImpl > &ident) const |
|
ALWAYS_INLINE bool | hasDeclaredParameter (const Identifier &ident) |
|
bool | hasDeclaredParameter (const RefPtr< UniquedStringImpl > &ident) |
|
void | preventAllVariableDeclarations () |
|
void | preventVarDeclarations () |
|
bool | allowsVarDeclarations () const |
|
bool | allowsLexicalDeclarations () const |
|
DeclarationResultMask | declareParameter (const Identifier *ident) |
|
bool | usedVariablesContains (UniquedStringImpl *impl) const |
|
template<typename Func > |
void | forEachUsedVariable (const Func &func) |
|
void | useVariable (const Identifier *ident, bool isEval) |
|
void | useVariable (UniquedStringImpl *impl, bool isEval) |
|
void | pushUsedVariableSet () |
|
size_t | currentUsedVariablesSize () |
|
void | revertToPreviousUsedVariables (size_t size) |
|
void | setNeedsFullActivation () |
|
bool | needsFullActivation () const |
|
bool | isArrowFunctionBoundary () |
|
bool | isArrowFunction () |
|
bool | hasDirectSuper () const |
|
bool | setHasDirectSuper () |
|
bool | needsSuperBinding () const |
|
bool | setNeedsSuperBinding () |
|
void | setEvalContextType (EvalContextType evalContextType) |
|
EvalContextType | evalContextType () |
|
InnerArrowFunctionCodeFeatures | innerArrowFunctionFeatures () |
|
void | setExpectedSuperBinding (SuperBinding superBinding) |
|
SuperBinding | expectedSuperBinding () const |
|
void | setConstructorKind (ConstructorKind constructorKind) |
|
ConstructorKind | constructorKind () const |
|
void | setInnerArrowFunctionUsesSuperCall () |
|
void | setInnerArrowFunctionUsesSuperProperty () |
|
void | setInnerArrowFunctionUsesEval () |
|
void | setInnerArrowFunctionUsesThis () |
|
void | setInnerArrowFunctionUsesNewTarget () |
|
void | setInnerArrowFunctionUsesArguments () |
|
bool | isEvalContext () const |
|
void | setIsEvalContext (bool isEvalContext) |
|
void | setInnerArrowFunctionUsesEvalAndUseArgumentsIfNeeded () |
|
void | addClosedVariableCandidateUnconditionally (UniquedStringImpl *impl) |
|
void | collectFreeVariables (Scope *nestedScope, bool shouldTrackClosedVariables) |
|
void | mergeInnerArrowFunctionFeatures (InnerArrowFunctionCodeFeatures arrowFunctionCodeFeatures) |
|
void | getSloppyModeHoistedFunctions (UniquedStringImplPtrSet &sloppyModeHoistedFunctions) |
|
void | getCapturedVars (IdentifierSet &capturedVariables) |
|
void | setStrictMode () |
|
bool | strictMode () const |
|
bool | isValidStrictMode () const |
|
bool | shadowsArguments () const |
|
void | setHasNonSimpleParameterList () |
|
bool | hasNonSimpleParameterList () const |
|
void | copyCapturedVariablesToVector (const UniquedStringImplPtrSet &usedVariables, Vector< UniquedStringImpl *, 8 > &vector) |
|
void | fillParametersForSourceProviderCache (SourceProviderCacheItemCreationParameters ¶meters, const UniquedStringImplPtrSet &capturesFromParameterExpressions) |
|
void | restoreFromSourceProviderCache (const SourceProviderCacheItem *info) |
|