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

Side by Side Diff: src/ast.h

Issue 7003058: A collection of context-related refactoring changes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(WithEnterStatement) \ 63 V(WithEnterStatement) \
Mads Ager (chromium) 2011/06/09 07:31:00 Do we want to call this WithContextEnterStatement
64 V(WithExitStatement) \ 64 V(ContextExitStatement) \
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
74 #define EXPRESSION_NODE_LIST(V) \ 74 #define EXPRESSION_NODE_LIST(V) \
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 620
621 Expression* expression() const { return expression_; } 621 Expression* expression() const { return expression_; }
622 622
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 WithExitStatement: public Statement { 630 class ContextExitStatement: public Statement {
631 public: 631 public:
632 WithExitStatement() { } 632 ContextExitStatement() { }
633 633
634 virtual bool IsInlineable() const; 634 virtual bool IsInlineable() const;
635 635
636 DECLARE_NODE_TYPE(WithExitStatement) 636 DECLARE_NODE_TYPE(ContextExitStatement)
637 }; 637 };
638 638
639 639
640 class CaseClause: public ZoneObject { 640 class CaseClause: public ZoneObject {
641 public: 641 public:
642 CaseClause(Expression* label, ZoneList<Statement*>* statements, int pos); 642 CaseClause(Expression* label, ZoneList<Statement*>* statements, int pos);
643 643
644 bool is_default() const { return label_ == NULL; } 644 bool is_default() const { return label_ == NULL; }
645 Expression* label() const { 645 Expression* label() const {
646 CHECK(!is_default()); 646 CHECK(!is_default());
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2152 2152
2153 private: 2153 private:
2154 Isolate* isolate_; 2154 Isolate* isolate_;
2155 bool stack_overflow_; 2155 bool stack_overflow_;
2156 }; 2156 };
2157 2157
2158 2158
2159 } } // namespace v8::internal 2159 } } // namespace v8::internal
2160 2160
2161 #endif // V8_AST_H_ 2161 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | src/contexts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698