Changeset 55751 in webkit for trunk/JavaScriptCore/parser
- Timestamp:
- Mar 9, 2010, 3:32:58 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/Grammar.y
r54510 r55751 1148 1148 1149 1149 TryStatement: 1150 TRY Block FINALLY Block { $$ = createNodeDeclarationInfo<StatementNode*>(new (GLOBAL_DATA) TryNode(GLOBAL_DATA, $2.m_node, GLOBAL_DATA->propertyNames-> emptyIdentifier, false, 0, $4.m_node),1150 TRY Block FINALLY Block { $$ = createNodeDeclarationInfo<StatementNode*>(new (GLOBAL_DATA) TryNode(GLOBAL_DATA, $2.m_node, GLOBAL_DATA->propertyNames->nullIdentifier, false, 0, $4.m_node), 1151 1151 mergeDeclarationLists($2.m_varDeclarations, $4.m_varDeclarations), 1152 1152 mergeDeclarationLists($2.m_funcDeclarations, $4.m_funcDeclarations), … … 1189 1189 1190 1190 FunctionExpr: 1191 FUNCTION '(' ')' OPENBRACE FunctionBody CLOSEBRACE { $$ = createNodeInfo(new (GLOBAL_DATA) FuncExprNode(GLOBAL_DATA, GLOBAL_DATA->propertyNames-> emptyIdentifier, $5, GLOBAL_DATA->lexer->sourceCode($4, $6, @4.first_line)), ClosureFeature, 0); setStatementLocation($5, @4, @6); }1191 FUNCTION '(' ')' OPENBRACE FunctionBody CLOSEBRACE { $$ = createNodeInfo(new (GLOBAL_DATA) FuncExprNode(GLOBAL_DATA, GLOBAL_DATA->propertyNames->nullIdentifier, $5, GLOBAL_DATA->lexer->sourceCode($4, $6, @4.first_line)), ClosureFeature, 0); setStatementLocation($5, @4, @6); } 1192 1192 | FUNCTION '(' FormalParameterList ')' OPENBRACE FunctionBody CLOSEBRACE 1193 1193 { 1194 $$ = createNodeInfo(new (GLOBAL_DATA) FuncExprNode(GLOBAL_DATA, GLOBAL_DATA->propertyNames-> emptyIdentifier, $6, GLOBAL_DATA->lexer->sourceCode($5, $7, @5.first_line), $3.m_node.head), $3.m_features | ClosureFeature, 0);1194 $$ = createNodeInfo(new (GLOBAL_DATA) FuncExprNode(GLOBAL_DATA, GLOBAL_DATA->propertyNames->nullIdentifier, $6, GLOBAL_DATA->lexer->sourceCode($5, $7, @5.first_line), $3.m_node.head), $3.m_features | ClosureFeature, 0); 1195 1195 if ($3.m_features & ArgumentsFeature) 1196 1196 $6->setUsesArguments(); … … 1982 1982 else 1983 1983 return 0; 1984 return new (globalData) PropertyNode(globalData, name, new (globalData) FuncExprNode(globalData, globalData->propertyNames-> emptyIdentifier, body, source, params), type);1984 return new (globalData) PropertyNode(globalData, name, new (globalData) FuncExprNode(globalData, globalData->propertyNames->nullIdentifier, body, source, params), type); 1985 1985 } 1986 1986 -
trunk/JavaScriptCore/parser/NodeConstructors.h
r54510 r55751 742 742 inline ContinueNode::ContinueNode(JSGlobalData* globalData) 743 743 : StatementNode(globalData) 744 , m_ident(globalData->propertyNames-> emptyIdentifier)744 , m_ident(globalData->propertyNames->nullIdentifier) 745 745 { 746 746 } … … 754 754 inline BreakNode::BreakNode(JSGlobalData* globalData) 755 755 : StatementNode(globalData) 756 , m_ident(globalData->propertyNames-> emptyIdentifier)756 , m_ident(globalData->propertyNames->nullIdentifier) 757 757 { 758 758 } … … 878 878 inline ForInNode::ForInNode(JSGlobalData* globalData, ExpressionNode* l, ExpressionNode* expr, StatementNode* statement) 879 879 : StatementNode(globalData) 880 , m_ident(globalData->propertyNames-> emptyIdentifier)880 , m_ident(globalData->propertyNames->nullIdentifier) 881 881 , m_init(0) 882 882 , m_lexpr(l)
Note:
See TracChangeset
for help on using the changeset viewer.