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

Unified Diff: src/deoptimizer.cc

Issue 2534893002: [runtime] Simplify handler table lookup semantics. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 | « no previous file | src/frames.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 31147dd2002af2b97db93d82d4eaedc5634f58a8..b7446fd7422f2e24182209e8f06351fb6db42800 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -642,8 +642,8 @@ int LookupCatchHandler(TranslatedFrame* translated_frame, int* data_out) {
JSFunction* function =
JSFunction::cast(translated_frame->begin()->GetRawValue());
BytecodeArray* bytecode = function->shared()->bytecode_array();
- return bytecode->LookupRangeInHandlerTable(bytecode_offset, data_out,
- nullptr);
+ HandlerTable* table = HandlerTable::cast(bytecode->handler_table());
+ return table->LookupRange(bytecode_offset, data_out, nullptr);
}
default:
break;
« no previous file with comments | « no previous file | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698