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

Unified Diff: src/objects-inl.h

Issue 1690973002: [interpreter] Correctly thread through catch prediction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/compiler/debug-catch-prediction.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index f4c21acd8952197384422f7a64c657e94de86991..f41667a886d2518db991c13cfc59c6aeffc93b98 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3410,6 +3410,12 @@ int HandlerTable::GetRangeData(int index) const {
return Smi::cast(get(index * kRangeEntrySize + kRangeDataIndex))->value();
}
+HandlerTable::CatchPrediction HandlerTable::GetRangePrediction(
+ int index) const {
+ return HandlerPredictionField::decode(
+ Smi::cast(get(index * kRangeEntrySize + kRangeHandlerIndex))->value());
+}
+
void HandlerTable::SetRangeStart(int index, int value) {
set(index * kRangeEntrySize + kRangeStartIndex, Smi::FromInt(value));
}
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/compiler/debug-catch-prediction.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698