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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2161263003: [debug] use catch prediction flag for promise rejections. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
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-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-dead-code-optimizer.h" 10 #include "src/interpreter/bytecode-dead-code-optimizer.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 Output(Bytecode::kSuspendGenerator, RegisterOperand(generator)); 516 Output(Bytecode::kSuspendGenerator, RegisterOperand(generator));
517 return *this; 517 return *this;
518 } 518 }
519 519
520 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( 520 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator(
521 Register generator) { 521 Register generator) {
522 Output(Bytecode::kResumeGenerator, RegisterOperand(generator)); 522 Output(Bytecode::kResumeGenerator, RegisterOperand(generator));
523 return *this; 523 return *this;
524 } 524 }
525 525
526 BytecodeArrayBuilder& BytecodeArrayBuilder::MarkHandler(int handler_id, 526 BytecodeArrayBuilder& BytecodeArrayBuilder::MarkHandler(
527 bool will_catch) { 527 int handler_id, HandlerTable::CatchPrediction catch_prediction) {
528 BytecodeLabel handler; 528 BytecodeLabel handler;
529 Bind(&handler); 529 Bind(&handler);
530 handler_table_builder()->SetHandlerTarget(handler_id, handler.offset()); 530 handler_table_builder()->SetHandlerTarget(handler_id, handler.offset());
531 handler_table_builder()->SetPrediction(handler_id, will_catch); 531 handler_table_builder()->SetPrediction(handler_id, catch_prediction);
532 return *this; 532 return *this;
533 } 533 }
534 534
535 BytecodeArrayBuilder& BytecodeArrayBuilder::MarkTryBegin(int handler_id, 535 BytecodeArrayBuilder& BytecodeArrayBuilder::MarkTryBegin(int handler_id,
536 Register context) { 536 Register context) {
537 BytecodeLabel try_begin; 537 BytecodeLabel try_begin;
538 Bind(&try_begin); 538 Bind(&try_begin);
539 handler_table_builder()->SetTryRegionStart(handler_id, try_begin.offset()); 539 handler_table_builder()->SetTryRegionStart(handler_id, try_begin.offset());
540 handler_table_builder()->SetContextRegister(handler_id, context); 540 handler_table_builder()->SetContextRegister(handler_id, context);
541 return *this; 541 return *this;
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 return Bytecode::kTailCall; 932 return Bytecode::kTailCall;
933 default: 933 default:
934 UNREACHABLE(); 934 UNREACHABLE();
935 } 935 }
936 return Bytecode::kIllegal; 936 return Bytecode::kIllegal;
937 } 937 }
938 938
939 } // namespace interpreter 939 } // namespace interpreter
940 } // namespace internal 940 } // namespace internal
941 } // namespace v8 941 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698