Changeset 13593 in webkit
- Timestamp:
- Mar 30, 2006 5:21:58 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r13591 r13593 1 2006-03-30 Eric Seidel <eseidel@apple.com> 2 3 Reviewed by ggaren. 4 5 * kjs/nodes.h: Some various small style fixes. 6 1 7 2006-03-30 Eric Seidel <eseidel@apple.com> 2 8 -
trunk/JavaScriptCore/kjs/nodes.h
r13591 r13593 79 79 virtual JSValue *evaluate(ExecState *exec) = 0; 80 80 UString toString() const; 81 virtual void streamTo(SourceStream &s) const = 0;82 virtual void processVarDecls(ExecState 81 virtual void streamTo(SourceStream&) const = 0; 82 virtual void processVarDecls(ExecState*) {} 83 83 int lineNo() const { return m_line; } 84 84 … … 111 111 JSValue *throwUndefinedVariableError(ExecState *, const Identifier &); 112 112 113 void setExceptionDetailsIfNeeded(ExecState 113 void setExceptionDetailsIfNeeded(ExecState*); 114 114 115 115 int m_line; … … 126 126 int firstLine() const { return lineNo(); } 127 127 int lastLine() const { return m_lastLine; } 128 bool hitStatement(ExecState *exec);128 bool hitStatement(ExecState*); 129 129 virtual Completion execute(ExecState *exec) = 0; 130 130 void pushLabel(const Identifier &id) { ls.push(id); } 131 virtual void processFuncDecl(ExecState *exec);131 virtual void processFuncDecl(ExecState*); 132 132 protected: 133 133 LabelStack ls; … … 141 141 NullNode() {} 142 142 JSValue* evaluate(ExecState*); 143 virtual void streamTo(SourceStream &s) const;143 virtual void streamTo(SourceStream&) const; 144 144 }; 145 145 … … 148 148 BooleanNode(bool v) : value(v) {} 149 149 JSValue* evaluate(ExecState*); 150 virtual void streamTo(SourceStream &s) const;150 virtual void streamTo(SourceStream&) const; 151 151 private: 152 152 bool value; … … 157 157 NumberNode(double v) : value(v) {} 158 158 JSValue* evaluate(ExecState*); 159 virtual void streamTo(SourceStream &s) const;159 virtual void streamTo(SourceStream&) const; 160 160 private: 161 161 double value; … … 166 166 StringNode(const UString *v) { value = *v; } 167 167 JSValue* evaluate(ExecState*); 168 virtual void streamTo(SourceStream &s) const;168 virtual void streamTo(SourceStream&) const; 169 169 private: 170 170 UString value; … … 176 176 : pattern(p), flags(f) { } 177 177 JSValue* evaluate(ExecState*); 178 virtual void streamTo(SourceStream &s) const;178 virtual void streamTo(SourceStream&) const; 179 179 private: 180 180 UString pattern, flags; … … 185 185 ThisNode() {} 186 186 JSValue* evaluate(ExecState*); 187 virtual void streamTo(SourceStream &s) const;187 virtual void streamTo(SourceStream&) const; 188 188 }; 189 189 … … 192 192 ResolveNode(const Identifier &s) : ident(s) { } 193 193 JSValue* evaluate(ExecState*); 194 virtual void streamTo(SourceStream &s) const;194 virtual void streamTo(SourceStream&) const; 195 195 196 196 virtual bool isLocation() const { return true; } … … 207 207 virtual JSValue* evaluate(ExecState*); 208 208 virtual Node *nodeInsideAllParens(); 209 virtual void streamTo(SourceStream &s) const;209 virtual void streamTo(SourceStream&) const; 210 210 virtual bool isGroupNode() const { return true; } 211 211 private: … … 220 220 : next(l->next), elision(e), node(n) { l->next = this; } 221 221 JSValue* evaluate(ExecState*); 222 virtual void streamTo(SourceStream &s) const;222 virtual void streamTo(SourceStream&) const; 223 223 PassRefPtr<ElementNode> releaseNext() { return next.release(); } 224 224 virtual void breakCycle(); … … 238 238 : element(ele->next), elision(eli), opt(true) { Parser::removeNodeCycle(element.get()); ele->next = 0; } 239 239 JSValue* evaluate(ExecState*); 240 virtual void streamTo(SourceStream &s) const;240 virtual void streamTo(SourceStream&) const; 241 241 private: 242 242 RefPtr<ElementNode> element; … … 250 250 PropertyNameNode(const Identifier &s) : str(s) { } 251 251 JSValue* evaluate(ExecState*); 252 virtual void streamTo(SourceStream &s) const;252 virtual void streamTo(SourceStream&) const; 253 253 private: 254 254 double numeric; … … 262 262 : name(n), assign(a), type(t) { } 263 263 JSValue* evaluate(ExecState*); 264 virtual void streamTo(SourceStream &s) const;264 virtual void streamTo(SourceStream&) const; 265 265 friend class PropertyListNode; 266 266 private: … … 278 278 : node(n), next(l->next) { l->next = this; } 279 279 JSValue* evaluate(ExecState*); 280 virtual void streamTo(SourceStream &s) const;280 virtual void streamTo(SourceStream&) const; 281 281 PassRefPtr<PropertyListNode> releaseNext() { return next.release(); } 282 282 virtual void breakCycle(); … … 292 292 ObjectLiteralNode(PropertyListNode *l) : list(l->next) { Parser::removeNodeCycle(list.get()); l->next = 0; } 293 293 JSValue* evaluate(ExecState*); 294 virtual void streamTo(SourceStream &s) const;294 virtual void streamTo(SourceStream&) const; 295 295 private: 296 296 RefPtr<PropertyListNode> list; … … 301 301 BracketAccessorNode(Node *e1, Node *e2) : expr1(e1), expr2(e2) {} 302 302 JSValue* evaluate(ExecState*); 303 virtual void streamTo(SourceStream &s) const;303 virtual void streamTo(SourceStream&) const; 304 304 305 305 virtual bool isLocation() const { return true; } … … 317 317 DotAccessorNode(Node *e, const Identifier &s) : expr(e), ident(s) { } 318 318 JSValue* evaluate(ExecState*); 319 virtual void streamTo(SourceStream &s) const;319 virtual void streamTo(SourceStream&) const; 320 320 321 321 virtual bool isLocation() const { return true; } … … 336 336 : next(l->next), expr(e) { l->next = this; } 337 337 JSValue* evaluate(ExecState*); 338 List evaluateList(ExecState 339 virtual void streamTo(SourceStream &s) const;338 List evaluateList(ExecState*); 339 virtual void streamTo(SourceStream&) const; 340 340 PassRefPtr<ArgumentListNode> releaseNext() { return next.release(); } 341 341 virtual void breakCycle(); … … 353 353 JSValue* evaluate(ExecState*); 354 354 List evaluateList(ExecState *exec) { return list ? list->evaluateList(exec) : List(); } 355 virtual void streamTo(SourceStream &s) const;355 virtual void streamTo(SourceStream&) const; 356 356 private: 357 357 RefPtr<ArgumentListNode> list; … … 363 363 NewExprNode(Node *e, ArgumentsNode *a) : expr(e), args(a) {} 364 364 JSValue* evaluate(ExecState*); 365 virtual void streamTo(SourceStream &s) const;365 virtual void streamTo(SourceStream&) const; 366 366 private: 367 367 RefPtr<Node> expr; … … 373 373 FunctionCallValueNode(Node *e, ArgumentsNode *a) : expr(e), args(a) {} 374 374 JSValue* evaluate(ExecState*); 375 virtual void streamTo(SourceStream &s) const;375 virtual void streamTo(SourceStream&) const; 376 376 private: 377 377 RefPtr<Node> expr; … … 383 383 FunctionCallResolveNode(const Identifier& i, ArgumentsNode *a) : ident(i), args(a) {} 384 384 JSValue* evaluate(ExecState*); 385 virtual void streamTo(SourceStream &s) const;385 virtual void streamTo(SourceStream&) const; 386 386 private: 387 387 Identifier ident; … … 393 393 FunctionCallBracketNode(Node *b, Node *s, ArgumentsNode *a) : base(b), subscript(s), args(a) {} 394 394 JSValue* evaluate(ExecState*); 395 virtual void streamTo(SourceStream &s) const;395 virtual void streamTo(SourceStream&) const; 396 396 protected: 397 397 RefPtr<Node> base; … … 403 403 public: 404 404 FunctionCallParenBracketNode(Node *b, Node *s, ArgumentsNode *a) : FunctionCallBracketNode(b, s, a) {} 405 virtual void streamTo(SourceStream &s) const;405 virtual void streamTo(SourceStream&) const; 406 406 }; 407 407 … … 410 410 FunctionCallDotNode(Node *b, const Identifier &i, ArgumentsNode *a) : base(b), ident(i), args(a) {} 411 411 JSValue* evaluate(ExecState*); 412 virtual void streamTo(SourceStream &s) const;412 virtual void streamTo(SourceStream&) const; 413 413 protected: 414 414 RefPtr<Node> base; … … 420 420 public: 421 421 FunctionCallParenDotNode(Node *b, const Identifier &i, ArgumentsNode *a) : FunctionCallDotNode(b, i, a) {} 422 virtual void streamTo(SourceStream &s) const;422 virtual void streamTo(SourceStream&) const; 423 423 }; 424 424 … … 427 427 PostfixResolveNode(const Identifier& i, Operator o) : m_ident(i), m_oper(o) {} 428 428 JSValue* evaluate(ExecState*); 429 virtual void streamTo(SourceStream &s) const;429 virtual void streamTo(SourceStream&) const; 430 430 private: 431 431 Identifier m_ident; … … 437 437 PostfixBracketNode(Node *b, Node *s, Operator o) : m_base(b), m_subscript(s), m_oper(o) {} 438 438 JSValue* evaluate(ExecState*); 439 virtual void streamTo(SourceStream &s) const;439 virtual void streamTo(SourceStream&) const; 440 440 private: 441 441 RefPtr<Node> m_base; … … 448 448 PostfixDotNode(Node *b, const Identifier& i, Operator o) : m_base(b), m_ident(i), m_oper(o) {} 449 449 JSValue* evaluate(ExecState*); 450 virtual void streamTo(SourceStream &s) const;450 virtual void streamTo(SourceStream&) const; 451 451 private: 452 452 RefPtr<Node> m_base; … … 459 459 DeleteResolveNode(const Identifier& i) : m_ident(i) {} 460 460 JSValue* evaluate(ExecState*); 461 virtual void streamTo(SourceStream &s) const;461 virtual void streamTo(SourceStream&) const; 462 462 private: 463 463 Identifier m_ident; … … 468 468 DeleteBracketNode(Node *base, Node *subscript) : m_base(base), m_subscript(subscript) {} 469 469 JSValue* evaluate(ExecState*); 470 virtual void streamTo(SourceStream &s) const;470 virtual void streamTo(SourceStream&) const; 471 471 private: 472 472 RefPtr<Node> m_base; … … 478 478 DeleteDotNode(Node *base, const Identifier& i) : m_base(base), m_ident(i) {} 479 479 JSValue* evaluate(ExecState*); 480 virtual void streamTo(SourceStream &s) const;480 virtual void streamTo(SourceStream&) const; 481 481 private: 482 482 RefPtr<Node> m_base; … … 488 488 DeleteValueNode(Node *e) : m_expr(e) {} 489 489 JSValue* evaluate(ExecState*); 490 virtual void streamTo(SourceStream &s) const;490 virtual void streamTo(SourceStream&) const; 491 491 private: 492 492 RefPtr<Node> m_expr; … … 497 497 VoidNode(Node *e) : expr(e) {} 498 498 JSValue* evaluate(ExecState*); 499 virtual void streamTo(SourceStream &s) const;499 virtual void streamTo(SourceStream&) const; 500 500 private: 501 501 RefPtr<Node> expr; … … 506 506 TypeOfResolveNode(const Identifier& i) : m_ident(i) {} 507 507 JSValue* evaluate(ExecState*); 508 virtual void streamTo(SourceStream &s) const;508 virtual void streamTo(SourceStream&) const; 509 509 private: 510 510 Identifier m_ident; … … 515 515 TypeOfValueNode(Node *e) : m_expr(e) {} 516 516 JSValue* evaluate(ExecState*); 517 virtual void streamTo(SourceStream &s) const;517 virtual void streamTo(SourceStream&) const; 518 518 private: 519 519 RefPtr<Node> m_expr; … … 524 524 PrefixResolveNode(const Identifier& i, Operator o) : m_ident(i), m_oper(o) {} 525 525 JSValue* evaluate(ExecState*); 526 virtual void streamTo(SourceStream &s) const;526 virtual void streamTo(SourceStream&) const; 527 527 private: 528 528 Identifier m_ident; … … 534 534 PrefixBracketNode(Node *b, Node *s, Operator o) : m_base(b), m_subscript(s), m_oper(o) {} 535 535 JSValue* evaluate(ExecState*); 536 virtual void streamTo(SourceStream &s) const;536 virtual void streamTo(SourceStream&) const; 537 537 private: 538 538 RefPtr<Node> m_base; … … 545 545 PrefixDotNode(Node *b, const Identifier& i, Operator o) : m_base(b), m_ident(i), m_oper(o) {} 546 546 JSValue* evaluate(ExecState*); 547 virtual void streamTo(SourceStream &s) const;547 virtual void streamTo(SourceStream&) const; 548 548 private: 549 549 RefPtr<Node> m_base; … … 556 556 UnaryPlusNode(Node *e) : expr(e) {} 557 557 JSValue* evaluate(ExecState*); 558 virtual void streamTo(SourceStream &s) const;558 virtual void streamTo(SourceStream&) const; 559 559 private: 560 560 RefPtr<Node> expr; … … 565 565 NegateNode(Node *e) : expr(e) {} 566 566 JSValue* evaluate(ExecState*); 567 virtual void streamTo(SourceStream &s) const;567 virtual void streamTo(SourceStream&) const; 568 568 private: 569 569 RefPtr<Node> expr; … … 574 574 BitwiseNotNode(Node *e) : expr(e) {} 575 575 JSValue* evaluate(ExecState*); 576 virtual void streamTo(SourceStream &s) const;576 virtual void streamTo(SourceStream&) const; 577 577 private: 578 578 RefPtr<Node> expr; … … 583 583 LogicalNotNode(Node *e) : expr(e) {} 584 584 JSValue* evaluate(ExecState*); 585 virtual void streamTo(SourceStream &s) const;585 virtual void streamTo(SourceStream&) const; 586 586 private: 587 587 RefPtr<Node> expr; … … 592 592 MultNode(Node *t1, Node *t2, char op) : term1(t1), term2(t2), oper(op) {} 593 593 JSValue* evaluate(ExecState*); 594 virtual void streamTo(SourceStream &s) const;594 virtual void streamTo(SourceStream&) const; 595 595 private: 596 596 RefPtr<Node> term1; … … 603 603 AddNode(Node *t1, Node *t2, char op) : term1(t1), term2(t2), oper(op) {} 604 604 JSValue* evaluate(ExecState*); 605 virtual void streamTo(SourceStream &s) const;605 virtual void streamTo(SourceStream&) const; 606 606 private: 607 607 RefPtr<Node> term1; … … 615 615 : term1(t1), term2(t2), oper(o) {} 616 616 JSValue* evaluate(ExecState*); 617 virtual void streamTo(SourceStream &s) const;617 virtual void streamTo(SourceStream&) const; 618 618 private: 619 619 RefPtr<Node> term1; … … 627 627 expr1(e1), expr2(e2), oper(o) {} 628 628 JSValue* evaluate(ExecState*); 629 virtual void streamTo(SourceStream &s) const;629 virtual void streamTo(SourceStream&) const; 630 630 private: 631 631 RefPtr<Node> expr1; … … 639 639 : expr1(e1), expr2(e2), oper(o) {} 640 640 JSValue* evaluate(ExecState*); 641 virtual void streamTo(SourceStream &s) const;641 virtual void streamTo(SourceStream&) const; 642 642 private: 643 643 RefPtr<Node> expr1; … … 651 651 expr1(e1), expr2(e2), oper(o) {} 652 652 JSValue* evaluate(ExecState*); 653 virtual void streamTo(SourceStream &s) const;653 virtual void streamTo(SourceStream&) const; 654 654 private: 655 655 RefPtr<Node> expr1; … … 666 666 expr1(e1), expr2(e2), oper(o) {} 667 667 JSValue* evaluate(ExecState*); 668 virtual void streamTo(SourceStream &s) const;668 virtual void streamTo(SourceStream&) const; 669 669 private: 670 670 RefPtr<Node> expr1; … … 681 681 logical(l), expr1(e1), expr2(e2) {} 682 682 JSValue* evaluate(ExecState*); 683 virtual void streamTo(SourceStream &s) const;683 virtual void streamTo(SourceStream&) const; 684 684 private: 685 685 RefPtr<Node> logical; … … 693 693 : m_ident(ident), m_oper(oper), m_right(right) {} 694 694 JSValue* evaluate(ExecState*); 695 virtual void streamTo(SourceStream &s) const;695 virtual void streamTo(SourceStream&) const; 696 696 protected: 697 697 Identifier m_ident; … … 705 705 : m_base(base), m_subscript(subscript), m_oper(oper), m_right(right) {} 706 706 JSValue* evaluate(ExecState*); 707 virtual void streamTo(SourceStream &s) const;707 virtual void streamTo(SourceStream&) const; 708 708 protected: 709 709 RefPtr<Node> m_base; … … 718 718 : m_base(base), m_ident(ident), m_oper(oper), m_right(right) {} 719 719 JSValue* evaluate(ExecState*); 720 virtual void streamTo(SourceStream &s) const;720 virtual void streamTo(SourceStream&) const; 721 721 protected: 722 722 RefPtr<Node> m_base; … … 730 730 CommaNode(Node *e1, Node *e2) : expr1(e1), expr2(e2) {} 731 731 JSValue* evaluate(ExecState*); 732 virtual void streamTo(SourceStream &s) const;732 virtual void streamTo(SourceStream&) const; 733 733 private: 734 734 RefPtr<Node> expr1; … … 741 741 StatListNode(StatementNode *s); 742 742 StatListNode(StatListNode *l, StatementNode *s); 743 virtual Completion execute(ExecState *exec);744 virtual void processVarDecls(ExecState *exec);745 virtual void streamTo(SourceStream &s) const;743 virtual Completion execute(ExecState*); 744 virtual void processVarDecls(ExecState*); 745 virtual void streamTo(SourceStream&) const; 746 746 PassRefPtr<StatListNode> releaseNext() { return next.release(); } 747 747 virtual void breakCycle(); … … 756 756 AssignExprNode(Node *e) : expr(e) {} 757 757 JSValue* evaluate(ExecState*); 758 virtual void streamTo(SourceStream &s) const;758 virtual void streamTo(SourceStream&) const; 759 759 private: 760 760 RefPtr<Node> expr; … … 766 766 VarDeclNode(const Identifier &id, AssignExprNode *in, Type t); 767 767 JSValue* evaluate(ExecState*); 768 virtual void processVarDecls(ExecState *exec);769 virtual void streamTo(SourceStream &s) const;768 virtual void processVarDecls(ExecState*); 769 virtual void streamTo(SourceStream&) const; 770 770 private: 771 771 Type varType; … … 781 781 : next(l->next), var(v) { l->next = this; } 782 782 JSValue* evaluate(ExecState*); 783 virtual void processVarDecls(ExecState *exec);784 virtual void streamTo(SourceStream &s) const;783 virtual void processVarDecls(ExecState*); 784 virtual void streamTo(SourceStream&) const; 785 785 PassRefPtr<VarDeclListNode> releaseNext() { return next.release(); } 786 786 virtual void breakCycle(); … … 795 795 public: 796 796 VarStatementNode(VarDeclListNode *l) : next(l->next) { Parser::removeNodeCycle(next.get()); l->next = 0; } 797 virtual Completion execute(ExecState *exec);798 virtual void processVarDecls(ExecState *exec);799 virtual void streamTo(SourceStream &s) const;797 virtual Completion execute(ExecState*); 798 virtual void processVarDecls(ExecState*); 799 virtual void streamTo(SourceStream&) const; 800 800 private: 801 801 RefPtr<VarDeclListNode> next; … … 805 805 public: 806 806 BlockNode(SourceElementsNode *s); 807 virtual Completion execute(ExecState *exec);808 virtual void processVarDecls(ExecState *exec);809 virtual void streamTo(SourceStream &s) const;807 virtual Completion execute(ExecState*); 808 virtual void processVarDecls(ExecState*); 809 virtual void streamTo(SourceStream&) const; 810 810 protected: 811 811 RefPtr<SourceElementsNode> source; … … 815 815 public: 816 816 EmptyStatementNode() { } // debug 817 virtual Completion execute(ExecState *exec);818 virtual void streamTo(SourceStream &s) const;817 virtual Completion execute(ExecState*); 818 virtual void streamTo(SourceStream&) const; 819 819 }; 820 820 … … 822 822 public: 823 823 ExprStatementNode(Node *e) : expr(e) { } 824 virtual Completion execute(ExecState *exec);825 virtual void streamTo(SourceStream &s) const;824 virtual Completion execute(ExecState*); 825 virtual void streamTo(SourceStream&) const; 826 826 private: 827 827 RefPtr<Node> expr; … … 832 832 IfNode(Node *e, StatementNode *s1, StatementNode *s2) 833 833 : expr(e), statement1(s1), statement2(s2) {} 834 virtual Completion execute(ExecState *exec);835 virtual void processVarDecls(ExecState *exec);836 virtual void streamTo(SourceStream &s) const;834 virtual Completion execute(ExecState*); 835 virtual void processVarDecls(ExecState*); 836 virtual void streamTo(SourceStream&) const; 837 837 private: 838 838 RefPtr<Node> expr; … … 844 844 public: 845 845 DoWhileNode(StatementNode *s, Node *e) : statement(s), expr(e) {} 846 virtual Completion execute(ExecState *exec);847 virtual void processVarDecls(ExecState *exec);848 virtual void streamTo(SourceStream &s) const;846 virtual Completion execute(ExecState*); 847 virtual void processVarDecls(ExecState*); 848 virtual void streamTo(SourceStream&) const; 849 849 private: 850 850 RefPtr<StatementNode> statement; … … 855 855 public: 856 856 WhileNode(Node *e, StatementNode *s) : expr(e), statement(s) {} 857 virtual Completion execute(ExecState *exec);858 virtual void processVarDecls(ExecState *exec);859 virtual void streamTo(SourceStream &s) const;857 virtual Completion execute(ExecState*); 858 virtual void processVarDecls(ExecState*); 859 virtual void streamTo(SourceStream&) const; 860 860 private: 861 861 RefPtr<Node> expr; … … 869 869 ForNode(VarDeclListNode *e1, Node *e2, Node *e3, StatementNode *s) : 870 870 expr1(e1->next), expr2(e2), expr3(e3), statement(s) { Parser::removeNodeCycle(expr1.get()); e1->next = 0; } 871 virtual Completion execute(ExecState *exec);872 virtual void processVarDecls(ExecState *exec);873 virtual void streamTo(SourceStream &s) const;871 virtual Completion execute(ExecState*); 872 virtual void processVarDecls(ExecState*); 873 virtual void streamTo(SourceStream&) const; 874 874 private: 875 875 RefPtr<Node> expr1; … … 883 883 ForInNode(Node *l, Node *e, StatementNode *s); 884 884 ForInNode(const Identifier &i, AssignExprNode *in, Node *e, StatementNode *s); 885 virtual Completion execute(ExecState *exec);886 virtual void processVarDecls(ExecState *exec);887 virtual void streamTo(SourceStream &s) const;885 virtual Completion execute(ExecState*); 886 virtual void processVarDecls(ExecState*); 887 virtual void streamTo(SourceStream&) const; 888 888 private: 889 889 Identifier ident; … … 899 899 ContinueNode() { } 900 900 ContinueNode(const Identifier &i) : ident(i) { } 901 virtual Completion execute(ExecState *exec);902 virtual void streamTo(SourceStream &s) const;901 virtual Completion execute(ExecState*); 902 virtual void streamTo(SourceStream&) const; 903 903 private: 904 904 Identifier ident; … … 909 909 BreakNode() { } 910 910 BreakNode(const Identifier &i) : ident(i) { } 911 virtual Completion execute(ExecState *exec);912 virtual void streamTo(SourceStream &s) const;911 virtual Completion execute(ExecState*); 912 virtual void streamTo(SourceStream&) const; 913 913 private: 914 914 Identifier ident; … … 918 918 public: 919 919 ReturnNode(Node *v) : value(v) {} 920 virtual Completion execute(ExecState *exec);921 virtual void streamTo(SourceStream &s) const;920 virtual Completion execute(ExecState*); 921 virtual void streamTo(SourceStream&) const; 922 922 private: 923 923 RefPtr<Node> value; … … 927 927 public: 928 928 WithNode(Node *e, StatementNode *s) : expr(e), statement(s) {} 929 virtual Completion execute(ExecState *exec);930 virtual void processVarDecls(ExecState *exec);931 virtual void streamTo(SourceStream &s) const;929 virtual Completion execute(ExecState*); 930 virtual void processVarDecls(ExecState*); 931 virtual void streamTo(SourceStream&) const; 932 932 private: 933 933 RefPtr<Node> expr; … … 941 941 : expr(e), next(l->next) { Parser::removeNodeCycle(next.get()); l->next = 0; } 942 942 JSValue* evaluate(ExecState*); 943 Completion evalStatements(ExecState *exec);944 virtual void processVarDecls(ExecState *exec);945 virtual void streamTo(SourceStream &s) const;943 Completion evalStatements(ExecState*); 944 virtual void processVarDecls(ExecState*); 945 virtual void streamTo(SourceStream&) const; 946 946 private: 947 947 RefPtr<Node> expr; … … 958 958 CaseClauseNode *getClause() const { return clause.get(); } 959 959 ClauseListNode *getNext() const { return next.get(); } 960 virtual void processVarDecls(ExecState *exec);961 virtual void streamTo(SourceStream &s) const;960 virtual void processVarDecls(ExecState*); 961 virtual void streamTo(SourceStream&) const; 962 962 PassRefPtr<ClauseListNode> releaseNext() { return next.release(); } 963 963 virtual void breakCycle(); … … 973 973 JSValue* evaluate(ExecState*); 974 974 Completion evalBlock(ExecState *exec, JSValue *input); 975 virtual void processVarDecls(ExecState *exec);976 virtual void streamTo(SourceStream &s) const;975 virtual void processVarDecls(ExecState*); 976 virtual void streamTo(SourceStream&) const; 977 977 private: 978 978 RefPtr<ClauseListNode> list1; … … 984 984 public: 985 985 SwitchNode(Node *e, CaseBlockNode *b) : expr(e), block(b) { } 986 virtual Completion execute(ExecState *exec);987 virtual void processVarDecls(ExecState *exec);988 virtual void streamTo(SourceStream &s) const;986 virtual Completion execute(ExecState*); 987 virtual void processVarDecls(ExecState*); 988 virtual void streamTo(SourceStream&) const; 989 989 private: 990 990 RefPtr<Node> expr; … … 995 995 public: 996 996 LabelNode(const Identifier &l, StatementNode *s) : label(l), statement(s) { } 997 virtual Completion execute(ExecState *exec);998 virtual void processVarDecls(ExecState *exec);999 virtual void streamTo(SourceStream &s) const;997 virtual Completion execute(ExecState*); 998 virtual void processVarDecls(ExecState*); 999 virtual void streamTo(SourceStream&) const; 1000 1000 private: 1001 1001 Identifier label; … … 1006 1006 public: 1007 1007 ThrowNode(Node *e) : expr(e) {} 1008 virtual Completion execute(ExecState *exec);1009 virtual void streamTo(SourceStream &s) const;1008 virtual Completion execute(ExecState*); 1009 virtual void streamTo(SourceStream&) const; 1010 1010 private: 1011 1011 RefPtr<Node> expr; … … 1016 1016 TryNode(StatementNode *b, const Identifier &e, StatementNode *c, StatementNode *f) 1017 1017 : tryBlock(b), exceptionIdent(e), catchBlock(c), finallyBlock(f) { } 1018 virtual Completion execute(ExecState *exec);1019 virtual void processVarDecls(ExecState *exec);1020 virtual void streamTo(SourceStream &s) const;1018 virtual Completion execute(ExecState*); 1019 virtual void processVarDecls(ExecState*); 1020 virtual void streamTo(SourceStream&) const; 1021 1021 private: 1022 1022 RefPtr<StatementNode> tryBlock; … … 1035 1035 Identifier ident() { return id; } 1036 1036 ParameterNode *nextParam() { return next.get(); } 1037 virtual void streamTo(SourceStream &s) const;1037 virtual void streamTo(SourceStream&) const; 1038 1038 PassRefPtr<ParameterNode> releaseNext() { return next.release(); } 1039 1039 virtual void breakCycle(); … … 1049 1049 public: 1050 1050 FunctionBodyNode(SourceElementsNode *); 1051 virtual void processFuncDecl(ExecState *exec);1051 virtual void processFuncDecl(ExecState*); 1052 1052 int sourceId() { return m_sourceId; } 1053 1053 const UString& sourceURL() { return m_sourceURL; } … … 1061 1061 FuncExprNode(const Identifier &i, FunctionBodyNode *b, ParameterNode *p = 0) 1062 1062 : ident(i), param(p ? p->next : 0), body(b) { if (p) { Parser::removeNodeCycle(param.get()); p->next = 0; } } 1063 virtual JSValue *evaluate(ExecState 1064 virtual void streamTo(SourceStream 1063 virtual JSValue *evaluate(ExecState*); 1064 virtual void streamTo(SourceStream&) const; 1065 1065 private: 1066 1066 // Used for streamTo … … 1077 1077 FuncDeclNode(const Identifier &i, ParameterNode *p, FunctionBodyNode *b) 1078 1078 : ident(i), param(p->next), body(b) { Parser::removeNodeCycle(param.get()); p->next = 0; } 1079 virtual Completion execute(ExecState 1080 virtual void processFuncDecl(ExecState 1081 virtual void streamTo(SourceStream 1079 virtual Completion execute(ExecState*); 1080 virtual void processFuncDecl(ExecState*); 1081 virtual void streamTo(SourceStream&) const; 1082 1082 private: 1083 1083 Identifier ident; … … 1091 1091 static int count; 1092 1092 // list pointer is tail of a circular list, cracked in the BlockNode (or subclass) ctor 1093 SourceElementsNode(StatementNode *s1);1093 SourceElementsNode(StatementNode*); 1094 1094 SourceElementsNode(SourceElementsNode *s1, StatementNode *s2); 1095 1095 1096 Completion execute(ExecState *exec);1097 void processFuncDecl(ExecState *exec);1098 virtual void processVarDecls(ExecState *exec);1099 virtual void streamTo(SourceStream &s) const;1096 Completion execute(ExecState*); 1097 void processFuncDecl(ExecState*); 1098 virtual void processVarDecls(ExecState*); 1099 virtual void streamTo(SourceStream&) const; 1100 1100 PassRefPtr<SourceElementsNode> releaseNext() { return next.release(); } 1101 1101 virtual void breakCycle();
Note: See TracChangeset
for help on using the changeset viewer.