OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/bytecode-generator.h" | 5 #include "src/interpreter/bytecode-generator.h" |
6 | 6 |
7 #include <stack> | 7 #include <stack> |
8 | 8 |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/interpreter/control-flow-builders.h" | 10 #include "src/interpreter/control-flow-builders.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 UNIMPLEMENTED(); | 424 UNIMPLEMENTED(); |
425 } | 425 } |
426 | 426 |
427 | 427 |
428 void BytecodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { | 428 void BytecodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { |
429 UNIMPLEMENTED(); | 429 UNIMPLEMENTED(); |
430 } | 430 } |
431 | 431 |
432 | 432 |
433 void BytecodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { | 433 void BytecodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { |
| 434 if (FLAG_ignition_fake_try_catch) { |
| 435 Visit(stmt->try_block()); |
| 436 return; |
| 437 } |
434 UNIMPLEMENTED(); | 438 UNIMPLEMENTED(); |
435 } | 439 } |
436 | 440 |
437 | 441 |
438 void BytecodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) { | 442 void BytecodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) { |
| 443 if (FLAG_ignition_fake_try_catch) { |
| 444 Visit(stmt->try_block()); |
| 445 Visit(stmt->finally_block()); |
| 446 return; |
| 447 } |
439 UNIMPLEMENTED(); | 448 UNIMPLEMENTED(); |
440 } | 449 } |
441 | 450 |
442 | 451 |
443 void BytecodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) { | 452 void BytecodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) { |
444 UNIMPLEMENTED(); | 453 UNIMPLEMENTED(); |
445 } | 454 } |
446 | 455 |
447 | 456 |
448 void BytecodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { | 457 void BytecodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 } | 998 } |
990 | 999 |
991 | 1000 |
992 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { | 1001 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { |
993 return info()->feedback_vector()->GetIndex(slot); | 1002 return info()->feedback_vector()->GetIndex(slot); |
994 } | 1003 } |
995 | 1004 |
996 } // namespace interpreter | 1005 } // namespace interpreter |
997 } // namespace internal | 1006 } // namespace internal |
998 } // namespace v8 | 1007 } // namespace v8 |
OLD | NEW |