Lines Matching refs:m_globalData
77 : m_globalData(globalData)
116 JSC::SourceElements* createSourceElements() { return new (m_globalData) JSC::SourceElements(m_globalData); }
125 CommaNode* createCommaExpr(ExpressionNode* lhs, ExpressionNode* rhs) { return new (m_globalData) CommaNode(m_globalData, lhs, rhs); }
146 ExpressionNode* createLogicalNot(ExpressionNode* expr) { return new (m_globalData) LogicalNotNode(m_globalData, expr); }
147 ExpressionNode* createUnaryPlus(ExpressionNode* expr) { return new (m_globalData) UnaryPlusNode(m_globalData, expr); }
151 return new (m_globalData) VoidNode(m_globalData, expr);
156 return new (m_globalData) ThisNode(m_globalData);
160 if (m_globalData->propertyNames->arguments == *ident)
162 return new (m_globalData) ResolveNode(m_globalData, *ident, start);
164 ExpressionNode* createObjectLiteral() { return new (m_globalData) ObjectLiteralNode(m_globalData); }
165 ExpressionNode* createObjectLiteral(PropertyListNode* properties) { return new (m_globalData) ObjectLiteralNode(m_globalData, properties); }
171 return new (m_globalData) ArrayNode(m_globalData, elisions);
174 ExpressionNode* createArray(ElementNode* elems) { return new (m_globalData) ArrayNode(m_globalData, elems); }
179 return new (m_globalData) ArrayNode(m_globalData, elisions, elems);
184 return new (m_globalData) NumberNode(m_globalData, d);
190 return new (m_globalData) StringNode(m_globalData, *string);
196 return new (m_globalData) BooleanNode(m_globalData, b);
202 return new (m_globalData) NullNode(m_globalData);
207 BracketAccessorNode* node = new (m_globalData) BracketAccessorNode(m_globalData, base, property, propertyHasAssignments);
214 DotAccessorNode* node = new (m_globalData) DotAccessorNode(m_globalData, base, property);
223 RegExpNode* node = new (m_globalData) RegExpNode(m_globalData, pattern, flags);
231 NewExprNode* node = new (m_globalData) NewExprNode(m_globalData, expr, arguments);
238 NewExprNode* node = new (m_globalData) NewExprNode(m_globalData, expr);
245 return new (m_globalData) ConditionalNode(m_globalData, condition, lhs, rhs);
250 AssignResolveNode* node = new (m_globalData) AssignResolveNode(m_globalData, ident, rhs, rhsHasAssignment);
257 FuncExprNode* result = new (m_globalData) FuncExprNode(m_globalData, *name, body, m_lexer->sourceCode(openBracePos, closeBracePos, bodyStartLine), parameters);
265 return FunctionBodyNode::create(m_globalData, inStrictContext);
272 return new (m_globalData) PropertyNode(m_globalData, *name, new (m_globalData) FuncExprNode(m_globalData, m_globalData->propertyNames->nullIdentifier, body, m_lexer->sourceCode(openBracePos, closeBracePos, bodyStartLine), params), type);
276 ArgumentsNode* createArguments() { return new (m_globalData) ArgumentsNode(m_globalData); }
277 ArgumentsNode* createArguments(ArgumentListNode* args) { return new (m_globalData) ArgumentsNode(m_globalData, args); }
278 ArgumentListNode* createArgumentsList(ExpressionNode* arg) { return new (m_globalData) ArgumentListNode(m_globalData, arg); }
279 ArgumentListNode* createArgumentsList(ArgumentListNode* args, ExpressionNode* arg) { return new (m_globalData) ArgumentListNode(m_globalData, args, arg); }
281 template <bool> PropertyNode* createProperty(const Identifier* propertyName, ExpressionNode* node, PropertyNode::Type type) { return new (m_globalData) PropertyNode(m_globalData, *propertyName, node, type); }
282 template <bool> PropertyNode* createProperty(JSGlobalData*, double propertyName, ExpressionNode* node, PropertyNode::Type type) { return new (m_globalData) PropertyNode(m_globalData, propertyName, node, type); }
283 PropertyListNode* createPropertyList(PropertyNode* property) { return new (m_globalData) PropertyListNode(m_globalData, property); }
284 PropertyListNode* createPropertyList(PropertyNode* property, PropertyListNode* tail) { return new (m_globalData) PropertyListNode(m_globalData, property, tail); }
286 ElementNode* createElementList(int elisions, ExpressionNode* expr) { return new (m_globalData) ElementNode(m_globalData, elisions, expr); }
287 ElementNode* createElementList(ElementNode* elems, int elisions, ExpressionNode* expr) { return new (m_globalData) ElementNode(m_globalData, elems, elisions, expr); }
289 ParameterNode* createFormalParameterList(const Identifier& ident) { return new (m_globalData) ParameterNode(m_globalData, ident); }
290 ParameterNode* createFormalParameterList(ParameterNode* list, const Identifier& ident) { return new (m_globalData) ParameterNode(m_globalData, list, ident); }
292 CaseClauseNode* createClause(ExpressionNode* expr, JSC::SourceElements* statements) { return new (m_globalData) CaseClauseNode(m_globalData, expr, statements); }
293 ClauseListNode* createClauseList(CaseClauseNode* clause) { return new (m_globalData) ClauseListNode(m_globalData, clause); }
294 ClauseListNode* createClauseList(ClauseListNode* tail, CaseClauseNode* clause) { return new (m_globalData) ClauseListNode(m_globalData, tail, clause); }
300 FuncDeclNode* decl = new (m_globalData) FuncDeclNode(m_globalData, *name, body, m_lexer->sourceCode(openBracePos, closeBracePos, bodyStartLine), parameters);
301 if (*name == m_globalData->propertyNames->arguments)
310 BlockNode* block = new (m_globalData) BlockNode(m_globalData, elements);
317 ExprStatementNode* result = new (m_globalData) ExprStatementNode(m_globalData, expr);
324 IfNode* result = new (m_globalData) IfNode(m_globalData, condition, trueBlock);
331 IfNode* result = new (m_globalData) IfElseNode(m_globalData, condition, trueBlock, falseBlock);
338 ForNode* result = new (m_globalData) ForNode(m_globalData, initializer, condition, iter, statements, b);
345 ForInNode* result = new (m_globalData) ForInNode(m_globalData, *ident, initializer, iter, statements, initStart, initStart - start, initEnd - initStart);
353 ForInNode* result = new (m_globalData) ForInNode(m_globalData, lhs, iter, statements);
359 StatementNode* createEmptyStatement() { return new (m_globalData) EmptyStatementNode(m_globalData); }
365 result = new (m_globalData) EmptyStatementNode(m_globalData);
367 result = new (m_globalData) VarStatementNode(m_globalData, expr);
374 ReturnNode* result = new (m_globalData) ReturnNode(m_globalData, expression);
382 BreakNode* result = new (m_globalData) BreakNode(m_globalData);
390 BreakNode* result = new (m_globalData) BreakNode(m_globalData, *ident);
398 ContinueNode* result = new (m_globalData) ContinueNode(m_globalData);
406 ContinueNode* result = new (m_globalData) ContinueNode(m_globalData, *ident);
414 TryNode* result = new (m_globalData) TryNode(m_globalData, tryBlock, *ident, catchHasEval, catchBlock, finallyBlock);
423 CaseBlockNode* cases = new (m_globalData) CaseBlockNode(m_globalData, firstClauses, defaultClause, secondClauses);
424 SwitchNode* result = new (m_globalData) SwitchNode(m_globalData, expr, cases);
431 WhileNode* result = new (m_globalData) WhileNode(m_globalData, expr, statement);
438 DoWhileNode* result = new (m_globalData) DoWhileNode(m_globalData, statement, expr);
445 LabelNode* result = new (m_globalData) LabelNode(m_globalData, *ident, statement);
453 WithNode* result = new (m_globalData) WithNode(m_globalData, expr, statement, end, end - start);
460 ThrowNode* result = new (m_globalData) ThrowNode(m_globalData, expr);
468 DebuggerStatementNode* result = new (m_globalData) DebuggerStatementNode(m_globalData);
475 ConstStatementNode* result = new (m_globalData) ConstStatementNode(m_globalData, decls);
482 ConstDeclNode* result = new (m_globalData) ConstDeclNode(m_globalData, *name, initializer);
495 if (m_globalData->propertyNames->arguments == *ident)
508 return new (m_globalData) CommaNode(m_globalData, list, init);
628 return new (m_globalData) NumberNode(m_globalData, d);
631 JSGlobalData* m_globalData;
645 return new (m_globalData) TypeOfResolveNode(m_globalData, resolve->identifier());
647 return new (m_globalData) TypeOfValueNode(m_globalData, expr);
653 return new (m_globalData) DeleteValueNode(m_globalData, expr);
656 return new (m_globalData) DeleteResolveNode(m_globalData, resolve->identifier(), divot, divot - start, end - divot);
660 return new (m_globalData) DeleteBracketNode(m_globalData, bracket->base(), bracket->subscript(), divot, divot - start, end - divot);
664 return new (m_globalData) DeleteDotNode(m_globalData, dot->base(), dot->identifier(), divot, divot - start, end - divot);
675 return new (m_globalData) NegateNode(m_globalData, n);
682 return new (m_globalData) BitwiseNotNode(m_globalData, expr);
694 return new (m_globalData) UnaryPlusNode(m_globalData, expr2);
697 return new (m_globalData) UnaryPlusNode(m_globalData, expr1);
699 return new (m_globalData) MultNode(m_globalData, expr1, expr2, rightHasAssignments);
709 return new (m_globalData) DivNode(m_globalData, expr1, expr2, rightHasAssignments);
719 return new (m_globalData) ModNode(m_globalData, expr1, expr2, rightHasAssignments);
726 return new (m_globalData) AddNode(m_globalData, expr1, expr2, rightHasAssignments);
736 return new (m_globalData) SubNode(m_globalData, expr1, expr2, rightHasAssignments);
743 return new (m_globalData) LeftShiftNode(m_globalData, expr1, expr2, rightHasAssignments);
750 return new (m_globalData) RightShiftNode(m_globalData, expr1, expr2, rightHasAssignments);
757 return new (m_globalData) UnsignedRightShiftNode(m_globalData, expr1, expr2, rightHasAssignments);
764 return new (m_globalData) BitOrNode(m_globalData, expr1, expr2, rightHasAssignments);
771 return new (m_globalData) BitAndNode(m_globalData, expr1, expr2, rightHasAssignments);
778 return new (m_globalData) BitXOrNode(m_globalData, expr1, expr2, rightHasAssignments);
784 return new (m_globalData) FunctionCallValueNode(m_globalData, func, args, divot, divot - start, end - divot);
788 if (identifier == m_globalData->propertyNames->eval) {
790 return new (m_globalData) EvalFunctionCallNode(m_globalData, args, divot, divot - start, end - divot);
792 return new (m_globalData) FunctionCallResolveNode(m_globalData, identifier, args, divot, divot - start, end - divot);
796 FunctionCallBracketNode* node = new (m_globalData) FunctionCallBracketNode(m_globalData, bracket->base(), bracket->subscript(), args, divot, divot - start, end - divot);
803 if (dot->identifier() == m_globalData->propertyNames->call)
804 node = new (m_globalData) CallFunctionCallDotNode(m_globalData, dot->base(), dot->identifier(), args, divot, divot - start, end - divot);
805 else if (dot->identifier() == m_globalData->propertyNames->apply)
806 node = new (m_globalData) ApplyFunctionCallDotNode(m_globalData, dot->base(), dot->identifier(), args, divot, divot - start, end - divot);
808 node = new (m_globalData) FunctionCallDotNode(m_globalData, dot->base(), dot->identifier(), args, divot, divot - start, end - divot);
817 return new (m_globalData) LogicalOpNode(m_globalData, lhs.first, rhs.first, OpLogicalOr);
820 return new (m_globalData) LogicalOpNode(m_globalData, lhs.first, rhs.first, OpLogicalAnd);
832 return new (m_globalData) EqualNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
835 return new (m_globalData) NotEqualNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
838 return new (m_globalData) StrictEqualNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
841 return new (m_globalData) NotStrictEqualNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
844 return new (m_globalData) LessNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
847 return new (m_globalData) GreaterNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
850 return new (m_globalData) LessEqNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
853 return new (m_globalData) GreaterEqNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
856 InstanceOfNode* node = new (m_globalData) InstanceOfNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
862 InNode* node = new (m_globalData) InNode(m_globalData, lhs.first, rhs.first, rhs.second.hasAssignment);
899 return new (m_globalData) AssignErrorNode(m_globalData, loc, op, expr, divot, divot - start, end - divot);
904 AssignResolveNode* node = new (m_globalData) AssignResolveNode(m_globalData, resolve->identifier(), expr, exprHasAssignments);
908 return new (m_globalData) ReadModifyResolveNode(m_globalData, resolve->identifier(), op, expr, exprHasAssignments, divot, divot - start, end - divot);
913 return new (m_globalData) AssignBracketNode(m_globalData, bracket->base(), bracket->subscript(), expr, locHasAssignments, exprHasAssignments, bracket->divot(), bracket->divot() - start, end - bracket->divot());
914 ReadModifyBracketNode* node = new (m_globalData) ReadModifyBracketNode(m_globalData, bracket->base(), bracket->subscript(), op, expr, locHasAssignments, exprHasAssignments, divot, divot - start, end - divot);
921 return new (m_globalData) AssignDotNode(m_globalData, dot->base(), dot->identifier(), expr, exprHasAssignments, dot->divot(), dot->divot() - start, end - dot->divot());
923 ReadModifyDotNode* node = new (m_globalData) ReadModifyDotNode(m_globalData, dot->base(), dot->identifier(), op, expr, exprHasAssignments, divot, divot - start, end - divot);
932 return new (m_globalData) PrefixErrorNode(m_globalData, expr, op, divot, divot - start, end - divot);
936 return new (m_globalData) PrefixResolveNode(m_globalData, resolve->identifier(), op, divot, divot - start, end - divot);
940 PrefixBracketNode* node = new (m_globalData) PrefixBracketNode(m_globalData, bracket->base(), bracket->subscript(), op, divot, divot - start, end - divot);
946 PrefixDotNode* node = new (m_globalData) PrefixDotNode(m_globalData, dot->base(), dot->identifier(), op, divot, divot - start, end - divot);
955 return new (m_globalData) PostfixErrorNode(m_globalData, expr, op, divot, divot - start, end - divot);
959 return new (m_globalData) PostfixResolveNode(m_globalData, resolve->identifier(), op, divot, divot - start, end - divot);
963 PostfixBracketNode* node = new (m_globalData) PostfixBracketNode(m_globalData, bracket->base(), bracket->subscript(), op, divot, divot - start, end - divot);
970 PostfixDotNode* node = new (m_globalData) PostfixDotNode(m_globalData, dot->base(), dot->identifier(), op, divot, divot - start, end - divot);