/art/libartbase/base/ |
D | transform_iterator_test.cc | 44 std::vector<ValueHolder> input({ 1, 7, 3, 8 }); in TEST() local 47 using vector_titer = decltype(MakeTransformIterator(input.begin(), add1)); in TEST() 53 using vector_ctiter = decltype(MakeTransformIterator(input.cbegin(), add1)); in TEST() 59 using vector_rtiter = decltype(MakeTransformIterator(input.rbegin(), add1)); in TEST() 65 using vector_crtiter = decltype(MakeTransformIterator(input.crbegin(), add1)); in TEST() 71 std::copy(MakeTransformIterator(input.begin(), add1), in TEST() 72 MakeTransformIterator(input.end(), add1), in TEST() 77 std::copy(MakeTransformIterator(input.cbegin(), add1), in TEST() 78 MakeTransformIterator(input.cend(), add1), in TEST() 83 std::copy(MakeTransformIterator(input.rbegin(), add1), in TEST() [all …]
|
D | transform_array_ref_test.cc | 41 std::vector<ValueHolder> input({ 7, 6, 4, 0 }); in TEST() local 44 auto taref = MakeTransformArrayRef(input, add1); in TEST() 69 ASSERT_EQ(input.size(), taref.size()); in TEST() 70 ASSERT_EQ(input.empty(), taref.empty()); in TEST() 71 ASSERT_EQ(input.front().value + 1, taref.front()); in TEST() 72 ASSERT_EQ(input.back().value + 1, taref.back()); in TEST() 74 for (size_t i = 0; i != input.size(); ++i) { in TEST() 75 ASSERT_EQ(input[i].value + 1, taref[i]); in TEST() 81 std::vector<ValueHolder> input({ 4, 4, 5, 7, 10 }); in TEST() local 84 auto taref = MakeTransformArrayRef(input, sub1); in TEST() [all …]
|
D | indenter_test.cc | 26 std::ostream input(&indent_filter); in TEST() local 30 input << "hello"; in TEST() 33 input << "\nhello again"; in TEST() 36 input << "\n"; in TEST()
|
/art/tools/ |
D | stream-trace-converter.py | 63 def Copy(input, output, length): argument 64 buf = input.read(length) 78 def ProcessDataHeader(self, input, body): argument 79 magic = ReadIntLE(input) 85 version = ReadShortLE(input) 96 offsetToData = ReadShortLE(input) - 16 100 Copy(input, body, 8) 107 self._mRecordSize = ReadShortLE(input) 112 Copy(input, body, offsetToData) 114 def ProcessMethod(self, input): argument [all …]
|
D | symbolize.sh | 33 read -e input 34 if [ "x$input" = "xn" ] ; then 37 if [ "x$input" = "xq" ] ; then
|
/art/compiler/optimizing/ |
D | ssa_phi_elimination.cc | 79 HPhi* input = raw_input->AsPhiOrNull(); in MarkDeadPhis() local 80 if (input != nullptr && input->IsDead()) { in MarkDeadPhis() 83 DCHECK(ContainsElement(initially_live, input)); in MarkDeadPhis() 84 input->SetLive(); in MarkDeadPhis() 85 worklist.push_back(input); in MarkDeadPhis() 173 for (HInstruction* input : phi->GetInputs()) { in Run() 174 if (input == phi) { in Run() 177 candidate = input; in Run() 178 } else if (candidate != input) { in Run() 194 for (HInstruction* input : current->GetInputs()) { in Run() [all …]
|
D | licm.cc | 34 for (const HInstruction* input : instruction->GetInputs()) { in InputsAreDefinedBeforeLoop() local 35 HLoopInformation* input_loop = input->GetBlock()->GetLoopInformation(); in InputsAreDefinedBeforeLoop() 47 HInstruction* input = environment->GetInstructionAt(i); in InputsAreDefinedBeforeLoop() local 48 if (input != nullptr) { in InputsAreDefinedBeforeLoop() 49 HLoopInformation* input_loop = input->GetBlock()->GetLoopInformation(); in InputsAreDefinedBeforeLoop() 53 bool is_loop_header_phi = IsPhiOf(input, info->GetHeader()); in InputsAreDefinedBeforeLoop() 70 HInstruction* input = environment->GetInstructionAt(i); in UpdateLoopPhisIn() local 71 if (input != nullptr && IsPhiOf(input, info->GetHeader())) { in UpdateLoopPhisIn() 73 HInstruction* incoming = input->InputAt(0); in UpdateLoopPhisIn()
|
D | constant_folding.cc | 397 HInstruction* input = inst->InputAt(0); in FoldReverseIntrinsic() local 398 if (!input->IsConstant()) { in FoldReverseIntrinsic() 404 DCHECK(input->IsIntConstant()); in FoldReverseIntrinsic() 406 GetGraph()->GetIntConstant(ReverseBits32(input->AsIntConstant()->GetValue()))); in FoldReverseIntrinsic() 408 DCHECK(input->IsLongConstant()); in FoldReverseIntrinsic() 410 GetGraph()->GetLongConstant(ReverseBits64(input->AsLongConstant()->GetValue()))); in FoldReverseIntrinsic() 420 HInstruction* input = inst->InputAt(0); in FoldReverseBytesIntrinsic() local 421 if (!input->IsConstant()) { in FoldReverseBytesIntrinsic() 427 DCHECK(input->IsIntConstant()); in FoldReverseBytesIntrinsic() 428 inst->ReplaceWith(GetGraph()->GetIntConstant(BSWAP(input->AsIntConstant()->GetValue()))); in FoldReverseBytesIntrinsic() [all …]
|
D | nodes_vector.h | 125 void SetGoverningPredicate(HInstruction* input, PredicationKind pred_kind) { in SetGoverningPredicate() argument 127 DCHECK(input->IsVecPredSetOperation()); in SetGoverningPredicate() 128 AddInput(input); in SetGoverningPredicate() 133 void SetMergingGoverningPredicate(HInstruction* input) { in SetMergingGoverningPredicate() argument 134 SetGoverningPredicate(input, PredicationKind::kMergingForm); in SetMergingGoverningPredicate() 136 void SetZeroingGoverningPredicate(HInstruction* input) { in SetZeroingGoverningPredicate() argument 137 SetGoverningPredicate(input, PredicationKind::kZeroingForm); in SetZeroingGoverningPredicate() 270 HInstruction* input, in HVecUnaryOperation() argument 281 SetRawInputAt(0, input); in HVecUnaryOperation() 369 inline static bool HasConsistentPackedTypes(HInstruction* input, DataType::Type type) { in HasConsistentPackedTypes() argument [all …]
|
D | ssa_builder.cc | 132 for (HInstruction* input : phi->GetInputs()) { in TypePhiFromInputs() 133 if (input->IsPhi() && input->AsPhi()->IsDead()) { in TypePhiFromInputs() 139 DataType::Type input_type = HPhi::ToPhiType(input->GetType()); in TypePhiFromInputs() 179 for (HInstruction* input : phi->GetInputs()) { in TypeInputsOfPhi() 180 DCHECK(HPhi::ToPhiType(input->GetType()) == common_type); in TypeInputsOfPhi() 190 HInstruction* input = inputs[i]; in TypeInputsOfPhi() local 191 if (input->GetType() != common_type) { in TypeInputsOfPhi() 195 ? GetReferenceTypeEquivalent(input) in TypeInputsOfPhi() 196 : GetFloatOrDoubleEquivalent(input, common_type); in TypeInputsOfPhi() 203 DCHECK_NE(input, equivalent); in TypeInputsOfPhi() [all …]
|
D | nodes_x86.h | 72 HInstruction* input, in HX86FPNeg() argument 77 SetRawInputAt(0, input); in HX86FPNeg() 96 HInstruction* input, in HX86PackedSwitch() argument 102 SetRawInputAt(0, input); in HX86PackedSwitch() 172 HInstruction* input, uint32_t dex_pc = kNoDexPc) 173 : HUnaryOperation(kX86MaskOrResetLeastSetBit, result_type, input, dex_pc), in HUnaryOperation() argument 175 DCHECK_EQ(result_type, DataType::Kind(input->GetType())); in HUnaryOperation()
|
D | ssa_liveness_analysis.cc | 111 HInstruction* input = inputs[i]; in RecursivelyProcessInputs() local 113 bool has_out_location = input->GetLocations()->Out().IsValid(); in RecursivelyProcessInputs() 119 << input->DebugName() << input->GetId() << " does not produce one."; in RecursivelyProcessInputs() 120 DCHECK(input->HasSsaIndex()); in RecursivelyProcessInputs() 123 input->GetLiveInterval()->AddUse(current, /* environment= */ nullptr, i, actual_user); in RecursivelyProcessInputs() 124 live_in->SetBit(input->GetSsaIndex()); in RecursivelyProcessInputs() 130 DCHECK(input->IsEmittedAtUseSite()); in RecursivelyProcessInputs() 133 DCHECK(!input->IsPhi()); in RecursivelyProcessInputs() 134 DCHECK(!input->HasEnvironment()); in RecursivelyProcessInputs() 135 RecursivelyProcessInputs(input, actual_user, live_in); in RecursivelyProcessInputs() [all …]
|
D | dead_code_elimination.cc | 107 static bool HasInput(HCondition* instruction, HInstruction* input) { in HasInput() argument 108 return (instruction->InputAt(0) == input) || in HasInput() 109 (instruction->InputAt(1) == input); in HasInput() 377 HInstruction* input = phi->InputAt(i); in SimplifyIfs() local 380 if (input->IsIntConstant()) { in SimplifyIfs() 381 value_to_check = input; in SimplifyIfs() 386 value_to_check = Evaluate(first->AsCondition(), input, first->InputAt(1)); in SimplifyIfs() 388 value_to_check = Evaluate(first->AsCondition(), first->InputAt(0), input); in SimplifyIfs() 476 HInstruction* input = if_instruction->InputAt(0); in MaybeAddPhi() local 478 const bool same_input = dominator_input == input; in MaybeAddPhi() [all …]
|
D | intrinsics.cc | 95 HInstruction* const input = invoke->InputAt(0); in ComputeValueOfLocations() local 96 if (input->IsIntConstant()) { in ComputeValueOfLocations() 97 int32_t value = input->AsIntConstant()->GetValue(); in ComputeValueOfLocations() 107 locations->SetInAt(0, Location::RegisterOrConstant(input)); in ComputeValueOfLocations() 111 locations->SetInAt(0, Location::ConstantLocation(input)); in ComputeValueOfLocations() 230 HInstruction* input = invoke->InputAt(input_index); in InsertFpToIntegralIntrinsic() local 231 DataType::Type input_type = input->GetType(); in InsertFpToIntegralIntrinsic() 270 new_input->SetRawInputAt(0u, input); in InsertFpToIntegralIntrinsic()
|
D | graph_checker.cc | 573 for (HInstruction* input : instruction->GetInputs()) { in VisitInstruction() 574 if (input->GetBlock() == nullptr) { in VisitInstruction() 577 input->GetId(), in VisitInstruction() 579 } else if (!ContainedInItsBlockList(input)) { in VisitInstruction() 582 input->GetId(), in VisitInstruction() 627 HInstruction* input = input_record.GetInstruction(); in VisitInstruction() local 630 auto it = uses_per_instruction_.find(input->GetId()); in VisitInstruction() 633 .insert({input->GetId(), in VisitInstruction() 637 for (auto&& use : input->GetUses()) { in VisitInstruction() 642 if ((input_record.GetBeforeUseNode() == input->GetUses().end()) || in VisitInstruction() [all …]
|
D | prepare_for_register_allocation.cc | 264 bool PrepareForRegisterAllocation::CanMoveClinitCheck(HInstruction* input, in CanMoveClinitCheck() argument 272 if (user->GetDexPc() != input->GetDexPc()) { in CanMoveClinitCheck() 283 HEnvironment* input_environment = input->GetEnvironment(); in CanMoveClinitCheck() 299 if (user->GetBlock() != input->GetBlock()) { in CanMoveClinitCheck() 305 for (HInstruction* between = input->GetNext(); between != user; between = between->GetNext()) { in CanMoveClinitCheck() 306 DCHECK(between != nullptr) << " User must be after input in the same block. input: " << *input in CanMoveClinitCheck()
|
/art/test/474-checker-boolean-input/ |
D | Android.bp | 3 // Build rules for ART run-test `474-checker-boolean-input`. 16 name: "art-run-test-474-checker-boolean-input", 21 ":art-run-test-474-checker-boolean-input-expected-stdout", 22 ":art-run-test-474-checker-boolean-input-expected-stderr", 31 name: "art-run-test-474-checker-boolean-input-expected-stdout", 32 out: ["art-run-test-474-checker-boolean-input-expected-stdout.txt"], 39 name: "art-run-test-474-checker-boolean-input-expected-stderr", 40 out: ["art-run-test-474-checker-boolean-input-expected-stderr.txt"],
|
/art/test/2259-checker-code-sinking-infinite-try-catch/src/ |
D | Main.java | 54 private static int $noinline$throwOrReturn(int input) throws Error { in $noinline$throwOrReturn() argument 55 if (input == 10) { in $noinline$throwOrReturn() 58 return input; in $noinline$throwOrReturn()
|
/art/tools/cpp-define-generator/ |
D | make_header.py | 31 def convert(input): argument 35 asm_defines = asm_define_re.findall(input) 56 print(convert(open(args.input, "r").read()))
|
/art/test/dexdump/ |
D | run-all-tests | 117 for input in *.dex *.jar; do 118 echo ${input} 120 expected_output=${input%%.*}.${suffix} 122 cmd="${SUFFIX_COMMAND_MAP[${suffix}]} ${input}"
|
/art/test/517-checker-builder-fallthrough/src/ |
D | Main.java | 21 public static int runTest(int input) throws Exception { in runTest() argument 24 return (Integer) m.invoke(null, input); in runTest()
|
/art/test/468-checker-bool-simplif-regression/src/ |
D | Main.java | 21 public static boolean runTest(boolean input) throws Exception { in runTest() argument 25 f.set(null, (Boolean) input); in runTest()
|
/art/test/633-checker-rtp-getclass/src/ |
D | Main.java | 36 public static int $noinline$runSmaliTest(String name, Main input) { in $noinline$runSmaliTest() argument 40 return (Integer) m.invoke(null, input); in $noinline$runSmaliTest()
|
/art/libdexfile/dex/ |
D | utf_test.cc | 118 static void AssertConversion(const std::vector<uint16_t>& input, in AssertConversion() argument 120 ASSERT_EQ(expected.size(), CountModifiedUtf8BytesInUtf16(&input[0], input.size())); in AssertConversion() 124 &input[0], input.size()); in AssertConversion() 385 const char input[] = { kNonAsciiCharacter, '\0' }; in TEST_F() local 386 uint32_t hash = ComputeModifiedUtf8Hash(input); in TEST_F()
|
/art/test/543-checker-dce-trycatch/smali/ |
D | TestCase.smali | 246 const v1, 0xa # dead catch phi input, defined in entry block (HInstruction) 247 add-int v2, p0, p1 # dead catch phi input, defined in the dead block (HInstruction) 252 # v3 = Phi [Add, 0xf] # dead catch phi input, defined in the dead block (HPhi). 257 const v1, 0xb # live catch phi input 258 const v2, 0xc # live catch phi input 259 const v3, 0x10 # live catch phi input 262 const v1, 0xd # live catch phi input 263 const v2, 0xe # live catch phi input 264 const v3, 0x11 # live catch phi input 313 const v1, 0xa # dead catch phi input, defined in entry block [all …]
|