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
10namespace v8 {
11namespace internal {
12class Zone;
13namespace compiler {
14
15class Graph;
16class Linkage;
17class Schedule;
18
19// Verifies properties of a scheduled graph, such as that the nodes' inputs are
20// of the correct type.
21class 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