Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 6d8a1be02a83e228eca6134f24d41a99e25ab54d..bc57121ea68e14c05738de2ac533e735a7677fa4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10644,7 +10644,7 @@ int HandlerTable::LookupRange(int pc_offset, int* data_out, |
int handler_offset = HandlerOffsetField::decode(handler_field); |
CatchPrediction prediction = HandlerPredictionField::decode(handler_field); |
int handler_data = Smi::cast(get(i + kRangeDataIndex))->value(); |
- if (pc_offset > start_offset && pc_offset <= end_offset) { |
+ if (pc_offset >= start_offset && pc_offset < end_offset) { |
DCHECK_GE(start_offset, innermost_start); |
DCHECK_LT(end_offset, innermost_end); |
innermost_handler = handler_offset; |
@@ -15164,13 +15164,6 @@ void BytecodeArray::CopyBytecodesTo(BytecodeArray* to) { |
from->length()); |
} |
-int BytecodeArray::LookupRangeInHandlerTable( |
- int code_offset, int* data, HandlerTable::CatchPrediction* prediction) { |
- HandlerTable* table = HandlerTable::cast(handler_table()); |
- code_offset++; // Point after current bytecode. |
- return table->LookupRange(code_offset, data, prediction); |
-} |
- |
// static |
void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { |
DCHECK(capacity >= 0); |