LCOV - code coverage report
Current view: top level - src/compiler - operator-properties.h (source / functions) Hit Total Coverage
Test: app.info Lines: 2 2 100.0 %
Date: 2019-04-18 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright 2013 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             : #ifndef V8_COMPILER_OPERATOR_PROPERTIES_H_
       6             : #define V8_COMPILER_OPERATOR_PROPERTIES_H_
       7             : 
       8             : #include "src/base/macros.h"
       9             : #include "src/globals.h"
      10             : 
      11             : namespace v8 {
      12             : namespace internal {
      13             : namespace compiler {
      14             : 
      15             : // Forward declarations.
      16             : class Operator;
      17             : 
      18             : class V8_EXPORT_PRIVATE OperatorProperties final {
      19             :  public:
      20             :   static bool HasContextInput(const Operator* op);
      21             :   static int GetContextInputCount(const Operator* op) {
      22  1249814951 :     return HasContextInput(op) ? 1 : 0;
      23             :   }
      24             : 
      25             :   static bool NeedsExactContext(const Operator* op);
      26             : 
      27             :   static bool HasFrameStateInput(const Operator* op);
      28             :   static int GetFrameStateInputCount(const Operator* op) {
      29  1238398948 :     return HasFrameStateInput(op) ? 1 : 0;
      30             :   }
      31             : 
      32             :   static int GetTotalInputCount(const Operator* op);
      33             : 
      34             :   static bool IsBasicBlockBegin(const Operator* op);
      35             : 
      36             :  private:
      37             :   DISALLOW_COPY_AND_ASSIGN(OperatorProperties);
      38             : };
      39             : 
      40             : }  // namespace compiler
      41             : }  // namespace internal
      42             : }  // namespace v8
      43             : 
      44             : #endif  // V8_COMPILER_OPERATOR_PROPERTIES_H_

Generated by: LCOV version 1.10