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

Unified Diff: src/ast.h

Issue 42562: Make the "has function literal" default value for loops conservative.... (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 1599)
+++ src/ast.h (working copy)
@@ -296,7 +296,7 @@
init_(NULL),
cond_(NULL),
next_(NULL),
- has_function_literal_(false) {
+ may_have_function_literal_(true) {
}
void Initialize(Statement* init,
@@ -317,7 +317,9 @@
Statement* init() const { return init_; }
Expression* cond() const { return cond_; }
Statement* next() const { return next_; }
- bool has_function_literal() const { return has_function_literal_; }
+ bool may_have_function_literal() const {
+ return may_have_function_literal_;
+ }
#ifdef DEBUG
const char* OperatorString() const;
@@ -329,7 +331,7 @@
Expression* cond_;
Statement* next_;
// True if there is a function literal subexpression in the condition.
- bool has_function_literal_;
+ bool may_have_function_literal_;
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