V8 Project
v8::internal::compiler::GraphBuilder Class Referenceabstract

#include <graph-builder.h>

+ Inheritance diagram for v8::internal::compiler::GraphBuilder:
+ Collaboration diagram for v8::internal::compiler::GraphBuilder:

Public Member Functions

 GraphBuilder (Graph *graph)
 
virtual ~GraphBuilder ()
 
Node * NewNode (const Operator *op)
 
Node * NewNode (const Operator *op, Node *n1)
 
Node * NewNode (const Operator *op, Node *n1, Node *n2)
 
Node * NewNode (const Operator *op, Node *n1, Node *n2, Node *n3)
 
Node * NewNode (const Operator *op, Node *n1, Node *n2, Node *n3, Node *n4)
 
Node * NewNode (const Operator *op, Node *n1, Node *n2, Node *n3, Node *n4, Node *n5)
 
Node * NewNode (const Operator *op, Node *n1, Node *n2, Node *n3, Node *n4, Node *n5, Node *n6)
 
Node * NewNode (const Operator *op, int value_input_count, Node **value_inputs)
 
Graphgraph () const
 

Protected Member Functions

virtual Node * MakeNode (const Operator *op, int value_input_count, Node **value_inputs)=0
 

Private Attributes

Graphgraph_
 

Detailed Description

Definition at line 22 of file graph-builder.h.

Constructor & Destructor Documentation

◆ GraphBuilder()

v8::internal::compiler::GraphBuilder::GraphBuilder ( Graph graph)
inlineexplicit

Definition at line 24 of file graph-builder.h.

◆ ~GraphBuilder()

virtual v8::internal::compiler::GraphBuilder::~GraphBuilder ( )
inlinevirtual

Definition at line 25 of file graph-builder.h.

25 {}

Member Function Documentation

◆ graph()

Graph* v8::internal::compiler::GraphBuilder::graph ( ) const
inline

Definition at line 65 of file graph-builder.h.

65 { return graph_; }

References graph_.

Referenced by v8::internal::compiler::AstGraphBuilder::BuildLocalFunctionContext(), v8::internal::compiler::RawMachineAssembler::CallFunctionStub0(), v8::internal::compiler::RawMachineAssembler::CallJS0(), v8::internal::compiler::RawMachineAssembler::CallRuntime1(), v8::internal::compiler::AstGraphBuilder::Environment::Checkpoint(), v8::internal::compiler::AstGraphBuilder::CreateGraph(), v8::internal::compiler::StructuredGraphBuilder::dead_control(), v8::internal::compiler::AstGraphBuilder::Environment::Environment(), v8::internal::compiler::AstGraphBuilder::GetFunctionClosure(), v8::internal::compiler::AstGraphBuilder::GetFunctionContext(), v8::internal::compiler::StructuredGraphBuilder::Environment::graph(), v8::internal::compiler::RawMachineAssembler::MakeNode(), v8::internal::compiler::StructuredGraphBuilder::MakeNode(), v8::internal::compiler::StructuredGraphBuilder::Environment::Merge(), v8::internal::compiler::StructuredGraphBuilder::MergeControl(), v8::internal::compiler::StructuredGraphBuilder::NewEffectPhi(), v8::internal::compiler::StructuredGraphBuilder::NewPhi(), v8::internal::compiler::RawMachineAssembler::RawMachineAssembler(), v8::internal::compiler::AstGraphBuilder::Environment::UpdateStateValues(), v8::internal::compiler::StructuredGraphBuilder::zone(), and v8::internal::compiler::RawMachineAssembler::zone().

+ Here is the caller graph for this function:

◆ MakeNode()

virtual Node* v8::internal::compiler::GraphBuilder::MakeNode ( const Operator op,
int  value_input_count,
Node **  value_inputs 
)
protectedpure virtual

Implemented in v8::internal::compiler::StructuredGraphBuilder, and v8::internal::compiler::RawMachineAssembler.

Referenced by NewNode().

+ Here is the caller graph for this function:

◆ NewNode() [1/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op)
inline

Definition at line 27 of file graph-builder.h.

27  {
28  return MakeNode(op, 0, static_cast<Node**>(NULL));
29  }
virtual Node * MakeNode(const Operator *op, int value_input_count, Node **value_inputs)=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 NULL

References MakeNode(), and NULL.

