Home
last modified time | relevance | path

Searched refs:newGate (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/
Dloop_peeling.cpp80 GateRef newGate = Circuit::NullGate(); in CopySelector() local
83 newGate = circuit_->NewGate(circuit_->ValueSelector(numLoopbacks), in CopySelector()
86 newGate = circuit_->NewGate(circuit_->DependSelector(numLoopbacks), inList); in CopySelector()
88 acc_.NewIn(newGate, 0, stateMerge); // 0: is state in CopySelector()
94 acc_.NewIn(newGate, i - 1, GetCopy(input)); // 1: is state in CopySelector()
96 return newGate; in CopySelector()
180 GateRef newGate = circuit_->NewGate(acc_.GetMetaData(gate), inList); in SetCopy() local
181 acc_.SetGateType(newGate, acc_.GetGateType(gate)); in SetCopy()
182 acc_.SetMachineType(newGate, acc_.GetMachineType(gate)); in SetCopy()
183 copies_[gate] = newGate; in SetCopy()
[all …]
Dinstruction_combine.cpp138 GateRef InstructionCombine::ReplaceOld(GateRef gate, GateRef newGate) in ReplaceOld() argument
140 acc_.UpdateAllUses(gate, newGate); in ReplaceOld()
141 return newGate; in ReplaceOld()
618 auto newGate = builder_.Int32Sub(m.Right().Gate(), mleft.Right().Gate()); in ReduceInt32Add() local
619 return ReplaceOld(gate, newGate); in ReduceInt32Add()
627 auto newGate = builder_.Int32Sub(m.Left().Gate(), mright.Right().Gate()); in ReduceInt32Add() local
628 return ReplaceOld(gate, newGate); in ReduceInt32Add()
660 auto newGate = in ReduceInt64Sub() local
662 return ReplaceOld(gate, newGate); in ReduceInt64Sub()
683 auto newGate = in ReduceInt32Sub() local
[all …]
Dhcr_circuit_builder.cpp414 …GateRef newGate = GetCircuit()->NewGate(circuit_->CreateArray(accessor.ToValue()), MachineType::I6… in CreateArray() local
417 currentLabel->SetControl(newGate); in CreateArray()
418 currentLabel->SetDepend(newGate); in CreateArray()
419 return newGate; in CreateArray()
430 GateRef newGate = GetCircuit()->NewGate(circuit_->CreateArrayWithBuffer(accessor.ToValue()), in CreateArrayWithBuffer() local
435 currentLabel->SetControl(newGate); in CreateArrayWithBuffer()
436 currentLabel->SetDepend(newGate); in CreateArrayWithBuffer()
437 return newGate; in CreateArrayWithBuffer()
485 GateRef newGate = GetCircuit()->NewGate(circuit_->StoreModuleVar(), MachineType::I64, in StoreModuleVar() local
487 currentLabel->SetControl(newGate); in StoreModuleVar()
[all …]
Dslowpath_lowering.cpp814 …GateRef newGate = LowerCallRuntime(gate, id, {acc_.GetValueIn(gate, 0), acc_.GetValueIn(gate, 1)}); in LowerCreateIterResultObj() local
815 ReplaceHirWithValue(gate, newGate); in LowerCreateIterResultObj()
905 GateRef newGate = LowerCallRuntime(gate, id, { genObj, value }); in LowerSuspendGenerator() local
906 ReplaceHirWithValue(gate, newGate); in LowerSuspendGenerator()
914 …GateRef newGate = LowerCallRuntime(gate, id, {acc_.GetValueIn(gate, 0), acc_.GetValueIn(gate, 1)}); in LowerAsyncFunctionAwaitUncaught() local
915 ReplaceHirWithValue(gate, newGate); in LowerAsyncFunctionAwaitUncaught()
924 …GateRef newGate = LowerCallRuntime(gate, id, {acc_.GetValueIn(gate, 0), acc_.GetValueIn(gate, 1), … in LowerAsyncFunctionResolve() local
925 ReplaceHirWithValue(gate, newGate); in LowerAsyncFunctionResolve()
934 …GateRef newGate = LowerCallRuntime(gate, id, {acc_.GetValueIn(gate, 0), acc_.GetValueIn(gate, 1), … in LowerAsyncFunctionReject() local
935 ReplaceHirWithValue(gate, newGate); in LowerAsyncFunctionReject()
[all …]
Dcircuit_builder.cpp447 auto newGate = GetCircuit()->NewGate(circuit_->GetConstPool(), MachineType::I64, in GetConstPool() local
450 currentLabel->SetDepend(newGate); in GetConstPool()
451 return newGate; in GetConstPool()
458 auto newGate = GetCircuit()->NewGate(circuit_->GetGlobalEnv(), MachineType::I64, in GetGlobalEnv() local
461 currentLabel->SetDepend(newGate); in GetGlobalEnv()
462 return newGate; in GetGlobalEnv()
469 auto newGate = GetCircuit()->NewGate(circuit_->GetGlobalEnvObj(index), MachineType::I64, in GetGlobalEnvObj() local
472 currentLabel->SetDepend(newGate); in GetGlobalEnvObj()
473 return newGate; in GetGlobalEnvObj()
480 auto newGate = GetCircuit()->NewGate(circuit_->GetGlobalEnvObjHClass(index), MachineType::I64, in GetGlobalEnvObjHClass() local
[all …]
Dasync_function_lowering.cpp178 GateRef newGate = circuit_->NewGate(circuit_->Merge(2), in UpdateValueSelector() local
188 {newGate, restoreOffset, emptyOffsetGate}, in UpdateValueSelector()
192 accessor_.ReplaceStateIn(prevLoopBeginGate, newGate); in UpdateValueSelector()
210 {newGate, undefinedGate, firstValueGate}, in UpdateValueSelector()
220 … {newGate, circuit_->GetDependRoot(), dependGate}); in UpdateValueSelector()
Dmcr_circuit_builder.cpp788 auto newGate = GetCircuit()->NewGate(circuit_->TaggedIsHeapObject(), MachineType::I1, in TaggedIsHeapObjectOp() local
791 currentLabel->SetDepend(newGate); in TaggedIsHeapObjectOp()
792 return newGate; in TaggedIsHeapObjectOp()
800 …auto newGate = GetCircuit()->NewGate(circuit_->IsSpecificObjectType(static_cast<int32_t>(type)), M… in IsSpecificObjectType() local
803 currentLabel->SetDepend(newGate); in IsSpecificObjectType()
804 return newGate; in IsSpecificObjectType()
812 auto newGate = GetCircuit()->NewGate(circuit_->IsMarkerCellValid(), MachineType::I1, in IsMarkerCellValidOp() local
815 currentLabel->SetDepend(newGate); in IsMarkerCellValidOp()
816 return newGate; in IsMarkerCellValidOp()
874 GateRef newGate = GetCircuit()->NewGate(circuit_->StartAllocate(), MachineType::I64, in StartAllocate() local
[all …]
Dinstruction_combine.h83 GateRef ReplaceOld(GateRef gate, GateRef newGate);
Dcircuit.cpp124 auto newGate = new (gateSpace) Gate(meta, gateCount_++, inPtrList.data(), machineType, type); in NewGate() local
126 allGates_.push_back(GetGateRef(newGate)); in NewGate()
128 GateRef result = GetGateRef(newGate); in NewGate()
Darray_bounds_check_elimination.h156 void ReplaceIn(GateRef stateIn, GateRef dependIn, GateRef newGate);
Dgate_accessor.cpp1536 void GateAccessor::ReplaceInAfterInsert(GateRef state, GateRef depend, GateRef newGate) in ReplaceInAfterInsert() argument
1540 if (IsStateIn(useIt) && (*useIt != newGate)) { in ReplaceInAfterInsert()
1541 ASSERT(newGate != Circuit::NullGate()); in ReplaceInAfterInsert()
1548 useIt = ReplaceIn(useIt, newGate); in ReplaceInAfterInsert()
1556 if (IsDependIn(useIt) && (*useIt != newGate)) { in ReplaceInAfterInsert()
1557 ASSERT(newGate != Circuit::NullGate()); in ReplaceInAfterInsert()
1558 useIt = ReplaceIn(useIt, newGate); in ReplaceInAfterInsert()
Dmcr_lowering.cpp238 GateRef newGate = builder_.GetConstPoolFromFunction(jsFunc); in LowerGetConstPool() local
240 acc_.UpdateAllUses(gate, newGate); in LowerGetConstPool()
Dgate_accessor.h474 void ReplaceInAfterInsert(GateRef state, GateRef depend, GateRef newGate);