summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/turboshaft/graph-builder.h
blob: 520aaf168bd13e0fdb385856eb665f46c2a28fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_COMPILER_TURBOSHAFT_GRAPH_BUILDER_H_
#define V8_COMPILER_TURBOSHAFT_GRAPH_BUILDER_H_

#include "src/codegen/bailout-reason.h"
#include "src/compiler/node-origin-table.h"
#include "src/compiler/turboshaft/graph.h"

namespace v8::internal::compiler {
class Schedule;
class SourcePositionTable;
}
namespace v8::internal::compiler::turboshaft {
base::Optional<BailoutReason> BuildGraph(Schedule* schedule, Zone* graph_zone,
                                         Zone* phase_zone, Graph* graph,
                                         SourcePositionTable* source_positions,
                                         NodeOriginTable* origins);
}

#endif  // V8_COMPILER_TURBOSHAFT_GRAPH_BUILDER_H_