Home | History | Annotate | Download | only in compiler
      1 // Copyright 2016 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_MACHINE_GRAPH_VERIFIER_H_
      6 #define V8_COMPILER_MACHINE_GRAPH_VERIFIER_H_
      7 
      8 #include "src/base/macros.h"
      9 
     10 namespace v8 {
     11 namespace internal {
     12 class Zone;
     13 namespace compiler {
     14 
     15 class Graph;
     16 class Linkage;
     17 class Schedule;
     18 
     19 // Verifies properties of a scheduled graph, such as that the nodes' inputs are
     20 // of the correct type.
     21 class MachineGraphVerifier {
     22  public:
     23   static void Run(Graph* graph, Schedule const* const schedule,
     24                   Linkage* linkage, bool is_stub, const char* name,
     25                   Zone* temp_zone);
     26 };
     27 
     28 }  // namespace compiler
     29 }  // namespace internal
     30 }  // namespace v8
     31 
     32 #endif  // V8_COMPILER_MACHINE_GRAPH_VERIFIER_H_
     33