bytecode-array-iterator.h 786 Bytes
Newer Older
1
// Copyright 2016 the V8 project authors. All rights reserved.
2 3 4 5 6 7
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_
#define V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_

8
#include "src/interpreter/bytecode-array-accessor.h"
9 10 11 12 13

namespace v8 {
namespace internal {
namespace interpreter {

14 15
class V8_EXPORT_PRIVATE BytecodeArrayIterator final
    : public BytecodeArrayAccessor {
16 17 18 19 20
 public:
  explicit BytecodeArrayIterator(Handle<BytecodeArray> bytecode_array);

  void Advance();
  bool done() const;
21

22
 private:
23 24 25 26 27 28 29
  DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator);
};

}  // namespace interpreter
}  // namespace internal
}  // namespace v8

30
#endif  // V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_