| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // enumerated here. | 53 // enumerated here. |
| 54 | 54 |
| 55 #define STATEMENT_NODE_LIST(V) \ | 55 #define STATEMENT_NODE_LIST(V) \ |
| 56 V(Block) \ | 56 V(Block) \ |
| 57 V(ExpressionStatement) \ | 57 V(ExpressionStatement) \ |
| 58 V(EmptyStatement) \ | 58 V(EmptyStatement) \ |
| 59 V(IfStatement) \ | 59 V(IfStatement) \ |
| 60 V(ContinueStatement) \ | 60 V(ContinueStatement) \ |
| 61 V(BreakStatement) \ | 61 V(BreakStatement) \ |
| 62 V(ReturnStatement) \ | 62 V(ReturnStatement) \ |
| 63 V(EnterWithContextStatement) \ | 63 V(WithStatement) \ |
| 64 V(ExitContextStatement) \ | 64 V(ExitContextStatement) \ |
| 65 V(SwitchStatement) \ | 65 V(SwitchStatement) \ |
| 66 V(DoWhileStatement) \ | 66 V(DoWhileStatement) \ |
| 67 V(WhileStatement) \ | 67 V(WhileStatement) \ |
| 68 V(ForStatement) \ | 68 V(ForStatement) \ |
| 69 V(ForInStatement) \ | 69 V(ForInStatement) \ |
| 70 V(TryCatchStatement) \ | 70 V(TryCatchStatement) \ |
| 71 V(TryFinallyStatement) \ | 71 V(TryFinallyStatement) \ |
| 72 V(DebuggerStatement) | 72 V(DebuggerStatement) |
| 73 | 73 |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 DECLARE_NODE_TYPE(ReturnStatement) | 620 DECLARE_NODE_TYPE(ReturnStatement) |
| 621 | 621 |
| 622 Expression* expression() const { return expression_; } | 622 Expression* expression() const { return expression_; } |
| 623 virtual bool IsInlineable() const; | 623 virtual bool IsInlineable() const; |
| 624 | 624 |
| 625 private: | 625 private: |
| 626 Expression* expression_; | 626 Expression* expression_; |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 | 629 |
| 630 class EnterWithContextStatement: public Statement { | 630 class WithStatement: public Statement { |
| 631 public: | 631 public: |
| 632 explicit EnterWithContextStatement(Expression* expression) | 632 WithStatement(Expression* expression, Statement* statement) |
| 633 : expression_(expression) { } | 633 : expression_(expression), statement_(statement) { } |
| 634 | 634 |
| 635 DECLARE_NODE_TYPE(EnterWithContextStatement) | 635 DECLARE_NODE_TYPE(WithStatement) |
| 636 | 636 |
| 637 Expression* expression() const { return expression_; } | 637 Expression* expression() const { return expression_; } |
| 638 Statement* statement() const { return statement_; } |
| 638 | 639 |
| 639 virtual bool IsInlineable() const; | 640 virtual bool IsInlineable() const; |
| 640 | 641 |
| 641 private: | 642 private: |
| 642 Expression* expression_; | 643 Expression* expression_; |
| 644 Statement* statement_; |
| 643 }; | 645 }; |
| 644 | 646 |
| 645 | 647 |
| 646 class ExitContextStatement: public Statement { | 648 class ExitContextStatement: public Statement { |
| 647 public: | 649 public: |
| 648 virtual bool IsInlineable() const; | 650 virtual bool IsInlineable() const; |
| 649 | 651 |
| 650 DECLARE_NODE_TYPE(ExitContextStatement) | 652 DECLARE_NODE_TYPE(ExitContextStatement) |
| 651 }; | 653 }; |
| 652 | 654 |
| (...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2236 | 2238 |
| 2237 private: | 2239 private: |
| 2238 Isolate* isolate_; | 2240 Isolate* isolate_; |
| 2239 bool stack_overflow_; | 2241 bool stack_overflow_; |
| 2240 }; | 2242 }; |
| 2241 | 2243 |
| 2242 | 2244 |
| 2243 } } // namespace v8::internal | 2245 } } // namespace v8::internal |
| 2244 | 2246 |
| 2245 #endif // V8_AST_H_ | 2247 #endif // V8_AST_H_ |
| OLD | NEW |