| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |