/art/test/549-checker-types-merge/src/ |
D | Main.java | 44 private Object testMergeNullContant(boolean cond) { in testMergeNullContant() argument 45 return cond ? null : new Main(); in testMergeNullContant() 51 private Object testMergeClasses(boolean cond, ClassExtendsA a, ClassExtendsB b) { in testMergeClasses() argument 53 return cond ? a : b; in testMergeClasses() 59 private Object testMergeClasses(boolean cond, ClassExtendsA a, ClassSuper b) { in testMergeClasses() argument 61 return cond ? a : b; in testMergeClasses() 67 private Object testMergeClasses(boolean cond, ClassSuper a, ClassSuper b) { in testMergeClasses() argument 69 return cond ? a : b; in testMergeClasses() 75 private Object testMergeClasses(boolean cond, ClassOtherSuper a, ClassSuper b) { in testMergeClasses() argument 77 return cond ? a : b; in testMergeClasses() [all …]
|
/art/compiler/optimizing/ |
D | code_generator_utils.cc | 116 HCondition* cond, 127 HCondition* cond, in IsComparedValueNonNegativeInBlock() argument 129 DCHECK(cond->HasInput(value)); in IsComparedValueNonNegativeInBlock() 135 if (cond->GetBlock() == target_block || in IsComparedValueNonNegativeInBlock() 136 !cond->GetBlock()->EndsWithIf() || in IsComparedValueNonNegativeInBlock() 137 cond->GetBlock()->GetLastInstruction()->InputAt(0) != cond) { in IsComparedValueNonNegativeInBlock() 143 HIf* if_instr = cond->GetBlock()->GetLastInstruction()->AsIf(); in IsComparedValueNonNegativeInBlock() 145 switch (cond->GetCondition()) { in IsComparedValueNonNegativeInBlock() 148 if (cond->GetLeft() == value) { in IsComparedValueNonNegativeInBlock() 151 if (IsNonNegativeUse(cond, cond->GetRight())) { in IsComparedValueNonNegativeInBlock() [all …]
|
D | pc_relative_fixups_x86.cc | 104 void VisitEqual(HEqual* cond) override { in VisitEqual() argument 105 BinaryFP(cond); in VisitEqual() 108 void VisitNotEqual(HNotEqual* cond) override { in VisitNotEqual() argument 109 BinaryFP(cond); in VisitNotEqual() 112 void VisitLessThan(HLessThan* cond) override { in VisitLessThan() argument 113 BinaryFP(cond); in VisitLessThan() 116 void VisitLessThanOrEqual(HLessThanOrEqual* cond) override { in VisitLessThanOrEqual() argument 117 BinaryFP(cond); in VisitLessThanOrEqual() 120 void VisitGreaterThan(HGreaterThan* cond) override { in VisitGreaterThan() argument 121 BinaryFP(cond); in VisitGreaterThan() [all …]
|
D | scheduler_arm.h | 113 bool CanGenerateTest(HCondition* cond); 114 void HandleGenerateConditionWithZero(IfCondition cond); 115 void HandleGenerateLongTestConstant(HCondition* cond); 116 void HandleGenerateLongTest(HCondition* cond); 118 void HandleGenerateTest(HCondition* cond); 119 void HandleGenerateConditionGeneric(HCondition* cond); 120 void HandleGenerateEqualLong(HCondition* cond); 121 void HandleGenerateConditionLong(HCondition* cond); 122 void HandleGenerateConditionIntegralOrNonPrimitive(HCondition* cond);
|
D | scheduler_arm.cc | 209 IfCondition cond = condition->GetCondition(); in HandleGenerateLongTestConstant() local 217 switch (cond) { in HandleGenerateLongTestConstant() 240 switch (cond) { in HandleGenerateLongTestConstant() 275 IfCondition cond = condition->GetCondition(); in HandleGenerateLongTest() local 277 switch (cond) { in HandleGenerateLongTest() 347 void SchedulingLatencyVisitorARM::HandleGenerateConditionGeneric(HCondition* cond) { in HandleGenerateConditionGeneric() argument 348 HandleGenerateTest(cond); in HandleGenerateConditionGeneric() 357 void SchedulingLatencyVisitorARM::HandleGenerateEqualLong(HCondition* cond) { in HandleGenerateEqualLong() argument 358 DCHECK_EQ(cond->GetLeft()->GetType(), DataType::Type::kInt64); in HandleGenerateEqualLong() 360 IfCondition condition = cond->GetCondition(); in HandleGenerateEqualLong() [all …]
|
D | dead_code_elimination.cc | 165 HInstruction* cond = ifs->InputAt(0); in RemoveNonNullControlDependences() local 167 if (throws == ifs->IfTrueSuccessor() && cond->IsEqual()) { in RemoveNonNullControlDependences() 169 } else if (throws == ifs->IfFalseSuccessor() && cond->IsNotEqual()) { in RemoveNonNullControlDependences() 174 DCHECK(cond->IsEqual() || cond->IsNotEqual()); in RemoveNonNullControlDependences() 175 HInstruction* obj = cond->InputAt(1); in RemoveNonNullControlDependences() 177 obj = cond->InputAt(0); in RemoveNonNullControlDependences() 178 } else if (!cond->InputAt(0)->IsNullConstant()) { in RemoveNonNullControlDependences()
|
D | bounds_check_elimination.cc | 629 IfCondition cond, in HandleIfBetweenTwoMonotonicValueRanges() argument 649 if (cond == kCondLT) { in HandleIfBetweenTwoMonotonicValueRanges() 653 } else if (cond == kCondLE) { in HandleIfBetweenTwoMonotonicValueRanges() 655 } else if (cond == kCondGT) { in HandleIfBetweenTwoMonotonicValueRanges() 657 } else if (cond == kCondGE) { in HandleIfBetweenTwoMonotonicValueRanges() 692 void HandleIf(HIf* instruction, HInstruction* left, HInstruction* right, IfCondition cond) { in HandleIf() argument 730 HandleIfBetweenTwoMonotonicValueRanges(instruction, left, right, cond, in HandleIf() 745 if (cond == kCondLT || cond == kCondLE) { in HandleIf() 747 int32_t compensation = (cond == kCondLT) ? -1 : 0; // upper bound is inclusive in HandleIf() 759 int32_t compensation = (cond == kCondLE) ? 1 : 0; // lower bound is inclusive in HandleIf() [all …]
|
D | code_generator_arm_vixl.cc | 971 inline vixl32::Condition ARMCondition(IfCondition cond) { in ARMCondition() argument 972 switch (cond) { in ARMCondition() 989 inline vixl32::Condition ARMUnsignedCondition(IfCondition cond) { in ARMUnsignedCondition() argument 990 switch (cond) { in ARMUnsignedCondition() 1008 inline vixl32::Condition ARMFPCondition(IfCondition cond, bool gt_bias) { in ARMFPCondition() argument 1013 switch (cond) { in ARMFPCondition() 1332 IfCondition cond = condition->GetCondition(); in GenerateLongTestConstant() local 1336 std::swap(cond, opposite); in GenerateLongTestConstant() 1347 int64_t value = AdjustConstantForCondition(Int64ConstantFrom(right), &cond, &opposite); in GenerateLongTestConstant() 1352 switch (cond) { in GenerateLongTestConstant() [all …]
|
D | codegen_test.cc | 696 for (int cond = kCondFirst; cond <= kCondLast; cond++) { in TEST_F() local 698 static_cast<IfCondition>(cond), i, j, DataType::Type::kInt32, target_config); in TEST_F() 709 for (int cond = kCondFirst; cond <= kCondLast; cond++) { in TEST_F() local 711 static_cast<IfCondition>(cond), i, j, DataType::Type::kInt64, target_config); in TEST_F()
|
D | bounds_check_elimination_test.cc | 362 IfCondition cond = kCondGE) { in BuildSSAGraph1() argument 395 if (cond == kCondGE) { in BuildSSAGraph1() 398 DCHECK(cond == kCondGT); in BuildSSAGraph1() 477 IfCondition cond = kCondLE) { in BuildSSAGraph2() argument 513 if (cond == kCondLE) { in BuildSSAGraph2() 516 DCHECK(cond == kCondLT); in BuildSSAGraph2() 587 IfCondition cond) { in BuildSSAGraph3() argument 622 if (cond == kCondGE) { in BuildSSAGraph3() 625 DCHECK(cond == kCondGT); in BuildSSAGraph3() 689 IfCondition cond = kCondGE) { in BuildSSAGraph4() argument [all …]
|
/art/test/540-checker-rtp-bug/src/ |
D | Main.java | 37 public static Final testKeepCheckCast(Object o, boolean cond) { in testKeepCheckCast() argument 39 while (cond) { in testKeepCheckCast() 41 cond = false; in testKeepCheckCast() 55 public static void testKeepInstanceOf(Object o, boolean cond) { in testKeepInstanceOf() argument 57 while (cond) { in testKeepInstanceOf() 59 cond = false; in testKeepInstanceOf() 79 public static String testNoInline(Object o, boolean cond) { in testNoInline() argument 81 while (cond) { in testNoInline() 83 cond = false; in testNoInline()
|
/art/test/570-checker-select/src/ |
D | Main.java | 37 public static int $noinline$BoolCond_IntVarVar(boolean cond, int x, int y) { in $noinline$BoolCond_IntVarVar() argument 38 return cond ? x : y; in $noinline$BoolCond_IntVarVar() 59 public static int $noinline$BoolCond_IntVarCst(boolean cond, int x) { in $noinline$BoolCond_IntVarCst() argument 60 return cond ? x : 1; in $noinline$BoolCond_IntVarCst() 81 public static int $noinline$BoolCond_IntCstVar(boolean cond, int y) { in $noinline$BoolCond_IntCstVar() argument 82 return cond ? 1 : y; in $noinline$BoolCond_IntCstVar() 104 public static long $noinline$BoolCond_LongVarVar(boolean cond, long x, long y) { in $noinline$BoolCond_LongVarVar() argument 105 return cond ? x : y; in $noinline$BoolCond_LongVarVar() 127 public static long $noinline$BoolCond_LongVarCst(boolean cond, long x) { in $noinline$BoolCond_LongVarCst() argument 128 return cond ? x : 1L; in $noinline$BoolCond_LongVarCst() [all …]
|
/art/test/481-regression-phi-cond/ |
D | Android.bp | 3 // Build rules for ART run-test `481-regression-phi-cond`. 16 name: "art-run-test-481-regression-phi-cond", 21 ":art-run-test-481-regression-phi-cond-expected-stdout", 22 ":art-run-test-481-regression-phi-cond-expected-stderr", 28 name: "art-run-test-481-regression-phi-cond-expected-stdout", 29 out: ["art-run-test-481-regression-phi-cond-expected-stdout.txt"], 36 name: "art-run-test-481-regression-phi-cond-expected-stderr", 37 out: ["art-run-test-481-regression-phi-cond-expected-stderr.txt"],
|
/art/test/476-checker-ctor-memory-barrier/src/ |
D | Main.java | 30 public ClassWithFinals(boolean cond) { in ClassWithFinals() argument 103 public InheritFromClassWithFinals(boolean cond) { in InheritFromClassWithFinals() argument 104 super(cond); in InheritFromClassWithFinals() 149 public HaveFinalsAndInheritFromClassWithFinals(boolean cond) { in HaveFinalsAndInheritFromClassWithFinals() argument 150 super(cond); in HaveFinalsAndInheritFromClassWithFinals()
|
/art/test/557-checker-ref-equivalent/src/ |
D | Main.java | 21 private void testRedundantPhiCycle(boolean cond) { in testRedundantPhiCycle() argument 24 if (cond) { in testRedundantPhiCycle() 33 private void testLoopPhisWithNullAndCrossUses(boolean cond) { in testLoopPhisWithNullAndCrossUses() argument 37 if (cond) { in testLoopPhisWithNullAndCrossUses()
|
/art/test/450-checker-types/src/ |
D | Main.java | 34 public int $inline$h(boolean cond) { in $inline$h() argument 35 Super obj = (cond ? this : null); in $inline$h() 601 private void updateNodesInTheSameBlockAsPhi(boolean cond) { in updateNodesInTheSameBlockAsPhi() argument 603 if (cond) { in updateNodesInTheSameBlockAsPhi() 647 private SuperInterface getWiderType(boolean cond, Interface a, OtherInterface b) { in getWiderType() argument 648 return cond ? a : b; in getWiderType() 660 private void testInlinerWidensReturnType(boolean cond, Interface a, OtherInterface b) { in testInlinerWidensReturnType() argument 661 getWiderType(cond, a, b).superInterfaceMethod(); in testInlinerWidensReturnType() 691 public void testThisArgumentMoreSpecific(boolean cond) { in testThisArgumentMoreSpecific() argument 695 ((Super) obj).$inline$h(cond); in testThisArgumentMoreSpecific() [all …]
|
/art/test/611-checker-simplify-if/src/ |
D | Main.java | 230 boolean cond = false; in testSwitch() 234 cond = true; in testSwitch() 238 cond = true; in testSwitch() 241 cond = false; in testSwitch() 244 if (cond) { in testSwitch()
|
/art/test/112-double-math/src/ |
D | Main.java | 18 public static double cond_neg_double(double value, boolean cond) { in cond_neg_double() argument 19 return cond ? -value : value; in cond_neg_double()
|
/art/runtime/interpreter/mterp/arm64/ |
D | floating_point.S | 72 %def fcmp(wide="", r1="s1", r2="s2", cond="lt"): 91 cneg w0, w0, $cond 191 % fcmp(wide="_WIDE", r1="d1", r2="d2", cond="cc") 194 % fcmp(wide="", r1="s1", r2="s2", cond="cc") 197 % fcmp(wide="_WIDE", r1="d1", r2="d2", cond="lt") 200 % fcmp(wide="", r1="s1", r2="s2", cond="lt")
|
/art/test/441-checker-inliner/src/ |
D | Main.java | 142 public static int InlineWithControlFlow(boolean cond) { in InlineWithControlFlow() argument 147 if (cond) { in InlineWithControlFlow()
|
/art/libartbase/base/ |
D | stl_util.h | 245 Filter cond, 247 : real_iter_(rl), cond_(cond), end_(end) { in real_iter_() 283 IterationRange<Iter> it, Filter cond) { in Filter() argument 285 auto start = std::find_if(it.begin(), end, cond); in Filter() 286 return MakeIterationRange(FilterIterator(start, cond, std::make_optional(end)), in Filter() 287 FilterIterator(end, cond, std::make_optional(end))); in Filter()
|
/art/compiler/utils/arm64/ |
D | jni_macro_assembler_arm64.h | 175 void TestGcMarking(JNIMacroLabel* label, JNIMacroUnaryCondition cond) override; 212 vixl::aarch64::Condition cond = vixl::aarch64::al); 223 vixl::aarch64::Condition cond = vixl::aarch64::al); 227 vixl::aarch64::Condition cond = vixl::aarch64::al);
|
D | jni_macro_assembler_arm64.cc | 80 void Arm64JNIMacroAssembler::AddConstant(XRegister rd, int32_t value, Condition cond) { in AddConstant() argument 81 AddConstant(rd, rd, value, cond); in AddConstant() 87 Condition cond) { in AddConstant() argument 88 if ((cond == al) || (cond == nv)) { in AddConstant() 98 ___ Csel(reg_x(rd), temp, reg_x(rd), cond); in AddConstant() 193 void Arm64JNIMacroAssembler::LoadImmediate(XRegister dest, int32_t value, Condition cond) { in LoadImmediate() argument 194 if ((cond == al) || (cond == nv)) { in LoadImmediate() 204 ___ Csel(reg_x(dest), temp, reg_x(dest), cond); in LoadImmediate() 206 ___ Csel(reg_x(dest), reg_x(XZR), reg_x(dest), cond); in LoadImmediate() 719 void Arm64JNIMacroAssembler::TestGcMarking(JNIMacroLabel* label, JNIMacroUnaryCondition cond) { in TestGcMarking() argument [all …]
|
/art/compiler/utils/arm/ |
D | assembler_arm_vixl.cc | 448 vixl32::Condition cond) { in AddConstantInIt() argument 451 ___ mov(cond, rd, rn); in AddConstantInIt() 453 ___ add(cond, rd, rn, value); in AddConstantInIt() 493 void ArmVIXLMacroAssembler::B(vixl32::Condition cond, vixl32::Label* label, bool is_far_target) { in B() argument 497 BPreferNear(cond, label); in B() 500 MacroAssembler::B(cond, label); in B()
|
/art/tools/veridex/ |
D | flow_analysis.cc | 167 #define IF_XX(cond, op) \ in GetBranchFlags() argument 168 case Instruction::IF_##cond: { \ in GetBranchFlags() 180 case Instruction::IF_##cond##Z: { \ in GetBranchFlags() 371 #define IF_XX(cond) \ in ProcessDexInstruction() argument 372 case Instruction::IF_##cond: break; \ in ProcessDexInstruction() 373 case Instruction::IF_##cond##Z: break in ProcessDexInstruction()
|