/external/v8/src/compiler/ |
D | wasm-compiler.cc | 59 void MergeControlToEnd(JSGraph* jsgraph, Node* node) { in MergeControlToEnd() argument 60 Graph* g = jsgraph->graph(); in MergeControlToEnd() 62 NodeProperties::MergeControlToEnd(g, jsgraph->common(), node); in MergeControlToEnd() 64 g->SetEnd(g->NewNode(jsgraph->common()->End(1), node)); in MergeControlToEnd() 70 Node* BuildCallToRuntimeWithContext(Runtime::FunctionId f, JSGraph* jsgraph, in BuildCallToRuntimeWithContext() argument 76 jsgraph->zone(), f, fun->nargs, Operator::kNoProperties, in BuildCallToRuntimeWithContext() 87 inputs[count++] = jsgraph->CEntryStubConstant(fun->result_size); in BuildCallToRuntimeWithContext() 91 inputs[count++] = jsgraph->ExternalConstant( in BuildCallToRuntimeWithContext() 92 ExternalReference(f, jsgraph->isolate())); // ref in BuildCallToRuntimeWithContext() 93 inputs[count++] = jsgraph->Int32Constant(fun->nargs); // arity in BuildCallToRuntimeWithContext() [all …]
|
D | js-generic-lowering.cc | 33 JSGenericLowering::JSGenericLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} in JSGenericLowering() argument 98 Node* stub_code = jsgraph()->HeapConstant(callable.code()); in ReplaceWithStubCall() 113 Node* ref = jsgraph()->ExternalConstant(ExternalReference(f, isolate())); in ReplaceWithRuntimeCall() 114 Node* arity = jsgraph()->Int32Constant(nargs); in ReplaceWithRuntimeCall() 115 node->InsertInput(zone(), 0, jsgraph()->CEntryStubConstant(fun->result_size)); in ReplaceWithRuntimeCall() 123 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSStrictEqual() 132 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSStrictNotEqual() 141 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSToBoolean() 150 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSClassOf() 159 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSTypeOf() [all …]
|
D | js-create-lowering.cc | 33 AllocationBuilder(JSGraph* jsgraph, Node* effect, Node* control) in AllocationBuilder() argument 34 : jsgraph_(jsgraph), in AllocationBuilder() 47 jsgraph()->Constant(size), effect_, control_); in Allocate() 76 Store(AccessBuilder::ForFixedArrayLength(), jsgraph()->Constant(length)); in AllocateArray() 81 Store(access, jsgraph()->Constant(value)); in Store() 97 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function in v8::internal::compiler::__anon442726d40111::AllocationBuilder 270 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreate() 274 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreate() 276 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreate() 279 jsgraph()->UndefinedConstant()); in ReduceJSCreate() [all …]
|
D | representation-change.cc | 202 return jsgraph()->Constant(0); in GetTaggedSignedRepresentationFor() 317 return jsgraph()->TheHoleConstant(); in GetTaggedPointerRepresentationFor() 385 return jsgraph()->TheHoleConstant(); in GetTaggedRepresentationFor() 430 return jsgraph()->graph()->NewNode(op, node); in GetTaggedRepresentationFor() 440 return jsgraph()->Float32Constant( in GetFloat32RepresentationFor() 455 return jsgraph()->Float32Constant(0.0f); in GetFloat32RepresentationFor() 460 node = jsgraph()->graph()->NewNode(op, node); in GetFloat32RepresentationFor() 469 node = jsgraph()->graph()->NewNode(op, node); in GetFloat32RepresentationFor() 481 node = jsgraph()->graph()->NewNode(op, node); in GetFloat32RepresentationFor() 491 return jsgraph()->graph()->NewNode(op, node); in GetFloat32RepresentationFor() [all …]
|
D | pipeline.cc | 117 PipelineData(ZoneStats* zone_stats, CompilationInfo* info, JSGraph* jsgraph, in PipelineData() argument 126 graph_(jsgraph->graph()), in PipelineData() 128 machine_(jsgraph->machine()), in PipelineData() 129 common_(jsgraph->common()), in PipelineData() 130 javascript_(jsgraph->javascript()), in PipelineData() 131 jsgraph_(jsgraph), in PipelineData() 207 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function in v8::internal::compiler::PipelineData 477 JSGraphReducer(JSGraph* jsgraph, Zone* zone) in JSGraphReducer() argument 478 : GraphReducer(zone, jsgraph->graph(), jsgraph->Dead()) {} in JSGraphReducer() 644 CompilationInfo* info, JSGraph* jsgraph, CallDescriptor* descriptor, in PipelineWasmCompilationJob() argument [all …]
|
D | escape-analysis-reducer.cc | 24 EscapeAnalysisReducer::EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, in EscapeAnalysisReducer() argument 28 jsgraph_(jsgraph), in EscapeAnalysisReducer() 31 fully_reduced_(static_cast<int>(jsgraph->graph()->NodeCount() * 2), zone), in EscapeAnalysisReducer() 109 Node* MaybeGuard(JSGraph* jsgraph, Zone* zone, Node* original, in MaybeGuard() argument 117 replacement = jsgraph->graph()->NewNode( in MaybeGuard() 118 jsgraph->common()->TypeGuard(original_type), replacement, control); in MaybeGuard() 144 rep = MaybeGuard(jsgraph(), zone(), node, rep); in ReduceLoad() 219 ReplaceWithValue(node, jsgraph()->TrueConstant()); in ReduceReferenceEqual() 221 return Replace(jsgraph()->TrueConstant()); in ReduceReferenceEqual() 224 ReplaceWithValue(node, jsgraph()->FalseConstant()); in ReduceReferenceEqual() [all …]
|
D | simplified-operator-reducer.cc | 36 JSGraph* jsgraph) in SimplifiedOperatorReducer() argument 37 : AdvancedReducer(editor), jsgraph_(jsgraph) {} in SimplifiedOperatorReducer() 53 if (m.Is(0)) return Replace(jsgraph()->FalseConstant()); in Reduce() 54 if (m.Is(1)) return Replace(jsgraph()->TrueConstant()); in Reduce() 135 Node* value = jsgraph()->Int32Constant(static_cast<int32_t>(m.Value())); in Reduce() 233 return Replace(jsgraph()->BooleanConstant(value)); in ReplaceBoolean() 237 return Replace(jsgraph()->Float64Constant(value)); in ReplaceFloat64() 242 return Replace(jsgraph()->Int32Constant(value)); in ReplaceInt32() 247 return Replace(jsgraph()->Constant(value)); in ReplaceNumber() 252 return Replace(jsgraph()->Constant(value)); in ReplaceNumber() [all …]
|
D | js-typed-lowering.cc | 283 edge.UpdateTo(jsgraph()->Dead()); in ChangeToSpeculativeOperator() 401 JSGraph* jsgraph() { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSBinopReduction 403 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 520 Flags flags, JSGraph* jsgraph, Zone* zone) in JSTypedLowering() argument 524 jsgraph_(jsgraph), in JSTypedLowering() 594 jsgraph()->HeapConstant(callable.code())); in ReduceJSAdd() 675 ? jsgraph()->Constant( in ReduceCreateConsString() 684 ? jsgraph()->Constant( in ReduceCreateConsString() 696 jsgraph()->Constant(String::kMaxLength)); in ReduceCreateConsString() 741 Node* value_map = jsgraph()->HeapConstant(factory()->cons_string_map()); in ReduceCreateConsString() [all …]
|
D | js-type-hint-lowering.cc | 97 JSGraph* jsgraph() const { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSSpeculativeBinopBuilder 98 Graph* graph() const { return jsgraph()->graph(); } in graph() 99 JSOperatorBuilder* javascript() { return jsgraph()->javascript(); } in javascript() 100 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } in simplified() 101 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 116 JSTypeHintLowering::JSTypeHintLowering(JSGraph* jsgraph, in JSTypeHintLowering() argument 118 : jsgraph_(jsgraph), feedback_vector_(feedback_vector) {} in JSTypeHintLowering()
|
D | simplified-lowering.h | 25 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, 82 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function 83 Graph* graph() { return jsgraph()->graph(); } in graph() 84 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 85 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } in machine() 86 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } in simplified()
|
D | typed-optimization.cc | 20 Flags flags, JSGraph* jsgraph) in TypedOptimization() argument 24 jsgraph_(jsgraph), in TypedOptimization() 49 jsgraph()->Constant(upper->AsHeapConstant()->Value()); in Reduce() 53 Node* replacement = jsgraph()->Constant(factory()->minus_zero_value()); in Reduce() 57 Node* replacement = jsgraph()->NaNConstant(); in Reduce() 61 Node* replacement = jsgraph()->NullConstant(); in Reduce() 66 Node* replacement = jsgraph()->Constant(upper->Min()); in Reduce() 70 Node* replacement = jsgraph()->UndefinedConstant(); in Reduce() 183 Node* const value = jsgraph()->HeapConstant(object_map); in ReduceLoadField() 270 return Replace(jsgraph()->FalseConstant()); in ReduceReferenceEqual() [all …]
|
D | graph-assembler.cc | 15 GraphAssembler::GraphAssembler(JSGraph* jsgraph, Node* effect, Node* control, in GraphAssembler() argument 18 jsgraph_(jsgraph), in GraphAssembler() 23 return jsgraph()->IntPtrConstant(value); in IntPtrConstant() 27 return jsgraph()->Int32Constant(value); in Int32Constant() 35 return jsgraph()->SmiConstant(value); in SmiConstant() 39 return jsgraph()->Uint32Constant(value); in Uint32Constant() 43 return jsgraph()->Float64Constant(value); in Float64Constant() 47 return jsgraph()->HeapConstant(object); in HeapConstant() 52 return jsgraph()->ExternalConstant(ref); in ExternalConstant() 56 return jsgraph()->CEntryStubConstant(result_size); in CEntryStubConstant() [all …]
|
D | js-builtin-reducer.cc | 99 JSBuiltinReducer::JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, in JSBuiltinReducer() argument 106 jsgraph_(jsgraph), in JSBuiltinReducer() 239 Node* object_map = jsgraph()->UndefinedConstant(); in ReduceArrayIterator() 253 object_map = jsgraph()->Constant(receiver_map); in ReduceArrayIterator() 299 jsgraph()->Constant(JSArrayIterator::kSize), effect, control); in ReduceArrayIterator() 302 value, jsgraph()->Constant(map), effect, control); in ReduceArrayIterator() 305 jsgraph()->EmptyFixedArrayConstant(), effect, control); in ReduceArrayIterator() 308 jsgraph()->EmptyFixedArrayConstant(), effect, control); in ReduceArrayIterator() 316 jsgraph()->ZeroConstant(), effect, control); in ReduceArrayIterator() 359 jsgraph()->UndefinedConstant()); in ReduceFastArrayIteratorNext() [all …]
|
D | js-call-reducer.cc | 74 Node* value = (p.arity() == 2) ? jsgraph()->ZeroConstant() in ReduceNumberConstructor() 100 node->ReplaceInput(1, jsgraph()->UndefinedConstant()); in ReduceFunctionPrototypeApply() 193 node, jsgraph()->HeapConstant(handle(apply->context(), isolate()))); in ReduceFunctionPrototypeApply() 209 node, jsgraph()->HeapConstant(handle(call->context(), isolate()))); in ReduceFunctionPrototypeCall() 220 node->ReplaceInput(1, jsgraph()->UndefinedConstant()); in ReduceFunctionPrototypeCall() 242 : jsgraph()->UndefinedConstant(); in ReduceFunctionPrototypeHasInstance() 346 Node* value = jsgraph()->Constant(candidate_prototype); in ReduceObjectPrototypeGetProto() 385 receiver_node = jsgraph()->HeapConstant(receiver); in ReduceCallApiFunction() 389 lookup == kHolderFound ? jsgraph()->HeapConstant(holder) : receiver_node; in ReduceCallApiFunction() 409 node->InsertInput(zone, 0, jsgraph()->HeapConstant(stub.GetCode())); in ReduceCallApiFunction() [all …]
|
D | js-intrinsic-lowering.cc | 23 JSIntrinsicLowering::JSIntrinsicLowering(Editor* editor, JSGraph* jsgraph, in JSIntrinsicLowering() argument 25 : AdvancedReducer(editor), jsgraph_(jsgraph), mode_(mode) {} in JSIntrinsicLowering() 115 Node* const value = jsgraph()->ExternalConstant( in ReduceDebugIsActive() 146 Node* const closed = jsgraph()->Constant(JSGeneratorObject::kGeneratorClosed); in ReduceGeneratorClose() 147 Node* const undefined = jsgraph()->UndefinedConstant(); in ReduceGeneratorClose() 202 Node* vtrue = jsgraph()->FalseConstant(); in ReduceIsInstanceType() 211 jsgraph()->Constant(instance_type)); in ReduceIsInstanceType() 346 check, jsgraph()->ZeroConstant(), value); in ReduceArrayBufferViewField() 353 Node* value = jsgraph()->Constant(Smi::kMaxValue); in ReduceMaxSmi() 359 Node* value = jsgraph()->Constant(FLAG_typed_array_max_size_in_heap); in ReduceTypedArrayMaxSizeInHeap() [all …]
|
D | js-inlining-heuristic.h | 18 CompilationInfo* info, JSGraph* jsgraph, in JSInliningHeuristic() argument 22 inliner_(editor, local_zone, info, jsgraph, source_positions), in JSInliningHeuristic() 25 jsgraph_(jsgraph) {} in JSInliningHeuristic() 64 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | js-native-context-specialization.cc | 65 Editor* editor, JSGraph* jsgraph, Flags flags, in JSNativeContextSpecialization() argument 69 jsgraph_(jsgraph), in JSNativeContextSpecialization() 128 Node* value = jsgraph()->HeapConstant(result); in ReduceJSAdd() 155 Node* value = jsgraph()->Constant(function_prototype); in ReduceJSGetSuperConstructor() 234 Node* target = jsgraph()->Constant(access_info.constant()); in ReduceJSInstanceOf() 275 node, jsgraph()->HeapConstant(bound_target_function), 1); in ReduceJSOrdinaryHasInstance() 291 Node* value = jsgraph()->HeapConstant(native_context()); in ReduceJSLoadContext() 355 jsgraph()->HeapConstant(name)); in ReduceGlobalAccess() 364 jsgraph()->HeapConstant(global_proxy())); in ReduceGlobalAccess() 372 value = jsgraph()->Constant(property_cell_value); in ReduceGlobalAccess() [all …]
|
D | js-context-specialization.cc | 94 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 105 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 140 return SimplifyJSStoreContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSStoreContext() 145 return jsgraph()->isolate(); in isolate() 150 return jsgraph()->javascript(); in javascript()
|
D | js-frame-specialization.h | 24 JSGraph* jsgraph) in JSFrameSpecialization() argument 25 : AdvancedReducer(editor), frame_(frame), jsgraph_(jsgraph) {} in JSFrameSpecialization() 37 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | js-context-specialization.h | 23 JSContextSpecialization(Editor* editor, JSGraph* jsgraph, in JSContextSpecialization() argument 25 : AdvancedReducer(editor), jsgraph_(jsgraph), context_(context) {} in JSContextSpecialization() 40 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | js-inlining.cc | 115 Replace(use, jsgraph()->Constant(inliner_inputs - 2)); in InlineCall() 121 Replace(use, jsgraph()->UndefinedConstant()); in InlineCall() 173 jsgraph()->Dead()); in InlineCall() 218 ReplaceWithValue(call, call, call, jsgraph()->Dead()); in InlineCall() 245 jsgraph()->UndefinedConstant(), node->InputAt(0), in CreateArtificialFrameState() 275 jsgraph()->UndefinedConstant(), function, in CreateTailCallerFrameState() 423 context_out = jsgraph()->Constant(handle(function->context())); in DetermineCallContext() 606 jsgraph(), call.frequency(), source_positions_, inlining_id); in ReduceJSCall() 638 Node* new_target = jsgraph()->UndefinedConstant(); in ReduceJSCall() 657 Node* receiver = jsgraph()->TheHoleConstant(); // Implicit receiver. in ReduceJSCall() [all …]
|
D | ast-graph-builder.cc | 273 JSGraph* jsgraph, float invocation_frequency, in AstGraphBuilder() argument 278 jsgraph_(jsgraph), in AstGraphBuilder() 289 state_values_cache_(jsgraph), in AstGraphBuilder() 346 op, jsgraph()->EmptyStateValues(), jsgraph()->EmptyStateValues(), in GetEmptyFrameState() 347 jsgraph()->EmptyStateValues(), jsgraph()->NoContextConstant(), in GetEmptyFrameState() 348 jsgraph()->UndefinedConstant(), graph()->start()); in GetEmptyFrameState() 384 env.RawParameterBind(0, jsgraph()->TheHoleConstant()); in CreateGraph() 442 BuildReturn(jsgraph()->UndefinedConstant()); in CreateGraphBody() 453 &state_values_cache_, jsgraph()->OptimizedOutConstant(), in ClearNonLiveSlotsInFrameStates() 512 values()->push_back(builder->jsgraph()->UndefinedConstant()); in Environment() [all …]
|
D | js-inlining.h | 27 JSGraph* jsgraph, SourcePositionTable* source_positions) in JSInliner() argument 31 jsgraph_(jsgraph), in JSInliner() 46 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | memory-optimizer.cc | 18 MemoryOptimizer::MemoryOptimizer(JSGraph* jsgraph, Zone* zone) in MemoryOptimizer() argument 19 : jsgraph_(jsgraph), in MemoryOptimizer() 24 graph_assembler_(jsgraph, nullptr, nullptr, zone) {} in MemoryOptimizer() 340 Node* offset = jsgraph()->IntPtrConstant(access.offset - access.tag()); in VisitLoadField() 368 Node* offset = jsgraph()->IntPtrConstant(access.offset - access.tag()); in VisitStoreField() 398 jsgraph()->IntPtrConstant(element_size_shift)); in ComputeIndex() 403 jsgraph()->IntPtrConstant(fixed_offset)); in ComputeIndex() 496 Graph* MemoryOptimizer::graph() const { return jsgraph()->graph(); } in graph() 498 Isolate* MemoryOptimizer::isolate() const { return jsgraph()->isolate(); } in isolate() 501 return jsgraph()->common(); in common() [all …]
|
D | js-frame-specialization.cc | 47 return Replace(jsgraph()->Constant(value)); in ReduceOsrValue() 77 return Replace(jsgraph()->Constant(value)); in ReduceParameter() 81 Isolate* JSFrameSpecialization::isolate() const { return jsgraph()->isolate(); } in isolate()
|