#include "src/compiler/graph-visualizer.h"
#include "src/base/small-vector.h"
#include "src/compiler/node-origin-table.h"
#include "src/compiler/turboshaft/graph-visualizer.h"
namespace v8::internal::compiler::turboshaft {
JSONTurboshaftGraphWriter::JSONTurboshaftGraphWriter(
std::ostream& os, const Graph& turboshaft_graph, NodeOriginTable* origins,
Zone* zone)
: … { … }
void JSONTurboshaftGraphWriter::Print() { … }
void JSONTurboshaftGraphWriter::PrintNodes() { … }
void JSONTurboshaftGraphWriter::PrintEdges() { … }
void JSONTurboshaftGraphWriter::PrintBlocks() { … }
std::ostream& operator<<(std::ostream& os, const TurboshaftGraphAsJSON& ad) { … }
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) { … }
}