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

Unified Diff: src/hydrogen.h

Issue 368243002: Hydrogen LoopBuilder: add support for "while(true) {...}" loops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index a0fdf00f9d706cc58dda92ca9573aa50e72a98ff..84d69ca755259acea6972630ef04c91ecf54dc4c 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1669,9 +1669,11 @@ class HGraphBuilder {
kPreIncrement,
kPostIncrement,
kPreDecrement,
- kPostDecrement
+ kPostDecrement,
+ kWhileTrue
};
+ explicit LoopBuilder(HGraphBuilder* builder); // while (true) {...}
LoopBuilder(HGraphBuilder* builder,
HValue* context,
Direction direction);
@@ -1689,11 +1691,15 @@ class HGraphBuilder {
HValue* terminating,
Token::Value token);
+ void BeginBody(int drop_count);
+
void Break();
void EndBody();
private:
+ void Initialize(HGraphBuilder* builder, HValue* context,
+ Direction direction, HValue* increment_amount);
Zone* zone() { return builder_->zone(); }
HGraphBuilder* builder_;
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698