/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
H A D | dead_code_elimination_test.cpp | 49 auto ifTrue = circuit.NewGate(circuit.IfTrue(), {ifBranch}); in HWTEST_F_L0() local 51 auto trueReturn = circuit.NewGate(circuit.Return(), {ifTrue, depend, arg0, circuit.GetReturnRoot()}); in HWTEST_F_L0() 59 EXPECT_TRUE(acc.IsNop(ifTrue)); in HWTEST_F_L0() 114 auto ifTrue = circuit.NewGate(circuit.IfTrue(), {ifBranch}); in HWTEST_F_L0() local 116 auto ifBranch2 = circuit.NewGate(circuit.IfBranch(0), {ifTrue, icmp}); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | async_function_lowering.cpp | 91 GateRef ifTrue = circuit_->NewGate(circuit_->IfTrue(), {ifBranch});
in RebuildGeneratorCfg() local 93 GateRef ifTrueDepend = builder_.DependRelay(ifTrue, restoreOffsetGate);
in RebuildGeneratorCfg() 96 accessor_.ReplaceStateIn(resumeGate, ifTrue);
in RebuildGeneratorCfg() 103 loopBeginStateIn = ifTrue;
in RebuildGeneratorCfg() 135 GateRef ifTrue = circuit_->NewGate(circuit_->IfTrue(), {ifBranch});
in RebuildGeneratorCfg() local 140 accessor_.ReplaceStateIn(resumeGate, ifTrue);
in RebuildGeneratorCfg() 150 UpdateValueSelector(prevLoopBeginGate, ifTrue, prevBcOffsetPhiGate, false);
in RebuildGeneratorCfg()
|
H A D | post_schedule.cpp | 276 GateRef ifTrue = builder_.GetState(); in LoweringHeapAllocAndPrepareScheduleGate() 310 PrepareToScheduleNewGate(ifTrue, failBBGates); in LoweringHeapAllocAndPrepareScheduleGate() 538 GateRef ifTrue = isHeapObject.GetControl(); in LoweringStoreUnknownBarrierAndPrepareScheduleGate() local 572 PrepareToScheduleNewGate(ifTrue, barrierBBGates); in LoweringStoreUnknownBarrierAndPrepareScheduleGate()
|
H A D | builtins_lowering.cpp | 189 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceHirWithValue() local 191 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirWithValue() 194 StateDepend exception(ifTrue, eDepend); in ReplaceHirWithValue()
|
H A D | ntype_hcr_lowering.cpp | 350 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceGateWithPendingException() local 352 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceGateWithPendingException() 356 StateDepend exception(ifTrue, eDepend); in ReplaceGateWithPendingException()
|
H A D | bytecode_circuit_builder.cpp | 890 auto ifTrue = circuit_->NewGate(circuit_->IfTrue(), {gate}); in NewJump() local 891 auto trueRelay = circuit_->NewGate(circuit_->DependRelay(), {ifTrue, gate}); in NewJump() 900 frameStateBuilder_.UpdateStateDepend(ifTrue, trueRelay); in NewJump()
|
H A D | slowpath_lowering.cpp | 160 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceHirWithPendingException() local 162 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirWithPendingException() 166 StateDepend exception(ifTrue, eDepend); in ReplaceHirWithPendingException() 195 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceHirWithValue() local 197 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirWithValue() 200 StateDepend exception(ifTrue, eDepend); in ReplaceHirWithValue() 219 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceHirToThrowCall() local 221 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirToThrowCall() 225 StateDepend exception(ifTrue, eDepend); in ReplaceHirToThrowCall() 2123 Label &ifTrue in LowerConditionJump() local [all...] |
H A D | native_inline_lowering.cpp | 1080 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceGateWithPendingException() local 1082 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceGateWithPendingException() 1085 StateDepend exception(ifTrue, eDepend); in ReplaceGateWithPendingException()
|
H A D | circuit_builder.cpp | 254 GateRef ifTrue = IfTrue(ifBranch); in Branch() local 256 trueLabel->MergeControl(ifTrue); in Branch()
|
H A D | typed_hcr_lowering.cpp | 1686 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceHirWithPendingException() local 1688 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceHirWithPendingException() 1692 StateDepend exception(ifTrue, eDepend); in ReplaceHirWithPendingException() 2760 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceGateWithPendingException() local 2762 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceGateWithPendingException() 2766 StateDepend exception(ifTrue, eDepend); in ReplaceGateWithPendingException()
|
H A D | typed_native_inline_lowering.cpp | 3190 GateRef ifTrue = builder_.IfTrue(ifBranch); in ReplaceGateWithPendingException() local 3192 GateRef eDepend = builder_.DependRelay(ifTrue, depend); in ReplaceGateWithPendingException() 3195 StateDepend exception(ifTrue, eDepend); in ReplaceGateWithPendingException()
|
H A D | stub_builder.cpp | 73 GateRef ifTrue = env_->GetBuilder()->IfTrue(ifBranch); in BranchPredict() local 75 trueLabel->MergeControl(ifTrue); in BranchPredict()
|
/arkcompiler/runtime_core/compiler/tests/js/ |
H A D | branchElimination.js | 29 function ifTrue(a) { function
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | ETSGen.cpp | 760 void ETSGen::TestIsInstanceConstant(const ir::AstNode *node, Label *ifTrue, VReg srcReg, checker::Type const *target) in TestIsInstanceConstant() argument 774 BranchIfTrue(node, ifTrue); in TestIsInstanceConstant() 783 auto [ifTrue, ifFalse] = label; in TestIsInstanceConstituent() 786 TestIsInstanceConstant(node, ifTrue, srcReg, target); in TestIsInstanceConstituent() 792 BranchIfNull(node, ifTrue); in TestIsInstanceConstituent() 797 BranchIfTrue(node, ifTrue); in TestIsInstanceConstituent() 803 BranchIfTrue(node, ifTrue); in TestIsInstanceConstituent() 810 JumpTo(node, ifTrue); in TestIsInstanceConstituent() 815 BranchIfTrue(node, ifTrue); in TestIsInstanceConstituent() 825 Label *ifTrue) in BranchIfIsInstance() 824 BranchIfIsInstance(const ir::AstNode *const node, const VReg srcReg, const checker::Type *target, Label *ifTrue) BranchIfIsInstance() argument 872 auto ifTrue = AllocLabel(); IsInstance() local 966 auto ifTrue = AllocLabel(); CheckedReferenceNarrowing() local 2168 HandleLooseNullishEquality(const ir::AstNode *node, VReg lhs, VReg rhs, Label *ifFalse, Label *ifTrue) HandleLooseNullishEquality() argument 2226 auto ifTrue = AllocLabel(); RefEqualityLoose() local 2238 auto ifTrue = AllocLabel(); RefEqualityLoose() local [all...] |
H A D | ETSGen.h | 94 void BranchIfIsInstance(const ir::AstNode *node, VReg srcReg, const checker::Type *target, Label *ifTrue); 254 void BranchIfTrue(const ir::AstNode *node, Label *ifTrue) in BranchIfTrue() argument 256 Sa().Emit<Jnez>(node, ifTrue); in BranchIfTrue() 687 void TestIsInstanceConstant(const ir::AstNode *node, Label *ifTrue, VReg srcReg, checker::Type const *target); 692 void HandleLooseNullishEquality(const ir::AstNode *node, VReg lhs, VReg rhs, Label *ifFalse, Label *ifTrue);
|