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

Unified Diff: src/deoptimizer.cc

Issue 2530403002: [deoptimizer] Use the correct function for handler lookup for bytecode. (Closed)
Patch Set: 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 | test/mjsunit/compiler/regress-668760.js » ('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 dddf62e1ccbe2a6aeba73bf1d804e3c3309bde1e..77ac4d8fbda23f294c4802657a4df043398f72a9 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -646,9 +646,9 @@ int LookupCatchHandler(TranslatedFrame* translated_frame, int* data_out) {
JSFunction* function =
JSFunction::cast(translated_frame->begin()->GetRawValue());
BytecodeArray* bytecode = function->shared()->bytecode_array();
- HandlerTable* table = HandlerTable::cast(bytecode->handler_table());
HandlerTable::CatchPrediction prediction;
- return table->LookupRange(bytecode_offset, data_out, &prediction);
+ return bytecode->LookupRangeInHandlerTable(bytecode_offset, data_out,
+ &prediction);
}
default:
break;
« no previous file with comments | « no previous file | test/mjsunit/compiler/regress-668760.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698