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; |