Changeset 127810 in webkit for trunk/Source/JavaScriptCore/parser/Nodes.h
- Timestamp:
- Sep 6, 2012, 6:42:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Nodes.h
r127666 r127810 1404 1404 }; 1405 1405 1406 enum FunctionNameIsInScopeToggle { FunctionNameIsNotInScope, FunctionNameIsInScope }; 1406 1407 class FunctionBodyNode : public ScopeNode { 1407 1408 public: … … 1415 1416 virtual RegisterID* emitBytecode(BytecodeGenerator&, RegisterID* = 0); 1416 1417 1417 void finishParsing(const SourceCode&, ParameterNode*, const Identifier& );1418 void finishParsing(PassRefPtr<FunctionParameters>, const Identifier& );1418 void finishParsing(const SourceCode&, ParameterNode*, const Identifier&, FunctionNameIsInScopeToggle); 1419 void finishParsing(PassRefPtr<FunctionParameters>, const Identifier&, FunctionNameIsInScopeToggle); 1419 1420 1420 1421 const Identifier& ident() { return m_ident; } … … 1422 1423 const Identifier& inferredName() { return m_inferredName.isEmpty() ? m_ident : m_inferredName; } 1423 1424 1425 bool functionNameIsInScope() { return m_functionNameIsInScopeToggle == FunctionNameIsInScope; } 1426 FunctionNameIsInScopeToggle functionNameIsInScopeToggle() { return m_functionNameIsInScopeToggle; } 1427 1424 1428 static const bool scopeIsFunction = true; 1425 1429 … … 1430 1434 Identifier m_ident; 1431 1435 Identifier m_inferredName; 1436 FunctionNameIsInScopeToggle m_functionNameIsInScopeToggle; 1432 1437 RefPtr<FunctionParameters> m_parameters; 1433 1438 };
Note:
See TracChangeset
for help on using the changeset viewer.