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

Side by Side Diff: src/interpreter/bytecode-generator.cc

Issue 1402093002: [Interpreter]: Add fake support for try/catch/finally. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/flag-definitions.h ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698