LCOV - code coverage report
Current view: top level - src/interpreter - bytecode-array-iterator.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 7 7 100.0 %
Date: 2017-04-26 Functions: 3 3 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             : 
       8             : namespace v8 {
       9             : namespace internal {
      10             : namespace interpreter {
      11             : 
      12      542594 : BytecodeArrayIterator::BytecodeArrayIterator(
      13             :     Handle<BytecodeArray> bytecode_array)
      14      542594 :     : BytecodeArrayAccessor(bytecode_array, 0) {}
      15             : 
      16    15753877 : void BytecodeArrayIterator::Advance() {
      17    15753877 :   SetOffset(current_offset() + current_bytecode_size());
      18    15753877 : }
      19             : 
      20    15010823 : bool BytecodeArrayIterator::done() const {
      21    30021646 :   return current_offset() >= bytecode_array()->length();
      22             : }
      23             : 
      24             : }  // namespace interpreter
      25             : }  // namespace internal
      26             : }  // namespace v8

Generated by: LCOV version 1.10