/external/v8/src/compiler/ |
D | representation-change.h | 23 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 …]
|
D | simplified-operator-reducer.cc | 23 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 …]
|
D | simplified-lowering.h | 19 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()
|
D | change-lowering.cc | 48 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 …]
|
D | js-inlining.cc | 103 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 …]
|
D | ast-graph-builder.cc | 20 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 …]
|
D | js-builtin-reducer.h | 20 explicit JSBuiltinReducer(JSGraph* jsgraph) in JSBuiltinReducer() argument 21 : jsgraph_(jsgraph), simplified_(jsgraph->zone()) {} in JSBuiltinReducer() 27 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | pipeline.cc | 122 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 …]
|
D | js-typed-lowering.cc | 73 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 …]
|
D | js-typed-lowering.h | 21 explicit JSTypedLowering(JSGraph* jsgraph) in JSTypedLowering() argument 22 : jsgraph_(jsgraph), simplified_(jsgraph->zone()) {} in JSTypedLowering() 27 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function
|
D | js-generic-lowering.h | 59 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()
|
D | simplified-lowering.cc | 62 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 …]
|
D | js-generic-lowering.cc | 19 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 …]
|
D | simplified-operator-reducer.h | 24 explicit SimplifiedOperatorReducer(JSGraph* jsgraph) : jsgraph_(jsgraph) {} in SimplifiedOperatorReducer() argument 41 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | change-lowering.h | 22 ChangeLowering(JSGraph* jsgraph, Linkage* linkage) in ChangeLowering() argument 23 : jsgraph_(jsgraph), linkage_(linkage) {} in ChangeLowering() 47 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | js-context-specialization.h | 21 JSContextSpecializer(CompilationInfo* info, JSGraph* jsgraph, Node* context) in JSContextSpecializer() argument 22 : info_(info), jsgraph_(jsgraph), context_(context) {} in JSContextSpecializer()
|
D | js-inlining.h | 19 JSInliner(CompilationInfo* info, JSGraph* jsgraph) in JSInliner() argument 20 : info_(info), jsgraph_(jsgraph) {} in JSInliner()
|
D | machine-operator-reducer.h | 24 explicit MachineOperatorReducer(JSGraph* jsgraph); 52 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | machine-operator-reducer.cc | 17 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()
|
D | js-builtin-reducer-unittest.cc | 26 JSGraph jsgraph(graph(), common(), javascript(), &typer, &machine); in Reduce() local 27 JSBuiltinReducer reducer(&jsgraph); in Reduce()
|
/external/v8/test/cctest/compiler/ |
D | test-js-context-specialization.cc | 35 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()
|
D | test-simplified-lowering.cc | 40 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 …]
|
D | test-representation-change.cc | 44 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()
|
D | test-machine-operator-reducer.cc | 60 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 …]
|
D | test-changes-lowering.cc | 35 jsgraph(this->graph(), this->common(), &javascript, &typer, in ChangesLoweringTester() 41 JSGraph jsgraph; member in ChangesLoweringTester 150 ChangeLowering lowering(&jsgraph, &linkage); in LowerChange()
|