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; |
}; |