LCOV - code coverage report
Current view: top level - src/compiler - node-marker.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 4 4 100.0 %
Date: 2019-04-17 Functions: 2 2 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/compiler/node-marker.h"
       6             : 
       7             : #include "src/compiler/graph.h"
       8             : 
       9             : namespace v8 {
      10             : namespace internal {
      11             : namespace compiler {
      12             : 
      13    15508254 : NodeMarkerBase::NodeMarkerBase(Graph* graph, uint32_t num_states)
      14    15508254 :     : mark_min_(graph->mark_max_), mark_max_(graph->mark_max_ += num_states) {
      15             :   DCHECK_NE(0u, num_states);        // user error!
      16             :   DCHECK_LT(mark_min_, mark_max_);  // check for wraparound.
      17    15508254 : }
      18             : 
      19             : }  // namespace compiler
      20             : }  // namespace internal
      21      122004 : }  // namespace v8

Generated by: LCOV version 1.10