LCOV - code coverage report
Current view: top level - src/compiler - select-lowering.h (source / functions) Hit Total Coverage
Test: app.info Lines: 2 2 100.0 %
Date: 2019-04-17 Functions: 2 3 66.7 %

          Line data    Source code
       1             : // Copyright 2014 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_SELECT_LOWERING_H_
       6             : #define V8_COMPILER_SELECT_LOWERING_H_
       7             : 
       8             : #include "src/compiler/graph-reducer.h"
       9             : 
      10             : namespace v8 {
      11             : namespace internal {
      12             : namespace compiler {
      13             : 
      14             : // Forward declarations.
      15             : class CommonOperatorBuilder;
      16             : class Graph;
      17             : 
      18             : 
      19             : // Lowers Select nodes to diamonds.
      20      928334 : class SelectLowering final : public Reducer {
      21             :  public:
      22             :   SelectLowering(Graph* graph, CommonOperatorBuilder* common);
      23             :   ~SelectLowering() override;
      24             : 
      25          45 :   const char* reducer_name() const override { return "SelectLowering"; }
      26             : 
      27             :   Reduction Reduce(Node* node) override;
      28             : 
      29             :  private:
      30             :   CommonOperatorBuilder* common() const { return common_; }
      31             :   Graph* graph() const { return graph_; }
      32             : 
      33             :   CommonOperatorBuilder* common_;
      34             :   Graph* graph_;
      35             : };
      36             : 
      37             : }  // namespace compiler
      38             : }  // namespace internal
      39             : }  // namespace v8
      40             : 
      41             : #endif  // V8_COMPILER_SELECT_LOWERING_H_

Generated by: LCOV version 1.10