OLD | NEW |
---|---|
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
157 private: | 157 private: |
158 int statement_pos_; | 158 int statement_pos_; |
159 }; | 159 }; |
160 | 160 |
161 | 161 |
162 class Expression: public AstNode { | 162 class Expression: public AstNode { |
163 public: | 163 public: |
164 enum Context { | 164 enum Context { |
165 kUninitialized, | 165 kUninitialized, |
166 kEffect, | 166 kEffect, |
167 kValue | 167 kValue, |
168 kTest, | |
169 kValueTest, | |
William Hesse
2009/10/30 12:09:39
Bigendian nomenclature: effect(true) ## effect(fal
Kevin Millikin (Chromium)
2009/10/30 13:45:53
There'll be a big comment here explaining the whol
| |
170 kTestValue | |
168 }; | 171 }; |
169 | 172 |
170 Expression() : context_(kUninitialized) {} | 173 Expression() : context_(kUninitialized) {} |
171 | 174 |
172 virtual Expression* AsExpression() { return this; } | 175 virtual Expression* AsExpression() { return this; } |
173 | 176 |
174 virtual bool IsValidJSON() { return false; } | 177 virtual bool IsValidJSON() { return false; } |
175 virtual bool IsValidLeftHandSide() { return false; } | 178 virtual bool IsValidLeftHandSide() { return false; } |
176 | 179 |
177 // Mark the expression as being compiled as an expression | 180 // Mark the expression as being compiled as an expression |
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1767 #undef DEF_VISIT | 1770 #undef DEF_VISIT |
1768 | 1771 |
1769 private: | 1772 private: |
1770 bool stack_overflow_; | 1773 bool stack_overflow_; |
1771 }; | 1774 }; |
1772 | 1775 |
1773 | 1776 |
1774 } } // namespace v8::internal | 1777 } } // namespace v8::internal |
1775 | 1778 |
1776 #endif // V8_AST_H_ | 1779 #endif // V8_AST_H_ |
OLD | NEW |