/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | hcr_circuit_builder.cpp | 23 GateRef CircuitBuilder::NoLabelCallRuntime(GateRef glue, GateRef depend, size_t index, std::vector<GateRef> &args, in NoLabelCallRuntime() argument 29 std::vector<GateRef> inputs { depend, target, glue }; in NoLabelCallRuntime() 65 auto depend = label->GetDepend(); in CallStub() local 69 result = Call(cs, glue, target, depend, args, hirGate, comment); in CallStub() 71 result = Call(cs, glue, target, depend, args, Circuit::NullGate(), comment); in CallStub() 76 GateRef CircuitBuilder::CallBuiltinRuntime(GateRef glue, GateRef depend, const std::vector<GateRef> &args, bool isNew) in CallBuiltinRuntime() argument 90 if (depend == Gate::InvalidGateRef) { in CallBuiltinRuntime() 91 depend = label->GetDepend(); in CallBuiltinRuntime() 93 GateRef result = Call(cs, glue, target, depend, args, Circuit::NullGate(), name.c_str()); in CallBuiltinRuntime() 97 GateRef CircuitBuilder::CallBuiltinRuntimeWithNewTarget(GateRef glue, GateRef depend, cons argument 115 Call(const CallSignature* cs, GateRef glue, GateRef target, GateRef depend, const std::vector<GateRef> &args, GateRef hirGate, const char* comment) Call() argument 176 auto depend = label->GetDepend(); CallBCHandler() local 188 auto depend = label->GetDepend(); CallBuiltin() local 200 auto depend = label->GetDepend(); CallBuiltinWithArgv() local 212 auto depend = label->GetDepend(); CallBCDebugger() local 217 CallRuntime(GateRef glue, int index, GateRef depend, const std::vector<GateRef> &args, GateRef hirGate, const char* comment) CallRuntime() argument 242 auto depend = label->GetDepend(); CallRuntimeVarargs() local 248 CallNGCRuntime(GateRef glue, int index, GateRef depend, const std::vector<GateRef> &args, GateRef hirGate, const char* comment) CallNGCRuntime() argument 304 FastCallOptimized(GateRef glue, GateRef code, GateRef depend, const std::vector<GateRef> &args, GateRef hirGate) FastCallOptimized() argument 322 CallOptimized(GateRef glue, GateRef code, GateRef depend, const std::vector<GateRef> &args, GateRef hirGate) CallOptimized() argument [all...] |
H A D | circuit_builder-inl.h | 116 auto depend = GetCurrentLabel()->GetDepend(); in Return() local 117 return Return(control, depend, value); in Return() 123 auto depend = GetCurrentLabel()->GetDepend(); in Return() local 124 return ReturnVoid(control, depend); in Return() 156 void CircuitBuilder::SetDepend(GateRef depend) in SetDepend() argument 158 GetCurrentLabel()->SetDepend(depend); in SetDepend()
|
H A D | lcr_circuit_builder.cpp | 114 auto depend = label->GetDepend(); in Store() local 120 MachineType::NOVALUE, { depend, glue, base, offset, value }, type.GetGateType()); in Store() 127 auto depend = label->GetDepend(); in StoreWithoutBarrier() local 130 MachineType::NOVALUE, { depend, addr, value }, type.GetGateType()); in StoreWithoutBarrier() 138 auto depend = label->GetDepend(); in Load() local 142 { depend, val }, type.GetGateType()); in Load() 147 GateRef CircuitBuilder::Load(VariableType type, GateRef base, GateRef offset, GateRef depend, in Load() argument 153 { depend, val }, type.GetGateType()); in Load() 160 auto depend = label->GetDepend(); in Load() local 163 { depend, add in Load() [all...] |
H A D | escape_analysis_editor.cpp | 22 GateRef depend = acc_.GetDep(gate); in VisitFinishAllocate() local 25 visitor_->RelaxStateAndDepend(depend); in VisitFinishAllocate()
|
H A D | later_elimination.cpp | 62 if (acc_.GetDependCount(gate) == 1) { // 1: depend in is 1 in VisitGate() 103 // use loop head as depend chain in TryEliminateDependSelector() 109 auto depend = acc_.GetDep(gate, i); in TryEliminateDependSelector() local 110 auto dependChain = GetDependChain(depend); in TryEliminateDependSelector() 116 // all depend done. in TryEliminateDependSelector() 117 auto depend = acc_.GetDep(gate); in TryEliminateDependSelector() local 118 auto dependChain = GetDependChain(depend); in TryEliminateDependSelector()
|
H A D | combined_pass_visitor.cpp | 65 GateRef depend = Circuit::NullGate(); in ReplaceGate() local 68 depend = acc_.GetDep(gate); in ReplaceGate() 75 ReplaceGate(gate, StateDepend {state, depend}, replacement); in ReplaceGate() 82 auto depend = stateDepend.Depend(); in ReplaceGate() local 94 ASSERT(depend != Circuit::NullGate()); in ReplaceGate() 95 it = acc_.ReplaceIn(it, depend); in ReplaceGate()
|
H A D | bytecode_circuit_builder.cpp | 787 auto depend = frameStateBuilder_.GetCurrentDepend(); in MergeThrowGate() local 790 auto dependRelay = circuit_->NewGate(circuit_->DependRelay(), {ifSuccess, depend}); in MergeThrowGate() 791 auto ifException = circuit_->NewGate(circuit_->IfException(), {state, depend}); in MergeThrowGate() 798 depend = dependRelay; in MergeThrowGate() 804 { state, depend, constant, circuit_->GetReturnRoot() }); in MergeThrowGate() 811 auto depend = frameStateBuilder_.GetCurrentDepend(); in MergeExceptionGete() local 813 auto dependRelay = circuit_->NewGate(circuit_->DependRelay(), {ifSuccess, depend}); in MergeExceptionGete() 816 auto ifException = circuit_->NewGate(circuit_->IfException(), {state, depend}); in MergeExceptionGete() 824 depend = dependRelay; in MergeExceptionGete() 825 frameStateBuilder_.UpdateStateDepend(ifSuccess, depend); in MergeExceptionGete() 833 GateRef depend = frameStateBuilder_.GetCurrentDepend(); NewJSGate() local 876 GateRef depend = frameStateBuilder_.GetCurrentDepend(); NewJump() local 925 GateRef depend = frameStateBuilder_.GetCurrentDepend(); NewReturn() local 995 GateRef depend = frameStateBuilder_.GetCurrentDepend(); BuildSubCircuit() local 1007 GateRef depend = frameStateBuilder_.GetCurrentDepend(); BuildSubCircuit() local 1064 GateRef depend = frameStateBuilder_.GetCurrentDepend(); GenDeoptAndReturnForOsrLoopExit() local 1090 GateRef depend = frameStateBuilder_.GetCurrentDepend(); HandleOsrLoopBody() local 1155 GateRef depend = frameStateBuilder_.GetCurrentDepend(); BuildOsrCircuit() local [all...] |
H A D | circuit_builder_helper.h | 179 inline void SetDepend(GateRef depend) in SetDepend() argument 181 return impl_->SetDepend(depend); in SetDepend() 226 void SetDepend(GateRef depend) in SetDepend() argument 228 depend_ = depend; in SetDepend() 353 GateRef depend = currentLabel_->GetDepend(); in SubCfgEntry() local 357 currentLabel_->SetDepend(depend); in SubCfgEntry() 364 GateRef depend = currentLabel_->GetDepend(); in SubCfgExit() local 368 currentLabel_->SetDepend(depend); in SubCfgExit()
|
H A D | dead_code_elimination.cpp | 61 auto depend = acc_.GetDep(gate, i); in EliminateDependSelector() local 62 if (acc_.IsDead(depend)) { in EliminateDependSelector() 77 GateRef depend = acc_.GetDep(gate); in EliminateIfException() local 78 if (acc_.IsDead(depend)) { in EliminateIfException()
|
H A D | range_guard.cpp | 40 if (acc_.GetDependCount(gate) == 1) { // 1: depend in is 1 in VisitGate() 70 auto depend = acc_.GetDep(gate, i); in TraverseDependSelector() local 71 auto dependChain = GetDependChain(depend); in TraverseDependSelector() 77 // all depend done. in TraverseDependSelector() 78 auto depend = acc_.GetDep(gate); in TraverseDependSelector() local 79 auto dependChain = GetDependChain(depend); in TraverseDependSelector()
|
H A D | loop_peeling.cpp | 33 GateRef depend = *it; in CopyLoopExit() local 34 GateRef copyDepend = GetCopy(acc_.GetDep(depend)); in CopyLoopExit() 35 GateRef selector = circuit_->NewGate(circuit_->DependSelector(numIns), {merge, depend, copyDepend}); in CopyLoopExit() 36 acc_.UpdateAllUses(depend, selector); in CopyLoopExit() 37 acc_.ReplaceIn(selector, 1, depend); // 0: index of exit depend in CopyLoopExit() 46 acc_.ReplaceIn(selector, 1, value); // 0: index of exit depend in CopyLoopExit() 128 GateRef backward = acc_.GetIn(*it, 2); // 2: index of depend or value back in CopyLoopHeader() 129 acc_.ReplaceIn(*it, 1, GetCopy(backward)); // 1: index of depend or value forward in CopyLoopHeader()
|
H A D | early_elimination.cpp | 28 DependInfoNode* EarlyElimination::GetLoopDependInfo(GateRef depend) in GetLoopDependInfo() argument 30 auto depIn = acc_.GetDep(depend); in GetLoopDependInfo() 39 workList.push(depend); in GetLoopDependInfo() 40 visited.insert(acc_.GetDep(depend)); in GetLoopDependInfo() 108 if (acc_.GetDependCount(gate) == 1) { // 1: depend in is 1 in VisitGate() 206 auto depend = acc_.GetDep(gate, i); in TryEliminateDependSelector() local 207 auto dependChain = GetDependChain(depend); in TryEliminateDependSelector() 213 // all depend done. in TryEliminateDependSelector() 214 auto depend = acc_.GetDep(gate); in TryEliminateDependSelector() local 215 auto dependChain = GetDependChain(depend); in TryEliminateDependSelector() [all...] |
H A D | lexical_env_specialization_pass.cpp | 48 if (acc_.GetDependCount(gate) == 1) { // 1: depend in is 1 in VisitGate() 71 // use loop head as depend chain in VisitDependSelector() 77 auto depend = acc_.GetDep(gate, i); in VisitDependSelector() local 78 auto dependChain = GetDependChain(depend); in VisitDependSelector() 84 // all depend done. in VisitDependSelector() 85 auto depend = acc_.GetDep(gate); in VisitDependSelector() local 86 auto dependChain = GetDependChain(depend); in VisitDependSelector()
|
H A D | ts_inline_lowering.h | 116 void ReplaceHirAndDeleteState(GateRef gate, GateRef state, GateRef depend, GateRef value); 117 GateRef MergeAllReturn(const std::vector<GateRef> &returnVector, GateRef &state, GateRef &depend); 122 GateRef TraceInlineFunction(GateRef glue, GateRef depend, std::vector<GateRef> &args, GateRef callGate);
|
H A D | ts_inline_lowering.cpp | 358 auto depend = currentLabel->GetDepend(); in BuildAccessor() local 361 { state, depend, receiver, builder_.Int32(holderHCIndex), unsharedConstPool, frameState }, GateType::AnyType()); in BuildAccessor() 385 GateRef TSInlineLowering::MergeAllReturn(const std::vector<GateRef> &returnVector, GateRef &state, GateRef &depend) in MergeAllReturn() argument 404 depend = circuit_->NewGate(circuit_->DependSelector(numOfIns), dependList); in MergeAllReturn() 437 GateRef TSInlineLowering::TraceInlineFunction(GateRef glue, GateRef depend, std::vector<GateRef> &args, in TraceInlineFunction() argument 441 GateRef result = builder_.NoLabelCallRuntime(glue, depend, index, args, callGate); in TraceInlineFunction() 452 GateRef depend = Circuit::NullGate(); in ReplaceReturnGate() local 457 depend = acc_.GetDep(returnGate); in ReplaceReturnGate() 462 value = MergeAllReturn(returnVector, state, depend); in ReplaceReturnGate() 465 ReplaceHirAndDeleteState(callGate, state, depend, valu in ReplaceReturnGate() 468 ReplaceHirAndDeleteState(GateRef gate, GateRef state, GateRef depend, GateRef value) ReplaceHirAndDeleteState() argument [all...] |
H A D | gate_accessor.h | 31 explicit StateDepend(GateRef state, GateRef depend) in StateDepend() argument 32 : state_(state), depend_(depend) {} in StateDepend() 49 void SetDepend(GateRef depend) in SetDepend() argument 51 depend_ = depend; in SetDepend() 483 void ReplaceInAfterInsert(GateRef state, GateRef depend, GateRef newGate); 495 GateRef GetInitialEnvGate(GateRef depend, GateRef jsFunc) const; 546 void ReplaceGate(GateRef gate, GateRef state, GateRef depend, GateRef value); 631 void ExceptionReturn(GateRef state, GateRef depend);
|
H A D | gate_accessor.cpp | 1229 void GateAccessor::ExceptionReturn(GateRef state, GateRef depend) in ExceptionReturn() argument 1233 builder.Return(state, depend, constant); in ExceptionReturn() 1423 auto depend = GetDep(gate); in ReplaceOrNewDependIn() 1424 if (depend == Circuit::NullGate()) { in ReplaceOrNewDependIn() 1458 GateRef GateAccessor::GetInitialEnvGate(GateRef depend, GateRef jsFunc) const in GetInitialEnvGate() argument 1460 return circuit_->GetInitialEnvGate(depend, jsFunc); in GetInitialEnvGate() 1559 void GateAccessor::ReplaceGate(GateRef gate, GateRef state, GateRef depend, GateRef value) in ReplaceGate() argument 1575 ASSERT(depend != Circuit::NullGate()); in ReplaceGate() 1576 useIt = ReplaceIn(useIt, depend); in ReplaceGate() 1593 GateRef depend in ReplaceGate() local 1610 auto depend = stateDepend.Depend(); ReplaceGate() local 1649 ReplaceInAfterInsert(GateRef state, GateRef depend, GateRef newGate) ReplaceInAfterInsert() argument 1902 GateRef depend = Circuit::NullGate(); GetDependSelectorFromMerge() local [all...] |
H A D | graph_editor.cpp | 49 GateRef depend = acc_.GetDep(gate); in ReplaceGate() local 50 useIt = acc_.ReplaceIn(useIt, depend); in ReplaceGate()
|
H A D | circuit_builder.h | 197 GateRef DependRelay(GateRef state, GateRef depend); 212 GateRef Return(GateRef state, GateRef depend, GateRef value); 213 GateRef ReturnVoid(GateRef state, GateRef depend); 218 GateRef LoopExitDepend(GateRef state, GateRef depend); 435 GateRef CallRuntime(GateRef glue, int index, GateRef depend, const std::vector<GateRef> &args, GateRef hirGate, 439 GateRef CallNGCRuntime(GateRef glue, int index, GateRef depend, const std::vector<GateRef> &args, 441 GateRef FastCallOptimized(GateRef glue, GateRef code, GateRef depend, const std::vector<GateRef> &args, 443 GateRef CallOptimized(GateRef glue, GateRef code, GateRef depend, const std::vector<GateRef> &args, 447 GateRef CallBuiltinRuntime(GateRef glue, GateRef depend, const std::vector<GateRef> &args, bool isNew = false); 448 GateRef CallBuiltinRuntimeWithNewTarget(GateRef glue, GateRef depend, cons [all...] |
H A D | async_function_lowering.cpp | 292 LOG_COMPILER(FATAL) << "Can not find depend-selector from loopbegin";
in GetDependPhiFromLoopBegin() 311 auto depend = bb.dependCache;
in GetEntryBBDependOut() local 312 if (depend == Circuit::NullGate()) {
in GetEntryBBDependOut() 315 return depend;
in GetEntryBBDependOut()
|
H A D | frame_states.h | 115 GateRef depend; 130 void UpdateStateDepend(GateRef state, GateRef depend);
|
H A D | slowpath_lowering.cpp | 151 GateRef depend = builder_.GetDepend(); in LowerToJSCall() local 152 ReplaceHirWithPendingException(hirGate, stateInGate, depend, *res); in LowerToJSCall() 156 GateRef state, GateRef depend, GateRef value) in ReplaceHirWithPendingException() 162 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirWithPendingException() 163 GateRef sDepend = builder_.DependRelay(ifFalse, depend); in ReplaceHirWithPendingException() 187 // copy depend-wire of hirGate to value in ReplaceHirWithValue() 188 GateRef depend = builder_.GetDepend(); in ReplaceHirWithValue() local 197 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirWithValue() 198 GateRef sDepend = builder_.DependRelay(ifFalse, depend); in ReplaceHirWithValue() 217 GateRef depend in ReplaceHirToThrowCall() local 155 ReplaceHirWithPendingException(GateRef hirGate, GateRef state, GateRef depend, GateRef value) ReplaceHirWithPendingException() argument 1258 GateRef depend = acc_.GetDep(hirGate); LowerExceptionHandler() local 3421 auto depend = builder_.GetDepend(); LowerNewFastCall() local 3430 auto depend = builder_.GetDepend(); LowerNewFastCall() local 3444 auto depend = builder_.GetDepend(); LowerNewFastCall() local 3453 auto depend = builder_.GetDepend(); LowerNewFastCall() local 3464 auto depend = builder_.GetDepend(); LowerNewFastCall() local 3509 auto depend = builder_.GetDepend(); LowerFastCall() local 3520 auto depend = builder_.GetDepend(); LowerFastCall() local 3538 auto depend = builder_.GetDepend(); LowerFastCall() local 3549 auto depend = builder_.GetDepend(); LowerFastCall() local 3563 auto depend = builder_.GetDepend(); LowerFastCall() local 3571 auto depend = builder_.GetDepend(); LowerFastCall() local 3590 auto depend = builder_.GetDepend(); LowerTypedCall() local 3607 auto depend = builder_.GetDepend(); LowerTypedFastCall() local [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
H A D | dead_code_elimination_test.cpp | 45 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() local 51 auto trueReturn = circuit.NewGate(circuit.Return(), {ifTrue, depend, arg0, circuit.GetReturnRoot()}); in HWTEST_F_L0() 52 auto falseReturn = circuit.NewGate(circuit.Return(), {ifFalse, depend, arg0, circuit.GetReturnRoot()}); in HWTEST_F_L0() 75 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() local 86 auto circuitReturn = circuit.NewGate(circuit.Return(), {merge, depend, valueSelector, circuit.GetReturnRoot()}); in HWTEST_F_L0() 107 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() local 121 auto circuitReturn = circuit.NewGate(circuit.Return(), {merge, depend, valueSelector, circuit.GetReturnRoot()}); in HWTEST_F_L0()
|
H A D | combined_pass_visitor_test.cpp | 51 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() local 63 {merge, depend, valueSelector, arg2}, GateType::AnyType()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
H A D | IrToPicture.js | 21 depend: 1, 31 static DEPEND = 1 << INTYPE.depend; 41 static LINE_TYPE = ['state', 'depend', 'value', 'framestate', 'root']; 49 if (XTools.CONFIG.OpTypeDepend.indexOf(ir.op) >= 0 || ir.in[INTYPE.depend].length > 0) { 50 return 'depend'; 65 if (XTools.CONFIG.OpTypeDepend.indexOf(ir.op) >= 0 || ir.in[INTYPE.depend].length > 0) {
|