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

Side by Side Diff: src/typing.cc

Issue 1327753002: [crankshaft] Add baseline implementation of for-of. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/typing.h" 5 #include "src/typing.h"
6 6
7 #include "src/frames.h" 7 #include "src/frames.h"
8 #include "src/frames-inl.h" 8 #include "src/frames-inl.h"
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 RECURSE(Visit(stmt->enumerable())); 292 RECURSE(Visit(stmt->enumerable()));
293 store_.Forget(); // Control may transfer here via looping or 'continue'. 293 store_.Forget(); // Control may transfer here via looping or 'continue'.
294 ObserveTypesAtOsrEntry(stmt); 294 ObserveTypesAtOsrEntry(stmt);
295 RECURSE(Visit(stmt->body())); 295 RECURSE(Visit(stmt->body()));
296 store_.Forget(); // Control may transfer here via 'break'. 296 store_.Forget(); // Control may transfer here via 'break'.
297 } 297 }
298 298
299 299
300 void AstTyper::VisitForOfStatement(ForOfStatement* stmt) { 300 void AstTyper::VisitForOfStatement(ForOfStatement* stmt) {
301 RECURSE(Visit(stmt->iterable())); 301 RECURSE(Visit(stmt->iterable()));
302 RECURSE(Visit(stmt->assign_iterator()));
302 store_.Forget(); // Control may transfer here via looping or 'continue'. 303 store_.Forget(); // Control may transfer here via looping or 'continue'.
304 RECURSE(Visit(stmt->next_result()));
305 // Collect type feedback.
306 stmt->result_done()->RecordToBooleanTypeFeedback(oracle());
307 ObserveTypesAtOsrEntry(stmt);
308 RECURSE(Visit(stmt->result_done()));
309 RECURSE(Visit(stmt->assign_each()));
303 RECURSE(Visit(stmt->body())); 310 RECURSE(Visit(stmt->body()));
304 store_.Forget(); // Control may transfer here via 'break'. 311 store_.Forget(); // Control may transfer here via 'break'.
305 } 312 }
306 313
307 314
308 void AstTyper::VisitTryCatchStatement(TryCatchStatement* stmt) { 315 void AstTyper::VisitTryCatchStatement(TryCatchStatement* stmt) {
309 Effects try_effects = EnterEffects(); 316 Effects try_effects = EnterEffects();
310 RECURSE(Visit(stmt->try_block())); 317 RECURSE(Visit(stmt->try_block()));
311 ExitEffects(); 318 ExitEffects();
312 Effects catch_effects = EnterEffects(); 319 Effects catch_effects = EnterEffects();
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { 796 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) {
790 } 797 }
791 798
792 799
793 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { 800 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) {
794 } 801 }
795 802
796 803
797 } // namespace internal 804 } // namespace internal
798 } // namespace v8 805 } // namespace v8
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698