summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/turboshaft/recreate-schedule.h
blob: 8fb3108775ed3a3984a2c02e456ebec3650bf53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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_RECREATE_SCHEDULE_H_
#define V8_COMPILER_TURBOSHAFT_RECREATE_SCHEDULE_H_

#include "src/compiler/compiler-source-position-table.h"
#include "src/compiler/node-origin-table.h"

namespace v8::internal {
class Zone;
}
namespace v8::internal::compiler {
class Schedule;
class Graph;
class CallDescriptor;
}  // namespace v8::internal::compiler
namespace v8::internal::compiler::turboshaft {
class Graph;

struct RecreateScheduleResult {
  compiler::Graph* graph;
  Schedule* schedule;
};

RecreateScheduleResult RecreateSchedule(const Graph& graph,
                                        CallDescriptor* call_descriptor,
                                        Zone* graph_zone, Zone* phase_zone,
                                        SourcePositionTable* source_positions,
                                        NodeOriginTable* origins);

}  // namespace v8::internal::compiler::turboshaft

#endif  // V8_COMPILER_TURBOSHAFT_RECREATE_SCHEDULE_H_