/external/v8/src/compiler/ |
D | js-create-lowering.cc | 149 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreate() 153 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreate() 155 jsgraph()->EmptyFixedArrayConstant()); in ReduceJSCreate() 159 jsgraph()->UndefinedConstant()); in ReduceJSCreate() 199 Node* const arguments_map = jsgraph()->Constant( in ReduceJSCreateArguments() 204 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreateArguments() 205 Node* properties = jsgraph()->EmptyFixedArrayConstant(); in ReduceJSCreateArguments() 231 jsgraph()->Constant(native_context_ref().strict_arguments_map()); in ReduceJSCreateArguments() 233 AllocationBuilder a(jsgraph(), effect, control); in ReduceJSCreateArguments() 234 Node* properties = jsgraph()->EmptyFixedArrayConstant(); in ReduceJSCreateArguments() [all …]
|
D | js-generic-lowering.cc | 34 JSGenericLowering::JSGenericLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} in JSGenericLowering() argument 110 Node* stub_code = jsgraph()->HeapConstant(callable.code()); in ReplaceWithStubCall() 125 Node* ref = jsgraph()->ExternalConstant(ExternalReference::Create(f)); in ReplaceWithRuntimeCall() 126 Node* arity = jsgraph()->Int32Constant(nargs); in ReplaceWithRuntimeCall() 127 node->InsertInput(zone(), 0, jsgraph()->CEntryStubConstant(fun->result_size)); in ReplaceWithRuntimeCall() 135 NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant()); in LowerJSStrictEqual() 147 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSLoadProperty() 155 Node* vector = jsgraph()->HeapConstant(p.feedback().vector()); in LowerJSLoadProperty() 166 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); in LowerJSLoadNamed() 167 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSLoadNamed() [all …]
|
D | frame-states.cc | 105 JSGraph* jsgraph, FrameStateType frame_type, Builtins::Name name, in CreateBuiltinContinuationFrameStateCommon() argument 109 Isolate* const isolate = jsgraph->isolate(); in CreateBuiltinContinuationFrameStateCommon() 110 Graph* const graph = jsgraph->graph(); in CreateBuiltinContinuationFrameStateCommon() 111 CommonOperatorBuilder* const common = jsgraph->common(); in CreateBuiltinContinuationFrameStateCommon() 127 op, params_node, jsgraph->EmptyStateValues(), jsgraph->EmptyStateValues(), in CreateBuiltinContinuationFrameStateCommon() 136 JSGraph* jsgraph, Builtins::Name name, Node* context, in CreateStubBuiltinContinuationFrameState() argument 139 Isolate* isolate = jsgraph->isolate(); in CreateStubBuiltinContinuationFrameState() 159 jsgraph, FrameStateType::kBuiltinContinuation, name, in CreateStubBuiltinContinuationFrameState() 160 jsgraph->UndefinedConstant(), context, actual_parameters.data(), in CreateStubBuiltinContinuationFrameState() 165 JSGraph* jsgraph, Handle<SharedFunctionInfo> shared, Builtins::Name name, in CreateJavaScriptBuiltinContinuationFrameState() argument [all …]
|
D | constant-folding-reducer.cc | 14 ConstantFoldingReducer::ConstantFoldingReducer(Editor* editor, JSGraph* jsgraph, in ConstantFoldingReducer() argument 17 jsgraph_(jsgraph), in ConstantFoldingReducer() 40 replacement = jsgraph()->Constant(upper.AsHeapConstant()->Ref()); in Reduce() 42 Factory* factory = jsgraph()->isolate()->factory(); in Reduce() 44 replacement = jsgraph()->Constant(minus_zero); in Reduce() 46 replacement = jsgraph()->NaNConstant(); in Reduce() 48 replacement = jsgraph()->NullConstant(); in Reduce() 50 replacement = jsgraph()->Constant(upper.Min()); in Reduce() 52 replacement = jsgraph()->UndefinedConstant(); in Reduce()
|
D | representation-change.cc | 219 return jsgraph()->graph()->NewNode( in GetTaggedSignedRepresentationFor() 220 jsgraph()->common()->DeadValue(MachineRepresentation::kTaggedSigned), in GetTaggedSignedRepresentationFor() 341 return jsgraph()->graph()->NewNode( in GetTaggedPointerRepresentationFor() 342 jsgraph()->common()->DeadValue(MachineRepresentation::kTaggedPointer), in GetTaggedPointerRepresentationFor() 420 return jsgraph()->graph()->NewNode( in GetTaggedRepresentationFor() 421 jsgraph()->common()->DeadValue(MachineRepresentation::kTagged), node); in GetTaggedRepresentationFor() 475 return jsgraph()->graph()->NewNode(op, node); in GetTaggedRepresentationFor() 484 return jsgraph()->Float32Constant( in GetFloat32RepresentationFor() 498 return jsgraph()->graph()->NewNode( in GetFloat32RepresentationFor() 499 jsgraph()->common()->DeadValue(MachineRepresentation::kFloat32), node); in GetFloat32RepresentationFor() [all …]
|
D | escape-analysis-reducer.cc | 26 Editor* editor, JSGraph* jsgraph, EscapeAnalysisResult analysis_result, in EscapeAnalysisReducer() argument 29 jsgraph_(jsgraph), in EscapeAnalysisReducer() 32 node_cache_(jsgraph->graph(), zone), in EscapeAnalysisReducer() 59 original->AppendInput(jsgraph()->zone(), replacement); in ReplaceNode() 60 original->AppendInput(jsgraph()->zone(), effect); in ReplaceNode() 61 original->AppendInput(jsgraph()->zone(), control); in ReplaceNode() 64 Type::Intersect(original_type, replacement_type, jsgraph()->zone())); in ReplaceNode() 66 jsgraph()->common()->TypeGuard(original_type)); in ReplaceNode() 86 Node* node = jsgraph()->graph()->NewNode(jsgraph()->common()->ObjectId(id)); in ObjectIdNode() 199 if (field != jsgraph()->Dead()) { in ReduceDeoptState() [all …]
|
D | js-type-hint-lowering.cc | 191 JSGraph* jsgraph() const { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSSpeculativeBinopBuilder 192 Isolate* isolate() const { return jsgraph()->isolate(); } in isolate() 193 Graph* graph() const { return jsgraph()->graph(); } in graph() 194 JSOperatorBuilder* javascript() { return jsgraph()->javascript(); } in javascript() 195 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } in simplified() 196 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 211 JSTypeHintLowering::JSTypeHintLowering(JSGraph* jsgraph, in JSTypeHintLowering() argument 214 : jsgraph_(jsgraph), flags_(flags), feedback_vector_(feedback_vector) {} in JSTypeHintLowering() 216 Isolate* JSTypeHintLowering::isolate() const { return jsgraph()->isolate(); } in isolate() 234 JSSpeculativeBinopBuilder b(this, jsgraph()->javascript()->BitwiseXor(), in ReduceUnaryOperation() [all …]
|
D | js-call-reducer.cc | 40 Node* value = jsgraph()->NaNConstant(); in ReduceMathUnary() 64 Node* value = jsgraph()->NaNConstant(); in ReduceMathBinary() 74 : jsgraph()->NaNConstant(); in ReduceMathBinary() 95 Node* value = jsgraph()->ZeroConstant(); in ReduceMathImul() 102 : jsgraph()->ZeroConstant(); in ReduceMathImul() 128 Node* value = jsgraph()->Constant(32); in ReduceMathClz32() 238 Node* value = (p.arity() == 2) ? jsgraph()->UndefinedConstant() in ReduceBooleanConstructor() 251 : jsgraph()->UndefinedConstant(); in ReduceObjectConstructor() 281 node->ReplaceInput(1, jsgraph()->UndefinedConstant()); in ReduceFunctionPrototypeApply() 314 jsgraph()->NullConstant()); in ReduceFunctionPrototypeApply() [all …]
|
D | simplified-operator-reducer.cc | 36 Editor* editor, JSGraph* jsgraph, JSHeapBroker* js_heap_broker) in SimplifiedOperatorReducer() argument 38 jsgraph_(jsgraph), in SimplifiedOperatorReducer() 57 if (m.Is(0)) return Replace(jsgraph()->FalseConstant()); in Reduce() 58 if (m.Is(1)) return Replace(jsgraph()->TrueConstant()); in Reduce() 141 Node* value = jsgraph()->Int32Constant(static_cast<int32_t>(m.Value())); in Reduce() 239 return Replace(jsgraph()->BooleanConstant(value)); in ReplaceBoolean() 243 return Replace(jsgraph()->Float64Constant(value)); in ReplaceFloat64() 248 return Replace(jsgraph()->Int32Constant(value)); in ReplaceInt32() 253 return Replace(jsgraph()->Constant(value)); in ReplaceNumber() 258 return Replace(jsgraph()->Constant(value)); in ReplaceNumber() [all …]
|
D | typed-optimization.cc | 23 JSGraph* jsgraph, in TypedOptimization() argument 27 jsgraph_(jsgraph), in TypedOptimization() 222 Node* const value = jsgraph()->Constant(*object_map); in ReduceLoadField() 311 Node* replacement = jsgraph()->FalseConstant(); in ReduceReferenceEqual() 315 return Replace(jsgraph()->FalseConstant()); in ReduceReferenceEqual() 342 return Replace(jsgraph()->BooleanConstant(false)); in TryReduceStringComparisonOfStringFromSingleCharCodeToConstant() 351 return Replace(jsgraph()->BooleanConstant(inverted)); in TryReduceStringComparisonOfStringFromSingleCharCodeToConstant() 388 jsgraph()->Constant(std::numeric_limits<uint16_t>::max())); in TryReduceStringComparisonOfStringFromSingleCharCode() 390 Node* constant_repl = jsgraph()->Constant(string.GetFirstChar()); in TryReduceStringComparisonOfStringFromSingleCharCode() 433 jsgraph()->Constant(std::numeric_limits<uint16_t>::max())); in ReduceStringComparison() [all …]
|
D | js-typed-lowering.cc | 364 JSGraph* jsgraph() { return lowering_->jsgraph(); } in jsgraph() function in v8::internal::compiler::JSBinopReduction 365 Isolate* isolate() { return jsgraph()->isolate(); } in isolate() 367 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 411 JSTypedLowering::JSTypedLowering(Editor* editor, JSGraph* jsgraph, in JSTypedLowering() argument 414 jsgraph_(jsgraph), in JSTypedLowering() 445 node->InsertInput(graph()->zone(), 1, jsgraph()->SmiConstant(-1)); in ReduceJSBitwiseNot() 460 node->InsertInput(graph()->zone(), 1, jsgraph()->OneConstant()); in ReduceJSDecrement() 475 node->InsertInput(graph()->zone(), 1, jsgraph()->OneConstant()); in ReduceJSIncrement() 491 node->InsertInput(graph()->zone(), 1, jsgraph()->SmiConstant(-1)); in ReduceJSNegate() 555 Node* value = jsgraph()->Constant(cons); in ReduceJSAdd() [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_); 58 Store(AccessBuilder::ForFixedArrayLength(), jsgraph()->Constant(length)); in AllocateContext() 71 Store(AccessBuilder::ForFixedArrayLength(), jsgraph()->Constant(length)); 76 Store(access, jsgraph()->Constant(value)); in Store() 80 Store(access, jsgraph()->Constant(value)); in Store() 96 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function
|
D | js-native-context-specialization.cc | 63 Editor* editor, JSGraph* jsgraph, JSHeapBroker* js_heap_broker, Flags flags, in JSNativeContextSpecialization() argument 67 jsgraph_(jsgraph), in JSNativeContextSpecialization() 70 global_object_(native_context->global_object(), jsgraph->isolate()), in JSNativeContextSpecialization() 72 jsgraph->isolate()), in JSNativeContextSpecialization() 138 Node* value = jsgraph()->HeapConstant(result); in ReduceJSAdd() 163 Node* value = jsgraph()->Constant(function_prototype); in ReduceJSGetSuperConstructor() 206 PropertyAccessBuilder access_builder(jsgraph(), js_heap_broker(), in ReduceJSInstanceOf() 279 jsgraph(), Builtins::kToBooleanLazyDeoptContinuation, context, nullptr, in ReduceJSInstanceOf() 283 Node* target = jsgraph()->Constant(constant); in ReduceJSInstanceOf() 373 Node* value = jsgraph()->BooleanConstant(result == kIsInPrototypeChain); in ReduceJSHasInPrototypeChain() [all …]
|
D | simplified-lowering.h | 26 SimplifiedLowering(JSGraph* jsgraph, JSHeapBroker* js_heap_broker, Zone* zone, 91 JSGraph* jsgraph() { return jsgraph_; } in jsgraph() function 92 Graph* graph() { return jsgraph()->graph(); } in graph() 93 CommonOperatorBuilder* common() { return jsgraph()->common(); } in common() 94 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } in machine() 95 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } in simplified()
|
D | graph-assembler.cc | 14 GraphAssembler::GraphAssembler(JSGraph* jsgraph, Node* effect, Node* control, in GraphAssembler() argument 17 jsgraph_(jsgraph), in GraphAssembler() 22 return jsgraph()->IntPtrConstant(value); in IntPtrConstant() 26 return jsgraph()->Int32Constant(value); in Int32Constant() 34 return jsgraph()->SmiConstant(value); in SmiConstant() 38 return jsgraph()->Uint32Constant(value); in Uint32Constant() 42 return jsgraph()->Float64Constant(value); in Float64Constant() 46 return jsgraph()->HeapConstant(object); in HeapConstant() 51 return jsgraph()->ExternalConstant(ref); in ExternalConstant() 55 return jsgraph()->CEntryStubConstant(result_size); in CEntryStubConstant() [all …]
|
D | escape-analysis.cc | 162 EscapeAnalysisTracker(JSGraph* jsgraph, EffectGraphReducer* reducer, in EscapeAnalysisTracker() argument 166 variable_states_(jsgraph, reducer, zone), in EscapeAnalysisTracker() 167 jsgraph_(jsgraph), in EscapeAnalysisTracker() 519 JSGraph* jsgraph) { in LowerCompareMapsWithoutLoad() argument 520 Node* true_node = jsgraph->TrueConstant(); in LowerCompareMapsWithoutLoad() 521 Node* false_node = jsgraph->FalseConstant(); in LowerCompareMapsWithoutLoad() 524 Node* map_node = jsgraph->HeapConstant(map); in LowerCompareMapsWithoutLoad() 527 Node* comparison = jsgraph->graph()->NewNode( in LowerCompareMapsWithoutLoad() 528 jsgraph->simplified()->ReferenceEqual(), checked_map, map_node); in LowerCompareMapsWithoutLoad() 533 replacement = jsgraph->graph()->NewNode( in LowerCompareMapsWithoutLoad() [all …]
|
D | js-inlining.cc | 121 Replace(use, jsgraph()->Constant(inliner_inputs - 2)); in InlineCall() 127 Replace(use, jsgraph()->UndefinedConstant()); in InlineCall() 182 jsgraph()->Dead()); in InlineCall() 227 ReplaceWithValue(call, jsgraph()->Dead(), jsgraph()->Dead(), in InlineCall() 228 jsgraph()->Dead()); in InlineCall() 255 jsgraph()->UndefinedConstant(), node->InputAt(0), in CreateArtificialFrameState() 346 context_out = jsgraph()->Constant(handle(function->context(), isolate())); in DetermineCallContext() 490 zone(), shared_info, feedback_vector, BailoutId::None(), jsgraph(), in ReduceJSCall() 519 Node* new_target = jsgraph()->UndefinedConstant(); in ReduceJSCall() 538 Node* receiver = jsgraph()->TheHoleConstant(); // Implicit receiver. in ReduceJSCall() [all …]
|
D | js-intrinsic-lowering.cc | 24 JSIntrinsicLowering::JSIntrinsicLowering(Editor* editor, JSGraph* jsgraph) in JSIntrinsicLowering() argument 25 : AdvancedReducer(editor), jsgraph_(jsgraph) {} in JSIntrinsicLowering() 96 Node* const value = jsgraph()->ExternalConstant( in ReduceDebugIsActive() 140 Node* const closed = jsgraph()->Constant(JSGeneratorObject::kGeneratorClosed); in ReduceGeneratorClose() 141 Node* const undefined = jsgraph()->UndefinedConstant(); in ReduceGeneratorClose() 204 Node* vtrue = jsgraph()->FalseConstant(); in ReduceIsInstanceType() 216 jsgraph()->Constant(instance_type)); in ReduceIsInstanceType() 350 jsgraph()->HeapConstant(callable.code())); in Change() 356 Graph* JSIntrinsicLowering::graph() const { return jsgraph()->graph(); } in graph() 359 Isolate* JSIntrinsicLowering::isolate() const { return jsgraph()->isolate(); } in isolate() [all …]
|
D | pipeline.cc | 260 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function in v8::internal::compiler::PipelineData 1149 data->info()->osr_offset(), data->jsgraph(), frequency, in Run() 1190 data->jsgraph()->Dead()); in Run() 1197 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), in Run() 1204 &graph_reducer, data->jsgraph(), data->js_heap_broker(), in Run() 1218 &graph_reducer, data->jsgraph(), data->js_heap_broker(), flags, in Run() 1224 temp_zone, data->info(), data->jsgraph(), data->source_positions()); in Run() 1225 JSIntrinsicLowering intrinsic_lowering(&graph_reducer, data->jsgraph()); in Run() 1244 data->jsgraph()->GetCachedNodes(&roots); in Run() 1245 LoopVariableOptimizer induction_vars(data->jsgraph()->graph(), in Run() [all …]
|
D | bytecode-graph-builder.cc | 167 Node* undefined_constant = builder->jsgraph()->UndefinedConstant(); in Environment() 317 DCHECK_NE(values_[index], builder()->jsgraph()->OptimizedOutConstant()); in Merge() 319 builder()->jsgraph()->OptimizedOutConstant()); in Merge() 327 values_[index] = builder()->jsgraph()->OptimizedOutConstant(); in Merge() 333 builder()->jsgraph()->OptimizedOutConstant()); in Merge() 335 builder()->jsgraph()->OptimizedOutConstant()); in Merge() 341 values_[accumulator_base()] = builder()->jsgraph()->OptimizedOutConstant(); in Merge() 504 : builder()->jsgraph()->OptimizedOutConstant(); in Checkpoint() 519 JSGraph* jsgraph, CallFrequency& invocation_frequency, in BytecodeGraphBuilder() argument 524 jsgraph_(jsgraph), in BytecodeGraphBuilder() [all …]
|
D | type-narrowing-reducer.cc | 14 TypeNarrowingReducer::TypeNarrowingReducer(Editor* editor, JSGraph* jsgraph, in TypeNarrowingReducer() argument 17 jsgraph_(jsgraph), in TypeNarrowingReducer() 18 op_typer_(jsgraph->isolate(), js_heap_broker, zone()) {} in TypeNarrowingReducer() 82 Graph* TypeNarrowingReducer::graph() const { return jsgraph()->graph(); } in graph()
|
D | property-access-builder.cc | 22 Graph* PropertyAccessBuilder::graph() const { return jsgraph()->graph(); } in graph() 24 Isolate* PropertyAccessBuilder::isolate() const { return jsgraph()->isolate(); } in isolate() 27 return jsgraph()->common(); in common() 31 return jsgraph()->simplified(); in simplified() 163 Node* expected = jsgraph()->HeapConstant(value); in BuildCheckValue() 176 return jsgraph()->Constant(holder); in ResolveHolder() 203 Node* value = jsgraph()->Constant(JSReceiver::GetDataProperty(&it)); in TryBuildLoadConstantDataField()
|
D | js-inlining-heuristic.h | 18 OptimizedCompilationInfo* info, JSGraph* jsgraph, in JSInliningHeuristic() argument 22 inliner_(editor, local_zone, info, jsgraph, source_positions), in JSInliningHeuristic() 26 jsgraph_(jsgraph) {} in JSInliningHeuristic() 82 JSGraph* jsgraph() const { return jsgraph_; } in jsgraph() function
|
D | js-context-specialization.cc | 40 Node* value = jsgraph()->HeapConstant(function); in ReduceParameter() 154 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 175 return SimplifyJSLoadContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSLoadContext() 212 return SimplifyJSStoreContext(node, jsgraph()->Constant(concrete), depth); in ReduceJSStoreContext() 217 return jsgraph()->isolate(); in isolate()
|
D | memory-optimizer.cc | 18 MemoryOptimizer::MemoryOptimizer(JSGraph* jsgraph, Zone* zone, in MemoryOptimizer() argument 21 : jsgraph_(jsgraph), in MemoryOptimizer() 26 graph_assembler_(jsgraph, nullptr, nullptr, zone), in MemoryOptimizer() 376 Node* offset = jsgraph()->IntPtrConstant(access.offset - access.tag()); in VisitLoadField() 411 Node* offset = jsgraph()->IntPtrConstant(access.offset - access.tag()); in VisitStoreField() 441 jsgraph()->IntPtrConstant(element_size_shift)); in ComputeIndex() 446 jsgraph()->IntPtrConstant(fixed_offset)); in ComputeIndex() 539 Graph* MemoryOptimizer::graph() const { return jsgraph()->graph(); } in graph() 541 Isolate* MemoryOptimizer::isolate() const { return jsgraph()->isolate(); } in isolate() 544 return jsgraph()->common(); in common() [all …]
|