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

Unified Diff: src/typing.cc

Issue 15740007: Add for-of Crankshaft support Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase onto master; fix AstTyper for ForOfStatement Created 7 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 | « src/parser.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index 4ba67213a1301edc78c5d6b4232c2f753a759bac..52b3721a13bd32d8be89babd308614b2e81bf009 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -226,7 +226,11 @@ void AstTyper::VisitForInStatement(ForInStatement* stmt) {
void AstTyper::VisitForOfStatement(ForOfStatement* stmt) {
ASSERT(!HasStackOverflow());
- CHECK_ALIVE(Visit(stmt->iterable()));
+ CHECK_ALIVE(Visit(stmt->assign_iterator()));
+ CHECK_ALIVE(Visit(stmt->next_result()));
+ CHECK_ALIVE(Visit(stmt->result_done()));
+ stmt->result_done()->RecordToBooleanTypeFeedback(oracle());
+ CHECK_ALIVE(Visit(stmt->assign_each()));
CHECK_ALIVE(Visit(stmt->body()));
}
« no previous file with comments | « src/parser.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698