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

Unified Diff: src/compiler/common-operator.h

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/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index 620ca57f90bfb8ab39907a63fdd72eb27edca60c..f6e75a464fa1324d036c610782abdd2f84555119 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -77,7 +77,14 @@ std::ostream& operator<<(std::ostream&, DeoptimizeParameters p);
DeoptimizeParameters const& DeoptimizeParametersOf(Operator const* const);
// Prediction whether throw-site is surrounded by any local catch-scope.
-enum class IfExceptionHint { kLocallyUncaught, kLocallyCaught };
+enum class IfExceptionHint {
+ kLocallyUncaught,
+ kLocallyCaught,
+ kLocallyCaughtForPromiseReject
+};
+
+IfExceptionHint ExceptionHintFromCatchPrediction(
+ HandlerTable::CatchPrediction prediction);
size_t hash_value(IfExceptionHint hint);

Powered by Google App Engine
This is Rietveld 408576698