5 #include "src/interpreter/bytecode-array-iterator.h" 6 #include "src/objects-inl.h" 7 #include "src/objects/code-inl.h" 11 namespace interpreter {
13 BytecodeArrayIterator::BytecodeArrayIterator(
14 Handle<BytecodeArray> bytecode_array)
15 : BytecodeArrayAccessor(bytecode_array, 0) {}
17 void BytecodeArrayIterator::Advance() {
18 SetOffset(current_offset() + current_bytecode_size());
21 bool BytecodeArrayIterator::done()
const {
22 return current_offset() >= bytecode_array()->length();