Index: src/interpreter/bytecode-array-iterator.cc |
diff --git a/src/interpreter/bytecode-array-iterator.cc b/src/interpreter/bytecode-array-iterator.cc |
index 542b505be7e70e25e4331d78c2bd9920761ff4c1..da19c855ee9d9991b15e0354f0b839d23560204a 100644 |
--- a/src/interpreter/bytecode-array-iterator.cc |
+++ b/src/interpreter/bytecode-array-iterator.cc |
@@ -20,6 +20,13 @@ void BytecodeArrayIterator::Advance() { |
} |
+void BytecodeArrayIterator::AdvanceToOffset(int offset) { |
+ DCHECK_GE(offset, 0); |
+ DCHECK_LE(offset, bytecode_array()->length()); |
+ bytecode_offset_ = offset; |
+} |
+ |
+ |
bool BytecodeArrayIterator::done() const { |
return bytecode_offset_ >= bytecode_array()->length(); |
} |