/external/v8/src/compiler/ |
D | js-create-lowering.cc | 131 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreate() 135 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreate() 137 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreate() 141 jsgraph()->UndefinedConstant()); in ReduceJSCreate() 181 Node* const arguments_map = jsgraph()->Constant( in ReduceJSCreateArguments() 186 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreateArguments() 191 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreateArguments() 215 jsgraph()->Constant(native_context().strict_arguments_map()); in ReduceJSCreateArguments() 217 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreateArguments() 222 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreateArguments() [all …]
|
D | js-generic-lowering.cc | 39 JSGenericLowering::JSGenericLowering(JSGraph* jsgraph, Editor* editor, in JSGenericLowering() argument 41 : AdvancedReducer(editor), jsgraph_(jsgraph), broker_(broker) {} in JSGenericLowering() 102 Node* stub_code = jsgraph()->HeapConstant(callable.code()); in ReplaceWithBuiltinCall() 116 Node* ref = jsgraph()->ExternalConstant(ExternalReference::Create(f)); in ReplaceWithRuntimeCall() 117 Node* arity = jsgraph()->Int32Constant(nargs); in ReplaceWithRuntimeCall() 118 node->InsertInput(zone(), 0, jsgraph()->CEntryStubConstant(fun->result_size)); in ReplaceWithRuntimeCall() 131 Node* slot = jsgraph()->UintPtrConstant(p.feedback().slot.ToInt()); in ReplaceUnaryOpWithBuiltinCall() 137 Node* stub_code = jsgraph()->HeapConstant(callable.code()); in ReplaceUnaryOpWithBuiltinCall() 168 Node* slot = jsgraph()->UintPtrConstant(p.feedback().slot.ToInt()); in DEF_UNARY_LOWERING() 212 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in DEF_BINARY_LOWERING() [all …]
|
D | constant-folding-reducer.cc | 15 Node* TryGetConstant(JSGraph* jsgraph, Node* node) { in TryGetConstant() argument 21 result = jsgraph->NullConstant(); in TryGetConstant() 23 result = jsgraph->UndefinedConstant(); in TryGetConstant() 25 result = jsgraph->MinusZeroConstant(); in TryGetConstant() 27 result = jsgraph->NaNConstant(); in TryGetConstant() 29 result = jsgraph->TheHoleConstant(); in TryGetConstant() 31 result = jsgraph->Constant(type.AsHeapConstant()->Ref()); in TryGetConstant() 33 result = jsgraph->Constant(type.Min()); in TryGetConstant() 59 ConstantFoldingReducer::ConstantFoldingReducer(Editor* editor, JSGraph* jsgraph, in ConstantFoldingReducer() argument 61 : AdvancedReducer(editor), jsgraph_(jsgraph), broker_(broker) {} in ConstantFoldingReducer() [all …]
|
D | representation-change.cc | 142 RepresentationChanger::RepresentationChanger(JSGraph* jsgraph, in RepresentationChanger() argument 145 jsgraph_(jsgraph), in RepresentationChanger() 259 return jsgraph()->graph()->NewNode( in GetTaggedSignedRepresentationFor() 260 jsgraph()->common()->DeadValue(MachineRepresentation::kTaggedSigned), in GetTaggedSignedRepresentationFor() 404 return jsgraph()->graph()->NewNode( in GetTaggedPointerRepresentationFor() 405 jsgraph()->common()->DeadValue(MachineRepresentation::kTaggedPointer), in GetTaggedPointerRepresentationFor() 416 return jsgraph()->graph()->NewNode( in GetTaggedPointerRepresentationFor() 417 jsgraph()->common()->DeadValue(MachineRepresentation::kTaggedPointer), in GetTaggedPointerRepresentationFor() 445 node = jsgraph()->graph()->NewNode(op, node); in GetTaggedPointerRepresentationFor() 518 return jsgraph()->graph()->NewNode( in GetTaggedRepresentationFor() [all …]
|
D | escape-analysis-reducer.cc | 27 Editor* editor, JSGraph* jsgraph, EscapeAnalysisResult analysis_result, in EscapeAnalysisReducer() argument 30 jsgraph_(jsgraph), in EscapeAnalysisReducer() 33 node_cache_(jsgraph->graph(), zone), in EscapeAnalysisReducer() 60 original->AppendInput(jsgraph()->zone(), replacement); in ReplaceNode() 61 original->AppendInput(jsgraph()->zone(), effect); in ReplaceNode() 62 original->AppendInput(jsgraph()->zone(), control); in ReplaceNode() 65 Type::Intersect(original_type, replacement_type, jsgraph()->zone())); in ReplaceNode() 67 jsgraph()->common()->TypeGuard(original_type)); in ReplaceNode() 76 Node* node = jsgraph()->graph()->NewNode(jsgraph()->common()->ObjectId(id)); in ObjectIdNode() 189 if (field != jsgraph()->Dead()) { in ReduceDeoptState() [all …]
|
D | frame-states.cc | 110 JSGraph* jsgraph, FrameStateType frame_type, Builtins::Name name, in CreateBuiltinContinuationFrameStateCommon() argument 114 Graph* const graph = jsgraph->graph(); in CreateBuiltinContinuationFrameStateCommon() 115 CommonOperatorBuilder* const common = jsgraph->common(); in CreateBuiltinContinuationFrameStateCommon() 127 return FrameState(graph->NewNode(op, params_node, jsgraph->EmptyStateValues(), in CreateBuiltinContinuationFrameStateCommon() 128 jsgraph->EmptyStateValues(), context, in CreateBuiltinContinuationFrameStateCommon() 135 JSGraph* jsgraph, Builtins::Name name, Node* context, in CreateStubBuiltinContinuationFrameState() argument 138 Callable callable = Builtins::CallableFor(jsgraph->isolate(), name); in CreateStubBuiltinContinuationFrameState() 167 jsgraph, FrameStateType::kBuiltinContinuation, name, in CreateStubBuiltinContinuationFrameState() 168 jsgraph->UndefinedConstant(), context, actual_parameters.data(), in CreateStubBuiltinContinuationFrameState() 173 JSGraph* jsgraph, const SharedFunctionInfoRef& shared, Builtins::Name name, in CreateJavaScriptBuiltinContinuationFrameState() argument [all …]
|
D | js-type-hint-lowering.cc | 232 JSGraph* jsgraph() const { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSSpeculativeBinopBuilder 233 Isolate* isolate() const { return jsgraph()->isolate(); } in isolate() 234 Graph* graph() const { return jsgraph()->graph(); } in graph() 235 JSOperatorBuilder* javascript() { return jsgraph()->javascript(); } in javascript() 236 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } in simplified() 237 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 257 JSTypeHintLowering::JSTypeHintLowering(JSHeapBroker* broker, JSGraph* jsgraph, in JSTypeHintLowering() argument 261 jsgraph_(jsgraph), in JSTypeHintLowering() 265 Isolate* JSTypeHintLowering::isolate() const { return jsgraph()->isolate(); } in isolate() 297 this, jsgraph()->javascript()->BitwiseXor(feedback), operand, in ReduceUnaryOperation() [all …]
|
D | simplified-operator-reducer.cc | 36 JSGraph* jsgraph, in SimplifiedOperatorReducer() argument 38 : AdvancedReducer(editor), jsgraph_(jsgraph), broker_(broker) {} in SimplifiedOperatorReducer() 55 if (m.Is(0)) return Replace(jsgraph()->FalseConstant()); in Reduce() 56 if (m.Is(1)) return Replace(jsgraph()->TrueConstant()); in Reduce() 144 jsgraph()->Int32Constant(static_cast<int32_t>(m.ResolvedValue())); in Reduce() 252 node->ReplaceInput(1, jsgraph()->Int32Constant(val)); in Reduce() 278 return Replace(jsgraph()->BooleanConstant(value)); in ReplaceBoolean() 282 return Replace(jsgraph()->Float64Constant(value)); in ReplaceFloat64() 287 return Replace(jsgraph()->Int32Constant(value)); in ReplaceInt32() 292 return Replace(jsgraph()->Constant(value)); in ReplaceNumber() [all …]
|
D | js-typed-lowering.cc | 394 JSGraph* jsgraph() { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSBinopReduction 395 Isolate* isolate() { return jsgraph()->isolate(); } in isolate() 397 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 446 JSTypedLowering::JSTypedLowering(Editor* editor, JSGraph* jsgraph, in JSTypedLowering() argument 449 jsgraph_(jsgraph), in JSTypedLowering() 466 node->InsertInput(graph()->zone(), 1, jsgraph()->SmiConstant(-1)); in ReduceJSBitwiseNot() 482 node->InsertInput(graph()->zone(), 1, jsgraph()->OneConstant()); in ReduceJSDecrement() 498 node->InsertInput(graph()->zone(), 1, jsgraph()->OneConstant()); in ReduceJSIncrement() 514 node->InsertInput(graph()->zone(), 1, jsgraph()->SmiConstant(-1)); in ReduceJSNegate() 603 jsgraph()->Constant(String::kMaxLength + 1), effect, control); in ReduceJSAdd() [all …]
|
D | map-inference.cc | 101 void MapInference::InsertMapChecks(JSGraph* jsgraph, Effect* effect, in InsertMapChecks() argument 107 for (Handle<Map> map : maps_) maps.insert(map, jsgraph->graph()->zone()); in InsertMapChecks() 108 *effect = jsgraph->graph()->NewNode( in InsertMapChecks() 109 jsgraph->simplified()->CheckMaps(CheckMapsFlag::kNone, maps, feedback), in InsertMapChecks() 121 CompilationDependencies* dependencies, JSGraph* jsgraph, Effect* effect, in RelyOnMapsPreferStability() argument 126 CHECK(RelyOnMapsHelper(nullptr, jsgraph, effect, control, feedback)); in RelyOnMapsPreferStability() 131 JSGraph* jsgraph, Effect* effect, in RelyOnMapsHelper() argument 148 InsertMapChecks(jsgraph, effect, control, feedback); in RelyOnMapsHelper()
|
D | js-call-reducer.cc | 290 inference->InsertMapChecks(jsgraph(), &e, Control{control()}, feedback()); in MaybeInsertMapChecks() 649 JSOperatorBuilder* javascript() const { return jsgraph()->javascript(); } in javascript() 952 jsgraph(), shared_, target_, ContextInput(), receiver_, in ReduceFastApiCall() 1110 AllocationBuilder ab(jsgraph(), effect(), control()); in AllocateEmptyJSArray() 1113 Node* empty_fixed_array = jsgraph()->EmptyFixedArrayConstant(); in AllocateEmptyJSArray() 1117 ab.Store(AccessBuilder::ForJSArrayLength(kind), jsgraph()->ZeroConstant()); in AllocateEmptyJSArray() 1120 jsgraph()->UndefinedConstant()); in AllocateEmptyJSArray() 1214 JSGraph* jsgraph; member 1231 params.jsgraph, params.shared, builtin, params.target, params.context, in ForEachLoopLazyFrameState() 1242 params.jsgraph, params.shared, builtin, params.target, params.context, in ForEachLoopEagerFrameState() [all …]
|
D | simplified-lowering.h | 29 SimplifiedLowering(JSGraph* jsgraph, JSHeapBroker* broker, Zone* zone, 97 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function 98 Graph* graph() { return jsgraph()->graph(); } in graph() 99 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 100 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } in machine() 101 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } in simplified()
|
D | typed-optimization.cc | 23 JSGraph* jsgraph, JSHeapBroker* broker) in TypedOptimization() argument 26 jsgraph_(jsgraph), in TypedOptimization() 302 Node* const value = jsgraph()->Constant(*object_map); in ReduceLoadField() 406 Node* replacement = jsgraph()->FalseConstant(); in ReduceReferenceEqual() 410 return Replace(jsgraph()->FalseConstant()); in ReduceReferenceEqual() 437 return Replace(jsgraph()->BooleanConstant(false)); in TryReduceStringComparisonOfStringFromSingleCharCodeToConstant() 446 return Replace(jsgraph()->BooleanConstant(inverted)); in TryReduceStringComparisonOfStringFromSingleCharCodeToConstant() 483 jsgraph()->Constant(std::numeric_limits<uint16_t>::max())); in TryReduceStringComparisonOfStringFromSingleCharCode() 485 Node* constant_repl = jsgraph()->Constant(string.GetFirstChar()); in TryReduceStringComparisonOfStringFromSingleCharCode() 528 jsgraph()->Constant(std::numeric_limits<uint16_t>::max())); in ReduceStringComparison() [all …]
|
D | escape-analysis.cc | 167 EscapeAnalysisTracker(JSGraph* jsgraph, EffectGraphReducer* reducer, in EscapeAnalysisTracker() argument 171 variable_states_(jsgraph, reducer, zone), in EscapeAnalysisTracker() 172 jsgraph_(jsgraph), in EscapeAnalysisTracker() 535 JSGraph* jsgraph) { in LowerCompareMapsWithoutLoad() argument 536 Node* true_node = jsgraph->TrueConstant(); in LowerCompareMapsWithoutLoad() 537 Node* false_node = jsgraph->FalseConstant(); in LowerCompareMapsWithoutLoad() 540 Node* map_node = jsgraph->HeapConstant(map); in LowerCompareMapsWithoutLoad() 543 Node* comparison = jsgraph->graph()->NewNode( in LowerCompareMapsWithoutLoad() 544 jsgraph->simplified()->ReferenceEqual(), checked_map, map_node); in LowerCompareMapsWithoutLoad() 549 replacement = jsgraph->graph()->NewNode( in LowerCompareMapsWithoutLoad() [all …]
|
D | js-native-context-specialization.cc | 61 Editor* editor, JSGraph* jsgraph, JSHeapBroker* broker, Flags flags, in JSNativeContextSpecialization() argument 64 jsgraph_(jsgraph), in JSNativeContextSpecialization() 272 jsgraph(), Builtins::kAsyncFunctionLazyDeoptContinuation, context, in ReduceJSAsyncFunctionReject() 278 Node* debug_event = jsgraph()->FalseConstant(); in ReduceJSAsyncFunctionReject() 308 jsgraph(), Builtins::kAsyncFunctionLazyDeoptContinuation, context, in ReduceJSAsyncFunctionResolve() 374 Node* value = jsgraph()->Constant(function_prototype); in ReduceJSGetSuperConstructor() 430 PropertyAccessBuilder access_builder(jsgraph(), broker(), dependencies()); in ReduceJSInstanceOf() 486 jsgraph(), Builtins::kToBooleanLazyDeoptContinuation, context, nullptr, in ReduceJSInstanceOf() 490 Node* target = jsgraph()->Constant(*constant); in ReduceJSInstanceOf() 491 Node* feedback = jsgraph()->UndefinedConstant(); in ReduceJSInstanceOf() [all …]
|
D | allocation-builder.h | 21 AllocationBuilder(JSGraph* jsgraph, Node* effect, Node* control) in AllocationBuilder() argument 22 : jsgraph_(jsgraph), in AllocationBuilder() 35 jsgraph()->Constant(size), effect_, control_); 65 Store(access, jsgraph()->Constant(value)); in Store() 81 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function
|
D | js-context-specialization.cc | 43 Node* value = jsgraph()->Constant(JSFunctionRef(broker_, function)); in ReduceParameter() 153 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 159 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 170 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 182 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 216 return SimplifyJSStoreContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSStoreContext() 219 return SimplifyJSStoreContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSStoreContext() 268 Node* import_meta_const = jsgraph()->Constant(import_meta); in ReduceJSGetImportMeta() 280 return jsgraph()->isolate(); in isolate()
|
D | js-inlining.cc | 123 Replace(use, jsgraph()->Constant(c.argument_count())); in InlineCall() 129 Replace(use, jsgraph()->UndefinedConstant()); in InlineCall() 183 jsgraph()->Dead()); in InlineCall() 228 ReplaceWithValue(call, jsgraph()->Dead(), jsgraph()->Dead(), in InlineCall() 229 jsgraph()->Dead()); in InlineCall() 261 if (context == nullptr) context = jsgraph()->UndefinedConstant(); in CreateArtificialFrameState() 347 *context_out = jsgraph()->Constant(function.context()); in DetermineCallContext() 473 BailoutId::None(), jsgraph(), frequency, in ReduceJSCall() 502 Node* new_target = jsgraph()->UndefinedConstant(); in ReduceJSCall() 519 Node* receiver = jsgraph()->TheHoleConstant(); // Implicit receiver. in ReduceJSCall() [all …]
|
D | pipeline.cc | 216 JSGraph* jsgraph, Schedule* schedule, in PipelineData() argument 243 if (jsgraph) { in PipelineData() 244 jsgraph_ = jsgraph; in PipelineData() 245 simplified_ = jsgraph->simplified(); in PipelineData() 246 machine_ = jsgraph->machine(); in PipelineData() 247 common_ = jsgraph->common(); in PipelineData() 248 javascript_ = jsgraph->javascript(); in PipelineData() 326 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function in v8::internal::compiler::PipelineData 1414 data->jsgraph(), frequency, data->source_positions(), in DECL_PIPELINE_PHASE_CONSTANTS() 1426 data->broker(), data->jsgraph()->Dead()); in DECL_PIPELINE_PHASE_CONSTANTS() [all …]
|
D | js-intrinsic-lowering.cc | 25 JSIntrinsicLowering::JSIntrinsicLowering(Editor* editor, JSGraph* jsgraph, in JSIntrinsicLowering() argument 27 : AdvancedReducer(editor), jsgraph_(jsgraph), broker_(broker) {} in JSIntrinsicLowering() 148 Node* const closed = jsgraph()->Constant(JSGeneratorObject::kGeneratorClosed); in ReduceGeneratorClose() 149 Node* const undefined = jsgraph()->UndefinedConstant(); in ReduceGeneratorClose() 246 Node* vtrue = jsgraph()->FalseConstant(); in ReduceIsInstanceType() 258 jsgraph()->Constant(instance_type)); in ReduceIsInstanceType() 340 Node* feedback = jsgraph()->UndefinedConstant(); in ReduceCall() 406 jsgraph()->HeapConstant(callable.code())); in Change() 411 Graph* JSIntrinsicLowering::graph() const { return jsgraph()->graph(); } in graph() 414 Isolate* JSIntrinsicLowering::isolate() const { return jsgraph()->isolate(); } in isolate() [all …]
|
D | branch-elimination.cc | 92 Graph* graph = jsgraph()->graph(); in SimplifyBranchCondition() 105 phi_inputs.emplace_back(condition_value ? jsgraph()->TrueConstant() in SimplifyBranchCondition() 106 : jsgraph()->FalseConstant()); in SimplifyBranchCondition() 110 ? graph->NewNode(jsgraph()->common()->Int32Constant(1)) in SimplifyBranchCondition() 111 : graph->NewNode(jsgraph()->common()->Int32Constant(0))); in SimplifyBranchCondition() 316 Graph* BranchElimination::graph() const { return jsgraph()->graph(); } in graph() 318 Isolate* BranchElimination::isolate() const { return jsgraph()->isolate(); } in isolate() 321 return jsgraph()->common(); in common()
|
D | property-access-builder.cc | 23 Graph* PropertyAccessBuilder::graph() const { return jsgraph()->graph(); } in graph() 25 Isolate* PropertyAccessBuilder::isolate() const { return jsgraph()->isolate(); } in isolate() 28 return jsgraph()->common(); in common() 32 return jsgraph()->simplified(); in simplified() 117 Node* expected = jsgraph()->HeapConstant(value); in BuildCheckValue() 130 return jsgraph()->Constant(ObjectRef(broker(), holder)); in ResolveHolder() 185 return jsgraph()->Constant(*value); in TryBuildLoadConstantDataField() 229 jsgraph()->HeapNumberMapConstant()); in BuildLoadDataField()
|
D | js-inlining-heuristic.h | 17 OptimizedCompilationInfo* info, JSGraph* jsgraph, in JSInliningHeuristic() argument 21 inliner_(editor, local_zone, info, jsgraph, broker, source_positions), in JSInliningHeuristic() 25 jsgraph_(jsgraph), in JSInliningHeuristic() 89 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | add-type-assertions-reducer.cc | 14 JSGraph* jsgraph, Zone* zone) in AddTypeAssertionsReducer() argument 16 jsgraph_(jsgraph), in AddTypeAssertionsReducer() 17 visited_(jsgraph->graph()->NodeCount(), zone) {} in AddTypeAssertionsReducer()
|
D | bytecode-graph-builder.cc | 39 BailoutId osr_offset, JSGraph* jsgraph, 369 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function in v8::internal::compiler::BytecodeGraphBuilder 639 Node* undefined_constant = builder->jsgraph()->UndefinedConstant(); in Environment() 789 DCHECK_NE(values_[index], builder()->jsgraph()->OptimizedOutConstant()); in Merge() 791 builder()->jsgraph()->OptimizedOutConstant()); in Merge() 799 values_[index] = builder()->jsgraph()->OptimizedOutConstant(); in Merge() 805 builder()->jsgraph()->OptimizedOutConstant()); in Merge() 807 builder()->jsgraph()->OptimizedOutConstant()); in Merge() 813 values_[accumulator_base()] = builder()->jsgraph()->OptimizedOutConstant(); in Merge() 976 : builder()->jsgraph()->OptimizedOutConstant(); in Checkpoint() [all …]
|