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

Unified Diff: src/interpreter/handler-table-builder.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/interpreter/handler-table-builder.h
diff --git a/src/interpreter/handler-table-builder.h b/src/interpreter/handler-table-builder.h
index a3340ccd1b91e8f82e046fd33f81338eb23f02ab..eb923b9d1fce73f4dd384547d88e9ba13fd93059 100644
--- a/src/interpreter/handler-table-builder.h
+++ b/src/interpreter/handler-table-builder.h
@@ -37,7 +37,7 @@ class HandlerTableBuilder final BASE_EMBEDDED {
void SetTryRegionStart(int handler_id, size_t offset);
void SetTryRegionEnd(int handler_id, size_t offset);
void SetHandlerTarget(int handler_id, size_t offset);
- void SetPrediction(int handler_id, bool will_catch);
+ void SetPrediction(int handler_id, HandlerTable::CatchPrediction prediction);
void SetContextRegister(int handler_id, Register reg);
private:
@@ -46,7 +46,8 @@ class HandlerTableBuilder final BASE_EMBEDDED {
size_t offset_end; // Bytecode offset ending try-region.
size_t offset_target; // Bytecode offset of handler target.
Register context; // Register holding context for handler.
- bool will_catch; // Optimistic prediction for handler.
+ // Optimistic prediction for handler.
+ HandlerTable::CatchPrediction catch_prediction_;
};
Isolate* isolate_;

Powered by Google App Engine
This is Rietveld 408576698