|
| GraphVisualizer (OStream &os, Zone *zone, const Graph *graph) |
|
void | Print () |
|
GenericGraphVisit::Control | Pre (Node *node) |
|
GenericGraphVisit::Control | PreEdge (Node *from, int index, Node *to) |
|
Control | Pre (GenericNode< B, S > *node) |
|
Control | Post (GenericNode< B, S > *node) |
|
void | PreEdge (GenericNode< B, S > *from, int index, GenericNode< B, S > *to) |
|
void | PostEdge (GenericNode< B, S > *from, int index, GenericNode< B, S > *to) |
|
Definition at line 160 of file graph-visualizer.cc.
◆ GraphVisualizer()
v8::internal::compiler::GraphVisualizer::GraphVisualizer |
( |
OStream & |
os, |
|
|
Zone * |
zone, |
|
|
const Graph * |
graph |
|
) |
| |
Definition at line 370 of file graph-visualizer.cc.
373 all_nodes_(NodeSet::key_compare(), NodeSet::allocator_type(zone)),
374 white_nodes_(NodeSet::key_compare(), NodeSet::allocator_type(zone)),
const Graph *const graph_
◆ AnnotateNode()
void v8::internal::compiler::GraphVisualizer::AnnotateNode |
( |
Node * |
node | ) |
|
|
private |
Definition at line 238 of file graph-visualizer.cc.
240 os_ <<
" style=\"filled\"\n"
244 os_ <<
" shape=\"record\"\n";
245 switch (node->opcode()) {
247 case IrOpcode::kDead:
248 case IrOpcode::kStart:
249 os_ <<
" style=\"diagonals\"\n";
251 case IrOpcode::kMerge:
252 case IrOpcode::kIfTrue:
253 case IrOpcode::kIfFalse:
254 case IrOpcode::kLoop:
255 os_ <<
" style=\"rounded\"\n";
262 label << *node->op();
263 os_ <<
" label=\"{{#" << node->id() <<
":" << Escaped(label);
268 os_ <<
"|<I" <<
i.index() <<
">#" << (*i)->id();
272 os_ <<
"|<I" <<
i.index() <<
">X #" << (*i)->id();
276 os_ <<
"|<I" <<
i.index() <<
">F #" << (*i)->id();
280 os_ <<
"|<I" <<
i.index() <<
">E #" << (*i)->id();
287 os_ <<
"|<I" <<
i.index() <<
">C #" << (*i)->id();
295 bounds.upper->PrintTo(upper);
297 bounds.lower->PrintTo(lower);
298 os_ <<
"|" << Escaped(upper) <<
"|" << Escaped(lower);
static Bounds GetBounds(Node *node)
static bool IsControl(Node *node)
static int GetEffectInputCount(const Operator *op)
static int GetFrameStateInputCount(const Operator *op)
static int GetContextInputCount(const Operator *op)
static bool IsBasicBlockBegin(const Operator *op)
static int GetValueInputCount(const Operator *op)
static int GetControlInputCount(const Operator *op)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
static Node * GetControlCluster(Node *node)
Node::Inputs::iterator InputIter
BoundsImpl< ZoneTypeConfig > Bounds
References DEAD_COLOR, v8::internal::compiler::NodeProperties::GetBounds(), v8::internal::compiler::OperatorProperties::GetContextInputCount(), v8::internal::compiler::GetControlCluster(), v8::internal::compiler::OperatorProperties::GetControlInputCount(), v8::internal::compiler::OperatorProperties::GetEffectInputCount(), v8::internal::compiler::OperatorProperties::GetFrameStateInputCount(), v8::internal::compiler::OperatorProperties::GetValueInputCount(), v8::internal::compiler::OperatorProperties::IsBasicBlockBegin(), v8::internal::compiler::NodeProperties::IsControl(), v8::internal::BoundsImpl< Config >::lower, NULL, os_, v8::internal::BoundsImpl< Config >::upper, and use_to_def_.
Referenced by Pre().
◆ DISALLOW_COPY_AND_ASSIGN()
v8::internal::compiler::GraphVisualizer::DISALLOW_COPY_AND_ASSIGN |
( |
GraphVisualizer |
| ) |
|
|
private |
◆ Pre()
◆ PreEdge()
◆ Print()
void v8::internal::compiler::GraphVisualizer::Print |
( |
| ) |
|
Definition at line 330 of file graph-visualizer.cc.
331 os_ <<
"digraph D {\n"
332 <<
" node [fontsize=8,height=0.25]\n"
333 <<
" rankdir=\"BT\"\n"
334 <<
" ranksep=\"1.2 equally\"\n"
335 <<
" overlap=\"false\"\n"
336 <<
" splines=\"true\"\n"
337 <<
" concentrate=\"true\"\n"
343 const_cast<Graph*
>(
graph_)->VisitNodeInputsFromEnd(
this);
348 GenericGraphVisit::Visit<GraphVisualizer, NodeUseIterationTraits<Node> >(
352 os_ <<
" DEAD_INPUT [\n"
353 <<
" style=\"filled\" \n"
360 Node::Inputs inputs = (*i)->inputs();
361 for (Node::Inputs::iterator iter(inputs.begin()); iter != inputs.end();
void PrintEdge(Node::Edge edge)
NodeSet::iterator NodeSetIter
References all_nodes_, DEAD_COLOR, graph_, os_, PrintEdge(), v8::internal::compiler::GenericGraph< V >::start(), use_to_def_, white_nodes_, and zone_.
Referenced by v8::internal::compiler::operator<<().
◆ PrintEdge()
void v8::internal::compiler::GraphVisualizer::PrintEdge |
( |
Node::Edge |
edge | ) |
|
|
private |
Definition at line 304 of file graph-visualizer.cc.
305 Node* from = edge.from();
306 int index = edge.index();
307 Node*
to = edge.to();
309 os_ <<
" ID" << from->id();
311 os_ <<
":I" << index <<
":n -> DEAD_INPUT";
316 os_ <<
":I" << index <<
":n -> ID" <<
to->id() <<
":s"
317 <<
"[" << (unconstrained ?
"constraint=false, " :
"")
322 os_ <<
" -> ID" <<
to->id() <<
":s [color=transparent, "
323 << (unconstrained ?
"constraint=false, " :
"")
static bool IsContextEdge(Node::Edge edge)
static bool IsControlEdge(Node::Edge edge)
static bool IsEffectEdge(Node::Edge edge)
static Node * GetControlInput(Node *node, int index=0)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes to(mksnapshot only)") DEFINE_STRING(raw_context_file
static bool IsLikelyBackEdge(Node *from, int index, Node *to)
References all_nodes_, v8::internal::compiler::GetControlCluster(), v8::internal::compiler::NodeProperties::GetControlInput(), v8::internal::compiler::OperatorProperties::GetControlInputCount(), v8::internal::compiler::OperatorProperties::IsBasicBlockBegin(), v8::internal::compiler::NodeProperties::IsContextEdge(), v8::internal::compiler::NodeProperties::IsControlEdge(), v8::internal::compiler::NodeProperties::IsEffectEdge(), v8::internal::compiler::IsLikelyBackEdge(), NULL, os_, and to().
Referenced by Print().
◆ all_nodes_
NodeSet v8::internal::compiler::GraphVisualizer::all_nodes_ |
|
private |
◆ graph_
const Graph* const v8::internal::compiler::GraphVisualizer::graph_ |
|
private |
◆ os_
OStream& v8::internal::compiler::GraphVisualizer::os_ |
|
private |
◆ use_to_def_
bool v8::internal::compiler::GraphVisualizer::use_to_def_ |
|
private |
◆ white_nodes_
NodeSet v8::internal::compiler::GraphVisualizer::white_nodes_ |
|
private |
◆ zone_
Zone* v8::internal::compiler::GraphVisualizer::zone_ |
|
private |
The documentation for this class was generated from the following file: