LCOV - code coverage report
Current view: top level - src/interpreter - bytecode-array-iterator.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 8 8 100.0 %
Date: 2019-04-17 Functions: 4 4 100.0 %

          Line data    Source code
       1             : // Copyright 2015 the V8 project authors. All rights reserved.
       2             : // Use of this source code is governed by a BSD-style license that can be
       3             : // found in the LICENSE file.
       4             : 
       5             : #include "src/interpreter/bytecode-array-iterator.h"
       6             : #include "src/objects-inl.h"
       7             : #include "src/objects/code-inl.h"
       8             : 
       9             : namespace v8 {
      10             : namespace internal {
      11             : namespace interpreter {
      12             : 
      13      554415 : BytecodeArrayIterator::BytecodeArrayIterator(
      14             :     Handle<BytecodeArray> bytecode_array)
      15      554415 :     : BytecodeArrayAccessor(bytecode_array, 0) {}
      16             : 
      17    15729805 : void BytecodeArrayIterator::Advance() {
      18    15729805 :   SetOffset(current_offset() + current_bytecode_size());
      19    15729802 : }
      20             : 
      21    16137454 : bool BytecodeArrayIterator::done() const {
      22    16137454 :   return current_offset() >= bytecode_array()->length();
      23             : }
      24             : 
      25             : }  // namespace interpreter
      26             : }  // namespace internal
      27      121996 : }  // namespace v8

Generated by: LCOV version 1.10