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

Side by Side Diff: src/ast.h

Issue 8733: Merged bleeding_edge r599:645 into regexp2000. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years, 1 month 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 | « src/array.js ('k') | src/builtins.h » ('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 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 class Expression: public Node { 143 class Expression: public Node {
144 public: 144 public:
145 virtual Expression* AsExpression() { return this; } 145 virtual Expression* AsExpression() { return this; }
146 146
147 virtual bool IsValidLeftHandSide() { return false; } 147 virtual bool IsValidLeftHandSide() { return false; }
148 148
149 // Mark the expression as being compiled as an expression 149 // Mark the expression as being compiled as an expression
150 // statement. This is used to transform postfix increments to 150 // statement. This is used to transform postfix increments to
151 // (faster) prefix increments. 151 // (faster) prefix increments.
152 virtual void MarkAsStatement() { /* do nothing */ } 152 virtual void MarkAsStatement() { /* do nothing */ }
153
154 // Static type information for this expression.
155 StaticType* type() { return &type_; }
156
157 private:
158 StaticType type_;
153 }; 159 };
154 160
155 161
156 /** 162 /**
157 * A sentinel used during pre parsing that represents some expression 163 * A sentinel used during pre parsing that represents some expression
158 * that is a valid left hand side without having to actually build 164 * that is a valid left hand side without having to actually build
159 * the expression. 165 * the expression.
160 */ 166 */
161 class ValidLeftHandSideSentinel: public Expression { 167 class ValidLeftHandSideSentinel: public Expression {
162 public: 168 public:
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 #undef DEF_VISIT 1432 #undef DEF_VISIT
1427 1433
1428 private: 1434 private:
1429 bool stack_overflow_; 1435 bool stack_overflow_;
1430 }; 1436 };
1431 1437
1432 1438
1433 } } // namespace v8::internal 1439 } } // namespace v8::internal
1434 1440
1435 #endif // V8_AST_H_ 1441 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698