Home
last modified time | relevance | path

Searched refs:jsgraph (Results 1 – 25 of 31) sorted by relevance

12

/external/v8/src/compiler/
Drepresentation-change.h23 RepresentationChanger(JSGraph* jsgraph, SimplifiedOperatorBuilder* simplified, in RepresentationChanger() argument
25 : jsgraph_(jsgraph), in RepresentationChanger()
79 return jsgraph()->Constant(static_cast<double>(value)); in GetTaggedRepresentationFor()
82 return jsgraph()->Constant(value); in GetTaggedRepresentationFor()
84 return OpParameter<int32_t>(node) == 0 ? jsgraph()->FalseConstant() in GetTaggedRepresentationFor()
85 : jsgraph()->TrueConstant(); in GetTaggedRepresentationFor()
90 return jsgraph()->Constant(OpParameter<double>(node)); in GetTaggedRepresentationFor()
111 return jsgraph()->graph()->NewNode(op, node); in GetTaggedRepresentationFor()
118 return jsgraph()->Float64Constant(OpParameter<double>(node)); in GetFloat64RepresentationFor()
122 return jsgraph()->Float64Constant(static_cast<double>(value)); in GetFloat64RepresentationFor()
[all …]
Dsimplified-operator-reducer.cc23 return Replace(jsgraph()->TrueConstant()); in Reduce()
26 return Replace(jsgraph()->FalseConstant()); in Reduce()
33 if (m.Is(0)) return Replace(jsgraph()->FalseConstant()); in Reduce()
34 if (m.Is(1)) return Replace(jsgraph()->TrueConstant()); in Reduce()
114 return Replace(jsgraph()->Float64Constant(value)); in ReplaceFloat64()
119 return Replace(jsgraph()->Int32Constant(value)); in ReplaceInt32()
124 return Replace(jsgraph()->Constant(value)); in ReplaceNumber()
129 return Replace(jsgraph()->Constant(value)); in ReplaceNumber()
133 Graph* SimplifiedOperatorReducer::graph() const { return jsgraph()->graph(); } in graph()
137 return jsgraph()->isolate()->factory(); in factory()
[all …]
Dsimplified-lowering.h19 explicit SimplifiedLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} in SimplifiedLowering() argument
47 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function
48 Graph* graph() { return jsgraph()->graph(); } in graph()
49 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common()
50 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } in machine()
Dchange-lowering.cc48 return jsgraph()->Int32Constant(heap_number_value_offset - kHeapObjectTag); in HeapNumberValueIndexConstant()
55 return jsgraph()->Int32Constant( in SmiMaxValueConstant()
63 return jsgraph()->Int32Constant(smi_shift_size + kSmiTagSize); in SmiShiftBitsConstant()
70 Node* context = jsgraph()->ZeroConstant(); in AllocateHeapNumberWithValue()
78 common()->Call(desc), jsgraph()->CEntryStubConstant(), in AllocateHeapNumberWithValue()
79 jsgraph()->ExternalConstant(ExternalReference(function, isolate())), in AllocateHeapNumberWithValue()
80 jsgraph()->Int32Constant(function->nargs), context, effect, control); in AllocateHeapNumberWithValue()
108 Node* true_value = jsgraph()->TrueConstant(); in ChangeBitToBool()
111 Node* false_value = jsgraph()->FalseConstant(); in ChangeBitToBool()
124 graph()->NewNode(machine()->WordEqual(), val, jsgraph()->TrueConstant())); in ChangeBoolToBit()
[all …]
Djs-inlining.cc103 void InlineAtCall(JSGraph* jsgraph, Node* call);
106 static void UnifyReturn(JSGraph* jsgraph);
114 void Inlinee::UnifyReturn(JSGraph* jsgraph) { in UnifyReturn() argument
115 Graph* graph = jsgraph->graph(); in UnifyReturn()
127 const Operator* op_phi = jsgraph->common()->Phi(kMachAnyTagged, predecessors); in UnifyReturn()
128 const Operator* op_ephi = jsgraph->common()->EffectPhi(predecessors); in UnifyReturn()
130 NodeVector values(jsgraph->zone()); in UnifyReturn()
131 NodeVector effects(jsgraph->zone()); in UnifyReturn()
157 graph->NewNode(jsgraph->common()->Return(), phi, ephi, final_merge); in UnifyReturn()
233 void Inlinee::InlineAtCall(JSGraph* jsgraph, Node* call) { in InlineAtCall() argument
[all …]
Dast-graph-builder.cc20 AstGraphBuilder::AstGraphBuilder(CompilationInfo* info, JSGraph* jsgraph) in AstGraphBuilder() argument
21 : StructuredGraphBuilder(jsgraph->graph(), jsgraph->common()), in AstGraphBuilder()
23 jsgraph_(jsgraph), in AstGraphBuilder()
100 Node* return_value = jsgraph()->UndefinedConstant(); in CreateGraph()
105 Node* control = NewNode(common()->Return(), jsgraph()->UndefinedConstant()); in CreateGraph()
183 Node* undefined_constant = builder->jsgraph()->UndefinedConstant(); in Environment()
231 builder()->jsgraph()->UndefinedConstant()); in Checkpoint()
317 return environment()->Push(jsgraph()->NullConstant()); in VisitForValueOrNull()
370 Node* value = jsgraph()->TheHoleConstant(); in VisitVariableDeclaration()
376 Node* value = jsgraph()->TheHoleConstant(); in VisitVariableDeclaration()
[all …]
Djs-builtin-reducer.h20 explicit JSBuiltinReducer(JSGraph* jsgraph) in JSBuiltinReducer() argument
21 : jsgraph_(jsgraph), simplified_(jsgraph->zone()) {} in JSBuiltinReducer()
27 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
Dpipeline.cc122 explicit AstGraphBuilderWithPositions(CompilationInfo* info, JSGraph* jsgraph, in AstGraphBuilderWithPositions() argument
124 : AstGraphBuilder(info, jsgraph), source_positions_(source_positions) {} in AstGraphBuilderWithPositions()
186 JSGraph jsgraph(&graph, &common, &javascript, &typer, &machine); in GenerateCode() local
191 AstGraphBuilderWithPositions graph_builder(info(), &jsgraph, in GenerateCode()
214 JSContextSpecializer spec(info(), &jsgraph, context_node); in GenerateCode()
222 JSInliner inliner(info(), &jsgraph); in GenerateCode()
247 JSTypedLowering lowering(&jsgraph); in GenerateCode()
260 SimplifiedLowering lowering(&jsgraph); in GenerateCode()
274 SimplifiedOperatorReducer simple_reducer(&jsgraph); in GenerateCode()
275 ChangeLowering lowering(&jsgraph, &linkage); in GenerateCode()
[all …]
Djs-typed-lowering.cc73 jsgraph()->Int32Constant(0x1F))); in ConvertInputsForShift()
136 JSGraph* jsgraph() { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSBinopReduction
382 return ReplaceEagerly(node, invert ? jsgraph()->FalseConstant() in ReduceJSStrictEqual()
383 : jsgraph()->TrueConstant()); in ReduceJSStrictEqual()
390 return ReplaceEagerly(node, invert ? jsgraph()->TrueConstant() in ReduceJSStrictEqual()
391 : jsgraph()->FalseConstant()); in ReduceJSStrictEqual()
442 return ReplaceWith(jsgraph()->NaNConstant()); in ReduceJSToNumberInput()
446 return ReplaceWith(jsgraph()->ZeroConstant()); in ReduceJSToNumberInput()
473 return ReplaceWith(jsgraph()->HeapConstant( in ReduceJSToStringInput()
477 return ReplaceWith(jsgraph()->HeapConstant( in ReduceJSToStringInput()
[all …]
Djs-typed-lowering.h21 explicit JSTypedLowering(JSGraph* jsgraph) in JSTypedLowering() argument
22 : jsgraph_(jsgraph), simplified_(jsgraph->zone()) {} in JSTypedLowering()
27 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function
Djs-generic-lowering.h59 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
60 Graph* graph() const { return jsgraph()->graph(); } in graph()
63 CommonOperatorBuilder* common() const { return jsgraph()->common(); } in common()
64 MachineOperatorBuilder* machine() const { return jsgraph()->machine(); } in machine()
Dsimplified-lowering.cc62 RepresentationSelector(JSGraph* jsgraph, Zone* zone, in RepresentationSelector() argument
64 : jsgraph_(jsgraph), in RepresentationSelector()
65 count_(jsgraph->graph()->NodeCount()), in RepresentationSelector()
792 jsgraph()->Int32Constant(kSmiTagMask)); in IsTagged()
798 RepresentationChanger changer(jsgraph(), &simplified, in LowerAllNodes()
800 RepresentationSelector selector(jsgraph(), zone(), &changer); in LowerAllNodes()
807 Node* shift_amount = jsgraph()->Int32Constant(kSmiTagSize + kSmiShiftSize); in Untag()
814 Node* shift_amount = jsgraph()->Int32Constant(kSmiTagSize + kSmiShiftSize); in SmiTag()
820 return jsgraph()->Int32Constant(offset - kHeapObjectTag); in OffsetMinusTagConstant()
840 Node* offset = jsgraph()->Int32Constant(access.offset - access.tag()); in DoLoadField()
[all …]
Djs-generic-lowering.cc19 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph) in JSGenericLowering() argument
21 jsgraph_(jsgraph), in JSGenericLowering()
22 linkage_(new (jsgraph->zone()) Linkage(info)) {} in JSGenericLowering()
36 return jsgraph()->SmiConstant(immediate); in SmiConstant()
41 return jsgraph()->Int32Constant(immediate); in Int32Constant()
46 return jsgraph()->HeapConstant(code); in CodeConstant()
51 return jsgraph()->HeapConstant(function); in FunctionConstant()
56 return jsgraph()->ExternalConstant(ref); in ExternalConstant()
241 jsgraph()->TrueConstant()); in LowerBranch()
286 PatchInsertInput(node, 1, jsgraph()->HeapConstant(p.name)); in LowerJSLoadNamed()
[all …]
Dsimplified-operator-reducer.h24 explicit SimplifiedOperatorReducer(JSGraph* jsgraph) : jsgraph_(jsgraph) {} in SimplifiedOperatorReducer() argument
41 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
Dchange-lowering.h22 ChangeLowering(JSGraph* jsgraph, Linkage* linkage) in ChangeLowering() argument
23 : jsgraph_(jsgraph), linkage_(linkage) {} in ChangeLowering()
47 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
Djs-context-specialization.h21 JSContextSpecializer(CompilationInfo* info, JSGraph* jsgraph, Node* context) in JSContextSpecializer() argument
22 : info_(info), jsgraph_(jsgraph), context_(context) {} in JSContextSpecializer()
Djs-inlining.h19 JSInliner(CompilationInfo* info, JSGraph* jsgraph) in JSInliner() argument
20 : info_(info), jsgraph_(jsgraph) {} in JSInliner()
Dmachine-operator-reducer.h24 explicit MachineOperatorReducer(JSGraph* jsgraph);
52 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
Dmachine-operator-reducer.cc17 MachineOperatorReducer::MachineOperatorReducer(JSGraph* jsgraph) in MachineOperatorReducer() argument
18 : jsgraph_(jsgraph) {} in MachineOperatorReducer()
30 return jsgraph()->Float64Constant(value); in Float64Constant()
35 return jsgraph()->Int32Constant(value); in Int32Constant()
491 return jsgraph()->common(); in common()
496 return jsgraph()->machine(); in machine()
500 Graph* MachineOperatorReducer::graph() const { return jsgraph()->graph(); } in graph()
Djs-builtin-reducer-unittest.cc26 JSGraph jsgraph(graph(), common(), javascript(), &typer, &machine); in Reduce() local
27 JSBuiltinReducer reducer(&jsgraph); in Reduce()
/external/v8/test/cctest/compiler/
Dtest-js-context-specialization.cc35 JSGraph* jsgraph() { return &jsgraph_; } in jsgraph() function in ContextSpecializationTester
65 Node* const_context = t.jsgraph()->Constant(native); in TEST()
66 Node* deep_const_context = t.jsgraph()->Constant(subcontext2); in TEST()
68 JSContextSpecializer spec(t.info(), t.jsgraph(), const_context); in TEST()
137 Node* const_context = t.jsgraph()->Constant(native); in TEST()
138 Node* deep_const_context = t.jsgraph()->Constant(subcontext2); in TEST()
140 JSContextSpecializer spec(t.info(), t.jsgraph(), const_context); in TEST()
204 Node* const_context = t.jsgraph()->Constant(native); in TEST()
206 JSContextSpecializer spec(t.info(), t.jsgraph(), const_context); in TEST()
Dtest-simplified-lowering.cc40 jsgraph(this->graph(), this->common(), &javascript, &typer, in SimplifiedLoweringTester()
42 lowering(&jsgraph) {} in SimplifiedLoweringTester()
46 JSGraph jsgraph; member in SimplifiedLoweringTester
75 t.Return(t.jsgraph.TrueConstant()); in TEST()
103 t.Return(t.jsgraph.TrueConstant()); in TEST()
150 t.Return(t.jsgraph.TrueConstant()); in TEST()
246 t.Return(t.jsgraph.TrueConstant()); in TEST()
434 t.Return(t.jsgraph.TrueConstant()); in RunCopyElement()
456 t.Return(t.jsgraph.TrueConstant()); in RunCopyField()
497 t.Return(t.jsgraph.TrueConstant()); in RunCopyElements()
[all …]
Dtest-representation-change.cc44 JSGraph* jsgraph() { return &jsgraph_; } in jsgraph() function in v8::internal::compiler::RepresentationChangerTester
118 Node* true_node = r.jsgraph()->TrueConstant(); in TEST()
123 Node* false_node = r.jsgraph()->FalseConstant(); in TEST()
134 Node* node = r.jsgraph()->Int32Constant(i); in TEST()
146 Node* n = r.jsgraph()->Float64Constant(double_inputs[i]); in TEST()
152 Node* n = r.jsgraph()->Int32Constant(int32_inputs[i]); in TEST()
159 Node* n = r.jsgraph()->Int32Constant(uint32_inputs[i]); in TEST()
Dtest-machine-operator-reducer.cc60 jsgraph(&graph, &common, &javascript, &typer, &machine), in ReducerTester()
74 JSGraph jsgraph; member in ReducerTester
100 MachineOperatorReducer reducer(&jsgraph); in CheckFoldBinop()
112 MachineOperatorReducer reducer(&jsgraph); in CheckBinop()
124 MachineOperatorReducer reducer(&jsgraph); in CheckFoldBinop()
139 MachineOperatorReducer reducer(&jsgraph); in CheckFoldBinop()
154 MachineOperatorReducer reducer(&jsgraph); in CheckFoldBinop()
171 MachineOperatorReducer reducer(&jsgraph); in CheckPutConstantOnRight()
179 MachineOperatorReducer reducer(&jsgraph); in CheckPutConstantOnRight()
195 MachineOperatorReducer reducer(&jsgraph); in CheckDontPutConstantOnRight()
[all …]
Dtest-changes-lowering.cc35 jsgraph(this->graph(), this->common(), &javascript, &typer, in ChangesLoweringTester()
41 JSGraph jsgraph; member in ChangesLoweringTester
150 ChangeLowering lowering(&jsgraph, &linkage); in LowerChange()

12