#ifndef V8_COMPILER_TURBOSHAFT_GRAPH_VISUALIZER_H_
#define V8_COMPILER_TURBOSHAFT_GRAPH_VISUALIZER_H_
#include "src/common/globals.h"
#include "src/compiler/node-origin-table.h"
#include "src/compiler/turboshaft/graph.h"
#include "src/handles/handles.h"
namespace v8::internal::compiler::turboshaft {
struct TurboshaftGraphAsJSON { … };
V8_INLINE V8_EXPORT_PRIVATE TurboshaftGraphAsJSON
AsJSON(const Graph& graph, NodeOriginTable* origins, Zone* temp_zone) { … }
V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
const TurboshaftGraphAsJSON& ad);
class JSONTurboshaftGraphWriter { … };
void PrintTurboshaftCustomDataPerOperation(
std::ofstream& stream, const char* data_name, const Graph& graph,
std::function<bool(std::ostream&, const Graph&, OpIndex)> printer);
void PrintTurboshaftCustomDataPerBlock(
std::ofstream& stream, const char* data_name, const Graph& graph,
std::function<bool(std::ostream&, const Graph&, BlockIndex)> printer);
}
#endif