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

Unified Diff: src/ast.h

Issue 42127: Reenable the duplicated test at the bottom of for and while loops. It... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
===================================================================
--- src/ast.h (revision 1501)
+++ src/ast.h (working copy)
@@ -291,8 +291,13 @@
enum Type { DO_LOOP, FOR_LOOP, WHILE_LOOP };
LoopStatement(ZoneStringList* labels, Type type)
- : IterationStatement(labels), type_(type), init_(NULL),
- cond_(NULL), next_(NULL) { }
+ : IterationStatement(labels),
+ type_(type),
+ init_(NULL),
+ cond_(NULL),
+ next_(NULL),
+ has_function_literal_(false) {
+ }
void Initialize(Statement* init,
Expression* cond,
@@ -312,6 +317,7 @@
Statement* init() const { return init_; }
Expression* cond() const { return cond_; }
Statement* next() const { return next_; }
+ bool has_function_literal() const { return has_function_literal_; }
#ifdef DEBUG
const char* OperatorString() const;
@@ -322,6 +328,9 @@
Statement* init_;
Expression* cond_;
Statement* next_;
+ bool has_function_literal_;
Kasper Lund 2009/03/12 15:40:30 Maybe add a comment here that this is a function l
Kevin Millikin (Chromium) 2009/03/12 15:42:44 Done.
+
+ friend class AstOptimizer;
};
« no previous file with comments | « no previous file | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698