Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index fbc43b1fc496286e4c4ce52c69e9dcb9f27683e1..2bf21a2c6d82a9b1191b83c1f16dc5b7401d81a5 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15179,8 +15179,7 @@ |
int BytecodeArray::SourcePosition(int offset) { |
int last_position = 0; |
- for (interpreter::SourcePositionTableIterator iterator( |
- source_position_table()); |
+ for (interpreter::SourcePositionTableIterator iterator(this); |
!iterator.done() && iterator.bytecode_offset() <= offset; |
iterator.Advance()) { |
last_position = iterator.source_position(); |
@@ -15194,7 +15193,7 @@ |
int position = SourcePosition(offset); |
// Now find the closest statement position before the position. |
int statement_position = 0; |
- interpreter::SourcePositionTableIterator iterator(source_position_table()); |
+ interpreter::SourcePositionTableIterator iterator(this); |
while (!iterator.done()) { |
if (iterator.is_statement()) { |
int p = iterator.source_position(); |
@@ -15215,8 +15214,7 @@ |
const uint8_t* first_bytecode_address = GetFirstBytecodeAddress(); |
int bytecode_size = 0; |
- interpreter::SourcePositionTableIterator source_positions( |
- source_position_table()); |
+ interpreter::SourcePositionTableIterator source_positions(this); |
for (int i = 0; i < this->length(); i += bytecode_size) { |
const uint8_t* bytecode_start = &first_bytecode_address[i]; |