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

Unified Diff: src/compiler/bytecode-graph-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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/bytecode-graph-builder.cc
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc
index 8d58c288b20c0603381b70ac34e4c4b1b1248fde..5d617aea38636aec979c11a087f665b40dbc30ad 100644
--- a/src/compiler/bytecode-graph-builder.cc
+++ b/src/compiler/bytecode-graph-builder.cc
@@ -1686,9 +1686,7 @@ Node* BytecodeGraphBuilder::MakeNode(const Operator* op, int value_input_count,
int context_index = exception_handlers_.top().context_register_;
CatchPrediction prediction = exception_handlers_.top().pred_;
interpreter::Register context_register(context_index);
- IfExceptionHint hint = prediction == CatchPrediction::CAUGHT
- ? IfExceptionHint::kLocallyCaught
- : IfExceptionHint::kLocallyUncaught;
+ IfExceptionHint hint = ExceptionHintFromCatchPrediction(prediction);
Environment* success_env = environment()->CopyForConditional();
const Operator* op = common()->IfException(hint);
Node* effect = environment()->GetEffectDependency();

Powered by Google App Engine
This is Rietveld 408576698