/art/test/412-new-array/src/ |
H A D | TestCase.java | 50 public static void assertTrue(String message, boolean condition) { argument 51 if (!condition) { 56 public static void assertTrue(boolean condition) { argument 57 assertTrue("Expected true", condition); 60 public static void assertFalse(String message, boolean condition) { argument 61 if (condition) { 66 public static void assertFalse(boolean condition) { argument 67 assertFalse("Expected false", condition);
|
/art/test/414-static-fields/src/ |
H A D | TestCase.java | 50 public static void assertTrue(String message, boolean condition) { argument 51 if (!condition) { 56 public static void assertTrue(boolean condition) { argument 57 assertTrue("Expected true", condition); 60 public static void assertFalse(String message, boolean condition) { argument 61 if (condition) { 66 public static void assertFalse(boolean condition) { argument 67 assertFalse("Expected false", condition);
|
/art/test/442-checker-constant-folding/src/ |
H A D | Main.java | 24 public static void assertFalse(boolean condition) { argument 25 if (condition) { 962 * Exercise constant folding on constant (static) condition. 991 * Exercise constant folding on constant (static) condition for null references. 1018 * Exercise constant folding on a program with condition
|
/art/test/021-string2/src/junit/framework/ |
H A D | Assert.java | 15 * Asserts that a condition is true. If it isn't it throws 18 static public void assertTrue(String message, boolean condition) { argument 19 if (!condition) 23 * Asserts that a condition is true. If it isn't it throws 26 static public void assertTrue(boolean condition) { argument 27 assertTrue(null, condition); 30 * Asserts that a condition is false. If it isn't it throws 33 static public void assertFalse(String message, boolean condition) { argument 34 assertTrue(message, !condition); 37 * Asserts that a condition i 40 assertFalse(boolean condition) argument [all...] |
/art/test/082-inline-execute/src/junit/framework/ |
H A D | Assert.java | 15 * Asserts that a condition is true. If it isn't it throws 18 static public void assertTrue(String message, boolean condition) { argument 19 if (!condition) 23 * Asserts that a condition is true. If it isn't it throws 26 static public void assertTrue(boolean condition) { argument 27 assertTrue(null, condition); 30 * Asserts that a condition is false. If it isn't it throws 33 static public void assertFalse(String message, boolean condition) { argument 34 assertTrue(message, !condition); 37 * Asserts that a condition i 40 assertFalse(boolean condition) argument [all...] |
/art/test/406-fields/src/ |
H A D | TestCase.java | 50 public static void assertTrue(String message, boolean condition) { argument 51 if (!condition) { 56 public static void assertTrue(boolean condition) { argument 57 assertTrue("Expected true", condition); 60 public static void assertFalse(String message, boolean condition) { argument 61 if (condition) { 66 public static void assertFalse(boolean condition) { argument 67 assertFalse("Expected false", condition);
|
/art/test/407-arrays/src/ |
H A D | TestCase.java | 50 public static void assertTrue(String message, boolean condition) { argument 51 if (!condition) { 56 public static void assertTrue(boolean condition) { argument 57 assertTrue("Expected true", condition); 60 public static void assertFalse(String message, boolean condition) { argument 61 if (condition) { 66 public static void assertFalse(boolean condition) { argument 67 assertFalse("Expected false", condition);
|
/art/runtime/verifier/ |
H A D | method_verifier.cc | 97 ALWAYS_INLINE static inline bool FailOrAbort(MethodVerifier* verifier, bool condition, argument 100 // In a debug build, abort if the error condition is wrong. 101 DCHECK(condition) << error_msg << work_insn_idx; 104 if (!condition) {
|
/art/test/003-omnibus-opcodes/src/ |
H A D | Main.java | 76 public static void assertTrue(boolean condition) { argument 77 if (!condition) {
|
/art/compiler/optimizing/ |
H A D | bounds_check_elimination.cc | 1479 HCondition* condition = if_expr->AsCondition(); local 1480 if (index == condition->InputAt(0) || 1481 index == condition->InputAt(1)) { 1520 void InsertDeoptInLoop(HLoopInformation* loop, HBasicBlock* block, HInstruction* condition) { argument 1522 block->InsertInstructionBefore(condition, block->GetLastInstruction()); 1524 new (GetGraph()->GetArena()) HDeoptimize(condition, suspend->GetDexPc()); 1533 void InsertDeoptInBlock(HBoundsCheck* bounds_check, HInstruction* condition) { argument 1535 block->InsertInstructionBefore(condition, bounds_check); 1537 new (GetGraph()->GetArena()) HDeoptimize(condition, bounds_check->GetDexPc()); 1608 HInstruction* condition local [all...] |
H A D | code_generator_arm.cc | 696 // Maps signed condition to unsigned condition. 717 // The ARM condition codes can express all the necessary branches, see the 1347 void InstructionCodeGeneratorARM::GenerateCompareTestAndBranch(HCondition* condition, argument 1356 LocationSummary* locations = condition->GetLocations(); 1360 Primitive::Type type = condition->InputAt(0)->GetType(); 1363 GenerateLongComparesAndJumps(condition, true_target, false_target); 1367 GenerateFPJumps(condition, true_target, false_target); 1372 GenerateFPJumps(condition, true_target, false_target); 1397 // Constant condition, staticall 1431 HCondition* condition = cond->AsCondition(); local [all...] |
H A D | code_generator_arm64.cc | 97 // The ARM64 condition codes can express all the necessary branches, see the 2819 // Constant condition, statically compared against "true" (integer value 1). 2835 // - opposite condition true => branch to false_target 2837 // - condition true => branch to true_target 2839 // - condition true => branch to true_target 2842 // The condition instruction has been materialized, compare the output to 0. 2851 // The condition instruction has not been materialized, use its inputs as 2852 // the comparison and its condition as the branch condition. 2853 HCondition* condition local 2960 IsConditionOnFloatingPointValues(HInstruction* condition) argument 2991 GetConditionForSelect(HCondition* condition, SelectVariant variant) argument [all...] |
H A D | code_generator_mips.cc | 3095 LOG(FATAL) << "Unexpected non-floating-point condition"; 3140 LOG(FATAL) << "Unexpected non-floating-point condition"; 3188 LOG(FATAL) << "Unexpected non-floating-point condition"; 3233 LOG(FATAL) << "Unexpected non-floating-point condition"; 3249 // Constant condition, statically compared against "true" (integer value 1). 3265 // - opposite condition true => branch to false_target 3267 // - condition true => branch to true_target 3269 // - condition true => branch to true_target 3272 // The condition instruction has been materialized, compare the output to 0. 3281 // The condition instructio 3283 HCondition* condition = cond->AsCondition(); local [all...] |
H A D | code_generator_mips64.cc | 2513 LOG(FATAL) << "Unexpected non-floating-point condition"; 2559 LOG(FATAL) << "Unexpected non-floating-point condition"; 2574 // Constant condition, statically compared against "true" (integer value 1). 2590 // - opposite condition true => branch to false_target 2592 // - condition true => branch to true_target 2594 // - condition true => branch to true_target 2597 // The condition instruction has been materialized, compare the output to 0. 2606 // The condition instruction has not been materialized, use its inputs as 2607 // the comparison and its condition as the branch condition 2608 HCondition* condition = cond->AsCondition(); local [all...] |
H A D | code_generator_x86.cc | 713 // Maps signed condition to unsigned condition and FP condition to x86 name. 1315 void InstructionCodeGeneratorX86::GenerateCompareTestAndBranch(HCondition* condition, argument 1324 LocationSummary* locations = condition->GetLocations(); 1328 Primitive::Type type = condition->InputAt(0)->GetType(); 1331 GenerateLongComparesAndJumps(condition, true_target, false_target); 1334 GenerateFPCompare(left, right, condition, false); 1335 GenerateFPJumps(condition, true_target, false_target); 1338 GenerateFPCompare(left, right, condition, tru 1421 HCondition* condition = cond->AsCondition(); local 1497 HInstruction* condition = select->GetCondition(); local 1558 HCondition* condition = select_condition->AsCondition(); local [all...] |
H A D | code_generator_x86_64.cc | 732 // Maps FP condition to x86_64 name. 1284 void InstructionCodeGeneratorX86_64::GenerateCompareTest(HCondition* condition) { argument 1285 LocationSummary* locations = condition->GetLocations(); 1289 Primitive::Type type = condition->InputAt(0)->GetType(); 1353 LOG(FATAL) << "Unexpected condition type " << type; 1358 void InstructionCodeGeneratorX86_64::GenerateCompareTestAndBranch(HCondition* condition, argument 1368 GenerateCompareTest(condition); 1371 Primitive::Type type = condition->InputAt(0)->GetType(); 1374 __ j(X86_64IntegerCondition(condition->GetCondition()), true_target); 1378 GenerateFPJumps(condition, true_targe 1464 HCondition* condition = cond->AsCondition(); local 1539 HInstruction* condition = select->GetCondition(); local 1586 HCondition* condition = select_condition->AsCondition(); local [all...] |
H A D | codegen_test.cc | 685 // Check that condition are materialized correctly. A materialized condition 733 // Check that HIf correctly interprets a materialized condition. 775 // and force the materialization of the condition. 819 static void TestComparison(IfCondition condition, argument 859 switch (condition) {
|
H A D | dead_code_elimination.cc | 42 HInstruction* condition = if_instruction->InputAt(0); local 43 if (condition->IsIntConstant()) { 44 if (condition->AsIntConstant()->IsTrue()) { 48 DCHECK(condition->AsIntConstant()->IsFalse()) << condition->AsIntConstant()->GetValue();
|
H A D | induction_var_analysis.cc | 580 // if (condition) goto X 582 HCondition* condition = if_expr->AsCondition(); local 583 InductionInfo* a = LookupInfo(loop, condition->InputAt(0)); 584 InductionInfo* b = LookupInfo(loop, condition->InputAt(1)); 585 Primitive::Type type = condition->InputAt(0)->GetType(); 591 VisitCondition(loop, a, b, type, condition->GetOppositeCondition()); 593 VisitCondition(loop, a, b, type, condition->GetCondition()); 605 // Swap condition if induction is at right-hand-side (e.g. U > i is same as i < U). 615 // Analyze condition with induction at left-hand-side (e.g. i < U). 624 // Rewrite condition [all...] |
H A D | instruction_simplifier.cc | 72 void VisitGreaterThan(HGreaterThan* condition) OVERRIDE; 73 void VisitGreaterThanOrEqual(HGreaterThanOrEqual* condition) OVERRIDE; 74 void VisitLessThan(HLessThan* condition) OVERRIDE; 75 void VisitLessThanOrEqual(HLessThanOrEqual* condition) OVERRIDE; 76 void VisitBelow(HBelow* condition) OVERRIDE; 77 void VisitBelowOrEqual(HBelowOrEqual* condition) OVERRIDE; 78 void VisitAbove(HAbove* condition) OVERRIDE; 79 void VisitAboveOrEqual(HAboveOrEqual* condition) OVERRIDE; 668 // Replace condition with its opposite. 681 HInstruction* condition local 725 HInstruction* condition = instruction->InputAt(0); local 1007 VisitGreaterThan(HGreaterThan* condition) argument 1011 VisitGreaterThanOrEqual(HGreaterThanOrEqual* condition) argument 1015 VisitLessThan(HLessThan* condition) argument 1019 VisitLessThanOrEqual(HLessThanOrEqual* condition) argument 1023 VisitBelow(HBelow* condition) argument 1027 VisitBelowOrEqual(HBelowOrEqual* condition) argument 1031 VisitAbove(HAbove* condition) argument 1035 VisitAboveOrEqual(HAboveOrEqual* condition) argument 1039 VisitCondition(HCondition* condition) argument 1640 HCondition* condition = new (GetGraph()->GetArena()) HNotEqual(x, x, dex_pc); local 1667 HCondition* condition = new (GetGraph()->GetArena()) HNotEqual(x, x, dex_pc); local [all...] |
H A D | prepare_for_register_allocation.cc | 148 bool PrepareForRegisterAllocation::CanEmitConditionAt(HCondition* condition, argument 150 if (condition->GetNext() != user) { 158 if (user->IsSelect() && user->AsSelect()->GetCondition() == condition) { 165 void PrepareForRegisterAllocation::VisitCondition(HCondition* condition) { argument 166 if (condition->HasOnlyOneNonEnvironmentUse()) { 167 HInstruction* user = condition->GetUses().front().GetUser(); 168 if (CanEmitConditionAt(condition, user)) { 169 condition->MarkEmittedAtUseSite();
|
/art/compiler/utils/mips/ |
H A D | assembler_mips.cc | 775 LOG(FATAL) << "Unexpected branch condition " << cond; 839 LOG(FATAL) << "Unexpected branch condition " << cond; 1503 bool MipsAssembler::Branch::IsNop(BranchCondition condition, Register lhs, Register rhs) { argument 1504 switch (condition) { 1515 bool MipsAssembler::Branch::IsUncond(BranchCondition condition, Register lhs, Register rhs) { argument 1516 switch (condition) { 1542 MipsAssembler::BranchCondition condition, 1550 condition_(condition) { 1551 CHECK_NE(condition, kUncond); 1552 switch (condition) { 1539 Branch(bool is_r6, uint32_t location, uint32_t target, MipsAssembler::BranchCondition condition, Register lhs_reg, Register rhs_reg) argument 1951 Bcond(MipsLabel* label, BranchCondition condition, Register lhs, Register rhs) argument 1957 branches_.emplace_back(IsR6(), buffer_.Size(), target, condition, lhs, rhs); local 2033 BranchCondition condition = branch->GetCondition(); local [all...] |
/art/compiler/utils/mips64/ |
H A D | assembler_mips64.cc | 696 LOG(FATAL) << "Unexpected branch condition " << cond; 1193 bool Mips64Assembler::Branch::IsNop(BranchCondition condition, GpuRegister lhs, GpuRegister rhs) { argument 1194 switch (condition) { 1205 bool Mips64Assembler::Branch::IsUncond(BranchCondition condition, argument 1208 switch (condition) { 1233 Mips64Assembler::BranchCondition condition, 1241 condition_(condition) { 1242 CHECK_NE(condition, kUncond); 1243 switch (condition) { 1271 CHECK(!IsNop(condition, lhs_re 1231 Branch(uint32_t location, uint32_t target, Mips64Assembler::BranchCondition condition, GpuRegister lhs_reg, GpuRegister rhs_reg) argument 1616 Bcond(Mips64Label* label, BranchCondition condition, GpuRegister lhs, GpuRegister rhs) argument 1693 BranchCondition condition = branch->GetCondition(); local [all...] |
/art/compiler/utils/x86/ |
H A D | assembler_x86.cc | 321 void X86Assembler::cmovl(Condition condition, Register dst, Register src) { argument 324 EmitUint8(0x40 + condition); 329 void X86Assembler::cmovl(Condition condition, Register dst, const Address& src) { argument 332 EmitUint8(0x40 + condition); 337 void X86Assembler::setb(Condition condition, Register dst) { argument 340 EmitUint8(0x90 + condition); 1565 void X86Assembler::j(Condition condition, Label* label) { argument 1573 EmitUint8(0x70 + condition); 1577 EmitUint8(0x80 + condition); 1582 EmitUint8(0x80 + condition); 1588 j(Condition condition, NearLabel* label) argument [all...] |
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64.cc | 2007 void X86_64Assembler::j(Condition condition, Label* label) { argument 2015 EmitUint8(0x70 + condition); 2019 EmitUint8(0x80 + condition); 2024 EmitUint8(0x80 + condition); 2030 void X86_64Assembler::j(Condition condition, NearLabel* label) { argument 2037 EmitUint8(0x70 + condition); 2040 EmitUint8(0x70 + condition); 2174 void X86_64Assembler::setcc(Condition condition, CpuRegister dst) { argument 2181 EmitUint8(0x90 + condition);
|