/art/compiler/optimizing/ |
D | emit_swap_mips_test.cc | 119 Location::RegisterLocation(4), in TEST_F() 120 Location::RegisterLocation(5), in TEST_F() 124 Location::RegisterLocation(5), in TEST_F() 125 Location::RegisterLocation(4), in TEST_F() 137 Location::RegisterPairLocation(4, 5), in TEST_F() 138 Location::RegisterPairLocation(6, 7), in TEST_F() 142 Location::RegisterPairLocation(6, 7), in TEST_F() 143 Location::RegisterPairLocation(4, 5), in TEST_F() 158 Location::FpuRegisterLocation(4), in TEST_F() 159 Location::FpuRegisterLocation(2), in TEST_F() [all …]
|
D | locations.cc | 27 static_assert(std::is_trivially_copyable<Location>::value, "Location should be trivially copyable"); 38 output_overlaps_(Location::kOutputOverlap), in LocationSummary() 58 Location Location::RegisterOrConstant(HInstruction* instruction) { in RegisterOrConstant() 60 ? Location::ConstantLocation(instruction->AsConstant()) in RegisterOrConstant() 61 : Location::RequiresRegister(); in RegisterOrConstant() 64 Location Location::RegisterOrInt32Constant(HInstruction* instruction) { in RegisterOrInt32Constant() 69 return Location::ConstantLocation(constant); in RegisterOrInt32Constant() 72 return Location::RequiresRegister(); in RegisterOrInt32Constant() 75 Location Location::FpuRegisterOrInt32Constant(HInstruction* instruction) { in FpuRegisterOrInt32Constant() 80 return Location::ConstantLocation(constant); in FpuRegisterOrInt32Constant() [all …]
|
D | parallel_move_test.cc | 37 static void DumpLocationForTest(std::ostream& os, Location location) { in DumpLocationForTest() 108 Location AllocateScratchLocationFor(Location::Kind kind) override { in AllocateScratchLocationFor() 109 if (kind == Location::kStackSlot || kind == Location::kFpuRegister || in AllocateScratchLocationFor() 110 kind == Location::kRegister) { in AllocateScratchLocationFor() 111 kind = Location::kRegister; in AllocateScratchLocationFor() 114 kind = Location::kRegisterPair; in AllocateScratchLocationFor() 116 Location scratch = GetScratchLocation(kind); in AllocateScratchLocationFor() 117 if (scratch.Equals(Location::NoLocation())) { in AllocateScratchLocationFor() 118 AddScratchLocation(Location::RegisterLocation(scratch_index_)); in AllocateScratchLocationFor() 119 AddScratchLocation(Location::RegisterLocation(scratch_index_ + 1)); in AllocateScratchLocationFor() [all …]
|
D | locations.h | 31 class Location; variable 33 std::ostream& operator<<(std::ostream& os, const Location& location); 39 class Location : public ValueObject { 81 Location() : ValueObject(), value_(kInvalid) { in Location() function 97 Location(const Location& other) = default; 99 Location& operator=(const Location& other) = default; 105 static Location ConstantLocation(HConstant* constant) { in ConstantLocation() 107 return Location(kConstant | reinterpret_cast<uintptr_t>(constant)); in ConstantLocation() 124 static Location NoLocation() { in NoLocation() 125 return Location(); in NoLocation() [all …]
|
D | register_allocation_resolver.h | 32 class Location; variable 69 Location source, 70 Location destination) const; 73 Location source, 74 Location destination) const; 75 void InsertMoveAfter(HInstruction* instruction, Location source, Location destination) const; 78 Location source, 79 Location destination) const; 82 Location source, 83 Location destination) const; [all …]
|
D | parallel_move_resolver.cc | 80 Location LowOf(Location location) { in LowOf() 82 return Location::RegisterLocation(location.low()); in LowOf() 84 return Location::FpuRegisterLocation(location.low()); in LowOf() 86 return Location::StackSlot(location.GetStackIndex()); in LowOf() 88 return Location::NoLocation(); in LowOf() 92 Location HighOf(Location location) { in HighOf() 94 return Location::RegisterLocation(location.high()); in HighOf() 96 return Location::FpuRegisterLocation(location.high()); in HighOf() 98 return Location::StackSlot(location.GetHighStackIndex(4)); in HighOf() 100 return Location::NoLocation(); in HighOf() [all …]
|
D | parallel_move_resolver.h | 82 bool IsScratchLocation(Location loc); 150 virtual Location AllocateScratchLocationFor(Location::Kind kind) = 0; 154 virtual void FreeScratchLocation(Location loc) = 0; 161 Location GetScratchLocation(Location::Kind kind); 165 void AddScratchLocation(Location loc); 168 void RemoveScratchLocation(Location loc); 171 ArenaVector<Location> scratches_; 178 void UpdateMoveSource(Location from, Location to); 180 void AddPendingMove(Location source, Location destination, DataType::Type type); 185 MoveOperands* GetUnblockedPendingMove(Location loc); [all …]
|
D | code_generator_x86.h | 86 Location GetNextLocation(DataType::Type type) override; 87 Location GetReturnLocation(DataType::Type type) const override; 88 Location GetMethodLocation() const override; 100 Location GetObjectLocation() const override { in GetObjectLocation() 101 return Location::RegisterLocation(ECX); in GetObjectLocation() 103 Location GetFieldIndexLocation() const override { in GetFieldIndexLocation() 104 return Location::RegisterLocation(EAX); in GetFieldIndexLocation() 106 Location GetReturnLocation(DataType::Type type) const override { in GetReturnLocation() 108 ? Location::RegisterPairLocation(EAX, EDX) in GetReturnLocation() 109 : Location::RegisterLocation(EAX); in GetReturnLocation() [all …]
|
D | code_generator_x86_64.h | 86 Location GetObjectLocation() const override { in GetObjectLocation() 87 return Location::RegisterLocation(RSI); in GetObjectLocation() 89 Location GetFieldIndexLocation() const override { in GetFieldIndexLocation() 90 return Location::RegisterLocation(RDI); in GetFieldIndexLocation() 92 Location GetReturnLocation(DataType::Type type ATTRIBUTE_UNUSED) const override { in GetReturnLocation() 93 return Location::RegisterLocation(RAX); in GetReturnLocation() 95 Location GetSetValueLocation(DataType::Type type ATTRIBUTE_UNUSED, bool is_instance) in GetSetValueLocation() 98 ? Location::RegisterLocation(RDX) in GetSetValueLocation() 99 : Location::RegisterLocation(RSI); in GetSetValueLocation() 101 Location GetFpuLocation(DataType::Type type ATTRIBUTE_UNUSED) const override { in GetFpuLocation() [all …]
|
D | code_generator_mips.h | 64 VectorRegister VectorRegisterFrom(Location location); 84 Location GetNextLocation(DataType::Type type) override; 85 Location GetReturnLocation(DataType::Type type) const override; 86 Location GetMethodLocation() const override; 103 Location GetReturnLocation(DataType::Type return_type); 113 Location GetObjectLocation() const override { in GetObjectLocation() 114 return Location::RegisterLocation(A1); in GetObjectLocation() 116 Location GetFieldIndexLocation() const override { in GetFieldIndexLocation() 117 return Location::RegisterLocation(A0); in GetFieldIndexLocation() 119 Location GetReturnLocation(DataType::Type type) const override { in GetReturnLocation() [all …]
|
D | code_generator_mips64.h | 62 VectorRegister VectorRegisterFrom(Location location); 82 Location GetNextLocation(DataType::Type type) override; 83 Location GetReturnLocation(DataType::Type type) const override; 84 Location GetMethodLocation() const override; 101 Location GetReturnLocation(DataType::Type return_type); 111 Location GetObjectLocation() const override { in GetObjectLocation() 112 return Location::RegisterLocation(A1); in GetObjectLocation() 114 Location GetFieldIndexLocation() const override { in GetFieldIndexLocation() 115 return Location::RegisterLocation(A0); in GetFieldIndexLocation() 117 Location GetReturnLocation(DataType::Type type ATTRIBUTE_UNUSED) const override { in GetReturnLocation() [all …]
|
D | common_arm.h | 49 inline vixl::aarch32::Register HighRegisterFrom(Location location) { in HighRegisterFrom() 54 inline vixl::aarch32::DRegister HighDRegisterFrom(Location location) { in HighDRegisterFrom() 59 inline vixl::aarch32::Register LowRegisterFrom(Location location) { in LowRegisterFrom() 64 inline vixl::aarch32::SRegister LowSRegisterFrom(Location location) { in LowSRegisterFrom() 69 inline vixl::aarch32::SRegister HighSRegisterFrom(Location location) { in HighSRegisterFrom() 74 inline vixl::aarch32::Register RegisterFrom(Location location) { in RegisterFrom() 79 inline vixl::aarch32::Register RegisterFrom(Location location, DataType::Type type) { in RegisterFrom() 84 inline vixl::aarch32::DRegister DRegisterFrom(Location location) { in DRegisterFrom() 91 inline vixl::aarch32::SRegister SRegisterFrom(Location location) { in SRegisterFrom() 178 inline int32_t Int32ConstantFrom(Location location) { in Int32ConstantFrom() [all …]
|
D | register_allocation_resolver.cc | 62 Location location = locations->Out(); in Resolve() 66 location = Location::StackSlot(location.GetStackIndex() + codegen_->GetFrameSize()); in Resolve() 70 location = Location::DoubleStackSlot(location.GetStackIndex() + codegen_->GetFrameSize()); in Resolve() 129 Location source = current->ToLocation(); in Resolve() 132 if (location.GetPolicy() == Location::kSameAsFirstInput) { in Resolve() 192 Location source = input->GetLiveInterval()->GetLocationAt( in Resolve() 194 Location destination = phi->GetLiveInterval()->ToLocation(); in Resolve() 212 locations->SetTempAt(temp_index, Location::RegisterLocation(temp->GetRegister())); in Resolve() 217 Location location = Location::FpuRegisterPairLocation( in Resolve() 221 locations->SetTempAt(temp_index, Location::FpuRegisterLocation(temp->GetRegister())); in Resolve() [all …]
|
D | code_generator_arm_vixl.h | 181 Location GetNextLocation(DataType::Type type) override; 182 Location GetReturnLocation(DataType::Type type) const override; 183 Location GetMethodLocation() const override; 196 Location GetObjectLocation() const override { in GetObjectLocation() 199 Location GetFieldIndexLocation() const override { in GetFieldIndexLocation() 202 Location GetReturnLocation(DataType::Type type) const override { in GetReturnLocation() 207 Location GetSetValueLocation(DataType::Type type, bool is_instance) const override { in GetSetValueLocation() 214 Location GetFpuLocation(DataType::Type type) const override { in GetFpuLocation() 292 Location ArithmeticZeroOrFpuRegister(HInstruction* input); 293 Location ArmEncodableConstantOrRegister(HInstruction* constant, Opcode opcode); [all …]
|
D | code_generator_arm64.h | 101 inline Location FixedTempLocation() { in FixedTempLocation() 102 return Location::RegisterLocation(vixl::aarch64::x15.GetCode()); in FixedTempLocation() 118 Location ARM64ReturnLocation(DataType::Type return_type); 189 Location GetReturnLocation(DataType::Type return_type); 205 Location GetReturnLocation(DataType::Type return_type) const { in GetReturnLocation() 219 Location GetNextLocation(DataType::Type type) override; 220 Location GetReturnLocation(DataType::Type return_type) const override { in GetReturnLocation() 223 Location GetMethodLocation() const override; 235 Location GetObjectLocation() const override { in GetObjectLocation() 238 Location GetFieldIndexLocation() const override { in GetFieldIndexLocation() [all …]
|
D | common_arm64.h | 66 inline vixl::aarch64::Register XRegisterFrom(Location location) { in XRegisterFrom() 71 inline vixl::aarch64::Register WRegisterFrom(Location location) { in WRegisterFrom() 76 inline vixl::aarch64::Register RegisterFrom(Location location, DataType::Type type) { in RegisterFrom() 90 inline vixl::aarch64::FPRegister DRegisterFrom(Location location) { in DRegisterFrom() 95 inline vixl::aarch64::FPRegister QRegisterFrom(Location location) { in QRegisterFrom() 100 inline vixl::aarch64::FPRegister VRegisterFrom(Location location) { in VRegisterFrom() 105 inline vixl::aarch64::FPRegister SRegisterFrom(Location location) { in SRegisterFrom() 110 inline vixl::aarch64::FPRegister FPRegisterFrom(Location location, DataType::Type type) { in FPRegisterFrom() 124 inline vixl::aarch64::CPURegister CPURegisterFrom(Location location, DataType::Type type) { in CPURegisterFrom() 154 inline int64_t Int64FromLocation(Location location) { in Int64FromLocation() [all …]
|
D | code_generator_arm_vixl.cc | 77 static bool ExpectedPairLayout(Location location) { in ExpectedPairLayout() 516 Location out = locations->Out(); in EmitNativeCode() 535 Location source = instruction_->IsLoadClass() ? out : locations->InAt(0); in EmitNativeCode() 722 Location out, in ReadBarrierForHeapReferenceSlowPathARMVIXL() 723 Location ref, in ReadBarrierForHeapReferenceSlowPathARMVIXL() 724 Location obj, in ReadBarrierForHeapReferenceSlowPathARMVIXL() 726 Location index) in ReadBarrierForHeapReferenceSlowPathARMVIXL() 773 Location index = index_; in EmitNativeCode() 893 const Location out_; 894 const Location ref_; [all …]
|
D | code_generator_mips64.cc | 52 Location Mips64ReturnLocation(DataType::Type return_type) { in Mips64ReturnLocation() 64 return Location::RegisterLocation(V0); in Mips64ReturnLocation() 68 return Location::FpuRegisterLocation(F0); in Mips64ReturnLocation() 71 return Location(); in Mips64ReturnLocation() 76 Location InvokeDexCallingConventionVisitorMIPS64::GetReturnLocation(DataType::Type type) const { in GetReturnLocation() 80 Location InvokeDexCallingConventionVisitorMIPS64::GetMethodLocation() const { in GetMethodLocation() 81 return Location::RegisterLocation(kMethodRegisterArgument); in GetMethodLocation() 84 Location InvokeDexCallingConventionVisitorMIPS64::GetNextLocation(DataType::Type type) { in GetNextLocation() 85 Location next_location; in GetNextLocation() 92 next_location = Location::FpuRegisterLocation( in GetNextLocation() [all …]
|
D | ssa_liveness_analysis.cc | 335 static int RegisterOrLowRegister(Location location) { in RegisterOrLowRegister() 389 Location phi_location = user->GetLiveInterval()->ToLocation(); in FindFirstRegisterHint() 405 Location location = inputs[i]->GetLiveInterval()->GetLocationAt( in FindFirstRegisterHint() 418 Location expected = locations->InAt(use.GetInputIndex()); in FindFirstRegisterHint() 447 Location input_location = input_interval->ToLocation(); in FindHintAtDefinition() 456 Location out = locations->Out(); in FindHintAtDefinition() 457 if (out.IsUnallocated() && out.GetPolicy() == Location::kSameAsFirstInput) { in FindHintAtDefinition() 464 Location location = input_interval->ToLocation(); in FindHintAtDefinition() 475 bool LiveInterval::SameRegisterKind(Location other) const { in SameRegisterKind() 505 Location LiveInterval::ToLocation() const { in ToLocation() [all …]
|
D | code_generator.h | 150 virtual Location GetNextLocation(DataType::Type type) = 0; 151 virtual Location GetReturnLocation(DataType::Type type) const = 0; 152 virtual Location GetMethodLocation() const = 0; 171 virtual Location GetObjectLocation() const = 0; 172 virtual Location GetFieldIndexLocation() const = 0; 173 virtual Location GetReturnLocation(DataType::Type type) const = 0; 174 virtual Location GetSetValueLocation(DataType::Type type, bool is_instance) const = 0; 175 virtual Location GetFpuLocation(DataType::Type type) const = 0; 218 virtual void MoveConstant(Location destination, int32_t value) = 0; 219 virtual void MoveLocation(Location dst, Location src, DataType::Type dst_type) = 0; [all …]
|
D | intrinsics_arm64.cc | 62 ALWAYS_INLINE inline MemOperand AbsoluteHeapOperandFrom(Location location, size_t offset = 0) { in AbsoluteHeapOperandFrom() 78 static void MoveFromReturnRegister(Location trg, in MoveFromReturnRegister() 137 Location out = invoke_->GetLocations()->Out(); in EmitNativeCode() 160 ReadBarrierSystemArrayCopySlowPathARM64(HInstruction* instruction, Location tmp) in ReadBarrierSystemArrayCopySlowPathARM64() 222 Location tmp_; 242 locations->SetInAt(0, Location::RequiresFpuRegister()); in CreateFPToIntLocations() 243 locations->SetOut(Location::RequiresRegister()); in CreateFPToIntLocations() 249 locations->SetInAt(0, Location::RequiresRegister()); in CreateIntToFPLocations() 250 locations->SetOut(Location::RequiresFpuRegister()); in CreateIntToFPLocations() 254 Location input = locations->InAt(0); in MoveFPToInt() [all …]
|
D | code_generator_mips.cc | 54 Location MipsReturnLocation(DataType::Type return_type) { in MipsReturnLocation() 64 return Location::RegisterLocation(V0); in MipsReturnLocation() 68 return Location::RegisterPairLocation(V0, V1); in MipsReturnLocation() 72 return Location::FpuRegisterLocation(F0); in MipsReturnLocation() 75 return Location(); in MipsReturnLocation() 80 Location InvokeDexCallingConventionVisitorMIPS::GetReturnLocation(DataType::Type type) const { in GetReturnLocation() 84 Location InvokeDexCallingConventionVisitorMIPS::GetMethodLocation() const { in GetMethodLocation() 85 return Location::RegisterLocation(kMethodRegisterArgument); in GetMethodLocation() 88 Location InvokeDexCallingConventionVisitorMIPS::GetNextLocation(DataType::Type type) { in GetNextLocation() 89 Location next_location; in GetNextLocation() [all …]
|
D | intrinsics_utils.h | 44 Location MoveArguments(CodeGenerator* codegen) { in MoveArguments() 56 Location method_loc = MoveArguments(codegen); in EmitNativeCode() 65 Location out = invoke_->GetLocations()->Out(); in EmitNativeCode()
|
D | intrinsics_arm_vixl.cc | 82 Location MoveArguments(CodeGenerator* codegen) { in MoveArguments() 94 Location method_loc = MoveArguments(codegen); in EmitNativeCode() 103 Location out = invoke_->GetLocations()->Out(); in EmitNativeCode() 127 const Location& pos, in GenSystemArrayCopyBaseAddress() 149 const Location& copy_length, in GenSystemArrayCopyEndAddress() 191 Location dest_pos = locations->InAt(3); in EmitNativeCode() 262 locations->SetInAt(0, Location::RequiresFpuRegister()); in CreateFPToIntLocations() 263 locations->SetOut(Location::RequiresRegister()); in CreateFPToIntLocations() 269 locations->SetInAt(0, Location::RequiresRegister()); in CreateIntToFPLocations() 270 locations->SetOut(Location::RequiresFpuRegister()); in CreateIntToFPLocations() [all …]
|
/art/test/910-methods/ |
D | expected.txt | 6 Location start: 0 7 Location end: 36 16 Location start: JVMTI_ERROR_NATIVE_METHOD 17 Location end: JVMTI_ERROR_NATIVE_METHOD 26 Location start: JVMTI_ERROR_NATIVE_METHOD 27 Location end: JVMTI_ERROR_NATIVE_METHOD 36 Location start: -1 37 Location end: -1 46 Location start: -1 47 Location end: -1 [all …]
|