5#ifndef V8_MAGLEV_MAGLEV_GRAPH_LABELLER_H_
6#define V8_MAGLEV_MAGLEV_GRAPH_LABELLER_H_
56 os <<
"VO{" << vo->
id() <<
"}:";
59 auto node_id_it =
nodes_.find(node);
61 if (node_id_it ==
nodes_.end()) {
62 os <<
"<unregistered node " << node <<
">";
67 os <<
"v" << node->id() <<
"/";
69 os <<
"n" << node_id_it->second.label;
74 os <<
":" << input.operand();
78 std::map<const NodeBase*, NodeInfo>
nodes_;
static constexpr BytecodeOffset None()
static SourcePosition Unknown()
std::map< const NodeBase *, NodeInfo > nodes_
void RegisterNode(const NodeBase *node, const MaglevCompilationUnit *unit, BytecodeOffset bytecode_offset, SourcePosition position)
int NodeId(const NodeBase *node)
const Provenance & GetNodeProvenance(const NodeBase *node)
void PrintInput(std::ostream &os, const Input &input)
void RegisterNode(const NodeBase *node)
void PrintNodeLabel(std::ostream &os, const NodeBase *node)
InlinedAllocation * allocation() const
const MaglevCompilationUnit * unit
BytecodeOffset bytecode_offset