Referenced by v8::internal::compiler::RawMachineAssembler::Branch(), v8::internal::compiler::AstGraphBuilder::BuildArgumentsObject(), v8::internal::compiler::AstGraphBuilder::BuildBinaryOp(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckSilent(), v8::internal::compiler::AstGraphBuilder::BuildHoleCheckThrow(), v8::internal::compiler::AstGraphBuilder::BuildLoadGlobalObject(), v8::internal::compiler::AstGraphBuilder::BuildLoadObjectField(), v8::internal::compiler::AstGraphBuilder::BuildLocalFunctionContext(), v8::internal::compiler::AstGraphBuilder::BuildThrowReferenceError(), v8::internal::compiler::AstGraphBuilder::BuildToBoolean(), v8::internal::compiler::AstGraphBuilder::BuildVariableAssignment(), v8::internal::compiler::AstGraphBuilder::BuildVariableDelete(), v8::internal::compiler::AstGraphBuilder::BuildVariableLoad(), v8::internal::compiler::RawMachineAssembler::CallRuntime1(), v8::internal::compiler::RawMachineAssembler::ChangeFloat32ToFloat64(), v8::internal::compiler::RawMachineAssembler::ChangeFloat64ToInt32(), v8::internal::compiler::RawMachineAssembler::ChangeFloat64ToUint32(), v8::internal::compiler::RawMachineAssembler::ChangeInt32ToFloat64(), v8::internal::compiler::RawMachineAssembler::ChangeInt32ToInt64(), v8::internal::compiler::RawMachineAssembler::ChangeUint32ToFloat64(), v8::internal::compiler::RawMachineAssembler::ChangeUint32ToUint64(), v8::internal::compiler::RawMachineAssembler::ConvertInt32ToIntPtr(), v8::internal::compiler::RawMachineAssembler::ConvertIntPtrToInt32(), v8::internal::compiler::AstGraphBuilder::CreateGraph(), v8::internal::compiler::RawMachineAssembler::Float32Constant(), v8::internal::compiler::RawMachineAssembler::Float64Add(), v8::internal::compiler::RawMachineAssembler::Float64Constant(), v8::internal::compiler::RawMachineAssembler::Float64Div(), v8::internal::compiler::RawMachineAssembler::Float64Equal(), v8::internal::compiler::RawMachineAssembler::Float64LessThan(), v8::internal::compiler::RawMachineAssembler::Float64LessThanOrEqual(), v8::internal::compiler::RawMachineAssembler::Float64Mod(), v8::internal::compiler::RawMachineAssembler::Float64Mul(), v8::internal::compiler::RawMachineAssembler::Float64Sub(), v8::internal::compiler::AstGraphBuilder::GetFunctionClosure(), v8::internal::compiler::AstGraphBuilder::GetFunctionContext(), v8::internal::compiler::RawMachineAssembler::HeapConstant(), v8::internal::compiler::RawMachineAssembler::Int32Add(), v8::internal::compiler::RawMachineAssembler::Int32AddWithOverflow(), v8::internal::compiler::RawMachineAssembler::Int32Constant(), v8::internal::compiler::RawMachineAssembler::Int32Div(), v8::internal::compiler::RawMachineAssembler::Int32LessThan(), v8::internal::compiler::RawMachineAssembler::Int32LessThanOrEqual(), v8::internal::compiler::RawMachineAssembler::Int32Mod(), v8::internal::compiler::RawMachineAssembler::Int32Mul(), v8::internal::compiler::RawMachineAssembler::Int32Sub(), v8::internal::compiler::RawMachineAssembler::Int32SubWithOverflow(), v8::internal::compiler::RawMachineAssembler::Int32UDiv(), v8::internal::compiler::RawMachineAssembler::Int32UMod(), v8::internal::compiler::RawMachineAssembler::Int64Add(), v8::internal::compiler::RawMachineAssembler::Int64Constant(), v8::internal::compiler::RawMachineAssembler::Int64Div(), v8::internal::compiler::RawMachineAssembler::Int64LessThan(), v8::internal::compiler::RawMachineAssembler::Int64LessThanOrEqual(), v8::internal::compiler::RawMachineAssembler::Int64Mod(), v8::internal::compiler::RawMachineAssembler::Int64Mul(), v8::internal::compiler::RawMachineAssembler::Int64Sub(), v8::internal::compiler::RawMachineAssembler::Int64UDiv(), v8::internal::compiler::RawMachineAssembler::Int64UMod(), v8::internal::compiler::RawMachineAssembler::Load(), v8::internal::compiler::StructuredGraphBuilder::NewBranch(), v8::internal::compiler::StructuredGraphBuilder::NewIfFalse(), v8::internal::compiler::StructuredGraphBuilder::NewIfTrue(), v8::internal::compiler::StructuredGraphBuilder::NewLoop(), v8::internal::compiler::StructuredGraphBuilder::NewMerge(), v8::internal::compiler::RawMachineAssembler::NumberConstant(), v8::internal::compiler::RawMachineAssembler::Phi(), v8::internal::compiler::AstGraphBuilder::ProcessArguments(), v8::internal::compiler::RawMachineAssembler::Projection(), v8::internal::compiler::RawMachineAssembler::RawMachineAssembler(), v8::internal::compiler::RawMachineAssembler::Store(), v8::internal::compiler::RawMachineAssembler::TruncateFloat64ToFloat32(), v8::internal::compiler::RawMachineAssembler::TruncateFloat64ToInt32(), v8::internal::compiler::RawMachineAssembler::TruncateInt64ToInt32(), v8::internal::compiler::RawMachineAssembler::Uint32LessThan(), v8::internal::compiler::RawMachineAssembler::Uint32LessThanOrEqual(), v8::internal::compiler::RawMachineAssembler::UndefinedConstant(), v8::internal::compiler::AstGraphBuilder::VisitCallJSRuntime(), v8::internal::compiler::AstGraphBuilder::VisitDeclarations(), v8::internal::compiler::AstGraphBuilder::VisitDelete(), v8::internal::compiler::AstGraphBuilder::VisitForInAssignment(), v8::internal::compiler::AstGraphBuilder::VisitNot(), v8::internal::compiler::AstGraphBuilder::VisitTypeof(), v8::internal::compiler::RawMachineAssembler::Word32And(), v8::internal::compiler::RawMachineAssembler::Word32Equal(), v8::internal::compiler::RawMachineAssembler::Word32Or(), v8::internal::compiler::RawMachineAssembler::Word32Ror(), v8::internal::compiler::RawMachineAssembler::Word32Sar(), v8::internal::compiler::RawMachineAssembler::Word32Shl(), v8::internal::compiler::RawMachineAssembler::Word32Shr(), v8::internal::compiler::RawMachineAssembler::Word32Xor(), v8::internal::compiler::RawMachineAssembler::Word64And(), v8::internal::compiler::RawMachineAssembler::Word64Equal(), v8::internal::compiler::RawMachineAssembler::Word64Or(), v8::internal::compiler::RawMachineAssembler::Word64Ror(), v8::internal::compiler::RawMachineAssembler::Word64Sar(), v8::internal::compiler::RawMachineAssembler::Word64Shl(), v8::internal::compiler::RawMachineAssembler::Word64Shr(), v8::internal::compiler::RawMachineAssembler::Word64Xor(), v8::internal::compiler::RawMachineAssembler::WordAnd(), v8::internal::compiler::RawMachineAssembler::WordEqual(), v8::internal::compiler::RawMachineAssembler::WordOr(), v8::internal::compiler::RawMachineAssembler::WordRor(), v8::internal::compiler::RawMachineAssembler::WordSar(), v8::internal::compiler::RawMachineAssembler::WordShl(), v8::internal::compiler::RawMachineAssembler::WordShr(), and v8::internal::compiler::RawMachineAssembler::WordXor().

+ Here is the call graph for this function:

◆ NewNode() [2/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
int  value_input_count,
Node **  value_inputs 
)
inline

Definition at line 60 of file graph-builder.h.

61  {
62  return MakeNode(op, value_input_count, value_inputs);
63  }

References MakeNode().

+ Here is the call graph for this function:

◆ NewNode() [3/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
Node *  n1 
)
inline

Definition at line 31 of file graph-builder.h.

31 { return MakeNode(op, 1, &n1); }

References MakeNode().

+ Here is the call graph for this function:

◆ NewNode() [4/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
Node *  n1,
Node *  n2 
)
inline

Definition at line 33 of file graph-builder.h.

33  {
34  Node* buffer[] = {n1, n2};
35  return MakeNode(op, arraysize(buffer), buffer);
36  }
#define arraysize(array)
Definition: macros.h:86

References arraysize, and MakeNode().

+ Here is the call graph for this function:

◆ NewNode() [5/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
Node *  n1,
Node *  n2,
Node *  n3 
)
inline

Definition at line 38 of file graph-builder.h.

38  {
39  Node* buffer[] = {n1, n2, n3};
40  return MakeNode(op, arraysize(buffer), buffer);
41  }

References arraysize, and MakeNode().

+ Here is the call graph for this function:

◆ NewNode() [6/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
Node *  n1,
Node *  n2,
Node *  n3,
Node *  n4 
)
inline

Definition at line 43 of file graph-builder.h.

43  {
44  Node* buffer[] = {n1, n2, n3, n4};
45  return MakeNode(op, arraysize(buffer), buffer);
46  }

References arraysize, and MakeNode().

+ Here is the call graph for this function:

◆ NewNode() [7/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
Node *  n1,
Node *  n2,
Node *  n3,
Node *  n4,
Node *  n5 
)
inline

Definition at line 48 of file graph-builder.h.

49  {
50  Node* buffer[] = {n1, n2, n3, n4, n5};
51  return MakeNode(op, arraysize(buffer), buffer);
52  }

References arraysize, and MakeNode().

+ Here is the call graph for this function:

◆ NewNode() [8/8]

Node* v8::internal::compiler::GraphBuilder::NewNode ( const Operator op,
Node *  n1,
Node *  n2,
Node *  n3,
Node *  n4,
Node *  n5,
Node *  n6 
)
inline

Definition at line 54 of file graph-builder.h.

55  {
56  Node* nodes[] = {n1, n2, n3, n4, n5, n6};
57  return MakeNode(op, arraysize(nodes), nodes);
58  }

References arraysize, and MakeNode().

+ Here is the call graph for this function:

Member Data Documentation

◆ graph_

Graph* v8::internal::compiler::GraphBuilder::graph_
private

Definition at line 73 of file graph-builder.h.

Referenced by graph().


The documentation for this class was generated from the following file: