Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Side by Side Diff: src/ast.h

Issue 7837025: Remove ExitContextStatement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 #define STATEMENT_NODE_LIST(V) \ 56 #define STATEMENT_NODE_LIST(V) \
57 V(Block) \ 57 V(Block) \
58 V(ExpressionStatement) \ 58 V(ExpressionStatement) \
59 V(EmptyStatement) \ 59 V(EmptyStatement) \
60 V(IfStatement) \ 60 V(IfStatement) \
61 V(ContinueStatement) \ 61 V(ContinueStatement) \
62 V(BreakStatement) \ 62 V(BreakStatement) \
63 V(ReturnStatement) \ 63 V(ReturnStatement) \
64 V(WithStatement) \ 64 V(WithStatement) \
65 V(ExitContextStatement) \
66 V(SwitchStatement) \ 65 V(SwitchStatement) \
67 V(DoWhileStatement) \ 66 V(DoWhileStatement) \
68 V(WhileStatement) \ 67 V(WhileStatement) \
69 V(ForStatement) \ 68 V(ForStatement) \
70 V(ForInStatement) \ 69 V(ForInStatement) \
71 V(TryCatchStatement) \ 70 V(TryCatchStatement) \
72 V(TryFinallyStatement) \ 71 V(TryFinallyStatement) \
73 V(DebuggerStatement) 72 V(DebuggerStatement)
74 73
75 #define EXPRESSION_NODE_LIST(V) \ 74 #define EXPRESSION_NODE_LIST(V) \
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 Statement* statement() const { return statement_; } 673 Statement* statement() const { return statement_; }
675 674
676 virtual bool IsInlineable() const; 675 virtual bool IsInlineable() const;
677 676
678 private: 677 private:
679 Expression* expression_; 678 Expression* expression_;
680 Statement* statement_; 679 Statement* statement_;
681 }; 680 };
682 681
683 682
684 class ExitContextStatement: public Statement {
685 public:
686 virtual bool IsInlineable() const;
687
688 DECLARE_NODE_TYPE(ExitContextStatement)
689 };
690
691
692 class CaseClause: public ZoneObject { 683 class CaseClause: public ZoneObject {
693 public: 684 public:
694 CaseClause(Isolate* isolate, 685 CaseClause(Isolate* isolate,
695 Expression* label, 686 Expression* label,
696 ZoneList<Statement*>* statements, 687 ZoneList<Statement*>* statements,
697 int pos); 688 int pos);
698 689
699 bool is_default() const { return label_ == NULL; } 690 bool is_default() const { return label_ == NULL; }
700 Expression* label() const { 691 Expression* label() const {
701 CHECK(!is_default()); 692 CHECK(!is_default());
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 2140
2150 private: 2141 private:
2151 Isolate* isolate_; 2142 Isolate* isolate_;
2152 bool stack_overflow_; 2143 bool stack_overflow_;
2153 }; 2144 };
2154 2145
2155 2146
2156 } } // namespace v8::internal 2147 } } // namespace v8::internal
2157 2148
2158 #endif // V8_AST_H_ 2149 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698