Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 99) sorted by relevance

1234

/art/compiler/optimizing/
Dcommon_arm64.h54 static inline vixl::Register XRegisterFrom(Location location) { in XRegisterFrom() argument
55 DCHECK(location.IsRegister()); in XRegisterFrom()
56 return vixl::Register::XRegFromCode(VIXLRegCodeFromART(location.reg())); in XRegisterFrom()
59 static inline vixl::Register WRegisterFrom(Location location) { in WRegisterFrom() argument
60 DCHECK(location.IsRegister()); in WRegisterFrom()
61 return vixl::Register::WRegFromCode(VIXLRegCodeFromART(location.reg())); in WRegisterFrom()
64 static inline vixl::Register RegisterFrom(Location location, Primitive::Type type) { in RegisterFrom() argument
66 return type == Primitive::kPrimLong ? XRegisterFrom(location) : WRegisterFrom(location); in RegisterFrom()
78 static inline vixl::FPRegister DRegisterFrom(Location location) { in DRegisterFrom() argument
79 DCHECK(location.IsFpuRegister()); in DRegisterFrom()
[all …]
Dlocations.cc72 std::ostream& operator<<(std::ostream& os, const Location& location) { in operator <<() argument
73 os << location.DebugString(); in operator <<()
74 if (location.IsRegister() || location.IsFpuRegister()) { in operator <<()
75 os << location.reg(); in operator <<()
76 } else if (location.IsPair()) { in operator <<()
77 os << location.low() << ":" << location.high(); in operator <<()
78 } else if (location.IsStackSlot() || location.IsDoubleStackSlot()) { in operator <<()
79 os << location.GetStackIndex(); in operator <<()
Dcode_generator.cc41 static bool CheckType(Primitive::Type type, Location location) { in CheckType() argument
42 if (location.IsFpuRegister() in CheckType()
43 || (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresFpuRegister))) { in CheckType()
45 } else if (location.IsRegister() || in CheckType()
46 (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresRegister))) { in CheckType()
48 } else if (location.IsRegisterPair()) { in CheckType()
50 } else if (location.IsFpuRegisterPair()) { in CheckType()
52 } else if (location.IsStackSlot()) { in CheckType()
56 } else if (location.IsDoubleStackSlot()) { in CheckType()
58 } else if (location.IsConstant()) { in CheckType()
[all …]
Dgraph_visualizer.cc128 void DumpLocation(Location location) { in DumpLocation() argument
129 if (location.IsRegister()) { in DumpLocation()
130 codegen_.DumpCoreRegister(output_, location.reg()); in DumpLocation()
131 } else if (location.IsFpuRegister()) { in DumpLocation()
132 codegen_.DumpFloatingPointRegister(output_, location.reg()); in DumpLocation()
133 } else if (location.IsConstant()) { in DumpLocation()
135 HConstant* constant = location.GetConstant(); in DumpLocation()
141 } else if (location.IsInvalid()) { in DumpLocation()
143 } else if (location.IsStackSlot()) { in DumpLocation()
144 output_ << location.GetStackIndex() << "(sp)"; in DumpLocation()
[all …]
Dparallel_move_resolver.cc65 Location LowOf(Location location) { in LowOf() argument
66 if (location.IsRegisterPair()) { in LowOf()
67 return Location::RegisterLocation(location.low()); in LowOf()
68 } else if (location.IsFpuRegisterPair()) { in LowOf()
69 return Location::FpuRegisterLocation(location.low()); in LowOf()
70 } else if (location.IsDoubleStackSlot()) { in LowOf()
71 return Location::StackSlot(location.GetStackIndex()); in LowOf()
77 Location HighOf(Location location) { in HighOf() argument
78 if (location.IsRegisterPair()) { in HighOf()
79 return Location::RegisterLocation(location.high()); in HighOf()
[all …]
Dlocations.h32 std::ostream& operator<<(std::ostream& os, const Location& location);
483 void SetInAt(uint32_t at, Location location) { in SetInAt() argument
485 inputs_.Put(at, location); in SetInAt()
496 void SetOut(Location location, Location::OutputOverlap overlaps = Location::kOutputOverlap) {
499 output_ = location;
502 void UpdateOut(Location location) { in UpdateOut() argument
508 output_ = location; in UpdateOut()
511 void AddTemp(Location location) { in AddTemp() argument
512 temps_.Add(location); in AddTemp()
519 void SetTempAt(uint32_t at, Location location) { in SetTempAt() argument
[all …]
Doptimizing_cfi_test.cc59 auto location = Location::RegisterLocation(core_reg); in TestImpl() local
60 code_gen->AddAllocatedRegister(location); in TestImpl()
67 auto location = Location::FpuRegisterLocation(fp_reg); in TestImpl() local
68 code_gen->AddAllocatedRegister(location); in TestImpl()
Dparallel_move_test.cc36 static void DumpLocationForTest(std::ostream& os, Location location) { in DumpLocationForTest() argument
37 if (location.IsConstant()) { in DumpLocationForTest()
39 } else if (location.IsPair()) { in DumpLocationForTest()
40 DumpRegisterForTest(os, location.low()); in DumpLocationForTest()
42 DumpRegisterForTest(os, location.high()); in DumpLocationForTest()
43 } else if (location.IsRegister()) { in DumpLocationForTest()
44 DumpRegisterForTest(os, location.reg()); in DumpLocationForTest()
45 } else if (location.IsStackSlot()) { in DumpLocationForTest()
46 os << location.GetStackIndex() << "(sp)"; in DumpLocationForTest()
48 DCHECK(location.IsDoubleStackSlot())<< location; in DumpLocationForTest()
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/
DCodeTranslator.java101 mInsn.location = loc; in codeItemToMutatableCode()
113 int targetLoc = mInsn.location + (int) containsTarget.getTarget(mInsn.insn); in codeItemToMutatableCode()
120 int targetLoc = mInsn.location + (int) containsTarget.getTarget(mInsn.insn); in codeItemToMutatableCode()
159 if (mInsn.location != loc) { in mutatableCodeToCodeItem()
178 int dataOffset = target.location - mInsn.location; in mutatableCodeToCodeItem()
183 int branchOffset = target.location - mInsn.location; in mutatableCodeToCodeItem()
318 if (mTryBlock.startInsn.location > mTryBlock.endInsn.location) { in updateTryBlocks()
332 if (first.endInsn.location > second.startInsn.location) { in updateTryBlocks()
342 while (first.endInsn.location > newInsn.location) { in updateTryBlocks()
358 tryItem.startAddr = mTryBlock.startInsn.location; in updateTryBlocks()
[all …]
DMInsn.java36 public int location; field in MInsn
50 newInsn.location = location; in clone()
60 location, in toString()
/art/compiler/dex/quick/
Dgen_loadstore.cc46 if (rl_src.location == kLocPhysReg) { in LoadValueDirect()
53 DCHECK((rl_src.location == kLocDalvikFrame) || in LoadValueDirect()
54 (rl_src.location == kLocCompilerTemp)); in LoadValueDirect()
86 if (rl_src.location == kLocPhysReg) { in LoadValueDirectWide()
91 DCHECK((rl_src.location == kLocDalvikFrame) || in LoadValueDirectWide()
92 (rl_src.location == kLocCompilerTemp)); in LoadValueDirectWide()
112 if (rl_src.location == kLocPhysReg) { in LoadValue()
130 rl_src.location = kLocPhysReg; in LoadValue()
152 if (rl_src.location == kLocPhysReg) { in StoreValue()
155 (rl_dest.location == kLocPhysReg)) { in StoreValue()
[all …]
/art/runtime/jdwp/
Djdwp_request.cc144 JdwpLocation location; in ReadLocation() local
145 memset(&location, 0, sizeof(location)); // Allows memcmp(3) later. in ReadLocation()
146 location.type_tag = ReadTypeTag(); in ReadLocation()
147 location.class_id = ReadObjectId("class"); in ReadLocation()
148 location.method_id = ReadMethodId(); in ReadLocation()
149 location.dex_pc = Read8BE(); in ReadLocation()
150 VLOG(jdwp) << " location " << location; in ReadLocation()
151 return location; in ReadLocation()
Djdwp_expand_buf.cc179 void expandBufAddLocation(ExpandBuf* buf, const JdwpLocation& location) { in expandBufAddLocation() argument
180 expandBufAdd1(buf, location.type_tag); in expandBufAddLocation()
181 expandBufAddObjectId(buf, location.class_id); in expandBufAddLocation()
182 expandBufAddMethodId(buf, location.method_id); in expandBufAddLocation()
183 expandBufAdd8BE(buf, location.dex_pc); in expandBufAddLocation()
/art/runtime/
Dcheck_reference_map_visitor.h77 DexRegisterLocation location = in CheckOptimizedMethod() local
79 switch (location.GetKind()) { in CheckOptimizedMethod()
85 DCHECK_EQ(location.GetValue() % kFrameSlotSize, 0); in CheckOptimizedMethod()
86 CHECK(stack_mask.LoadBit(location.GetValue() / kFrameSlotSize)); in CheckOptimizedMethod()
89 CHECK_NE(register_mask & (1 << location.GetValue()), 0u); in CheckOptimizedMethod()
96 CHECK_EQ(location.GetValue(), 0); in CheckOptimizedMethod()
100 << DexRegisterLocation::PrettyDescriptor(location.GetInternalKind()); in CheckOptimizedMethod()
Dstack_map.h332 static DexRegisterLocation::Kind ComputeCompressedKind(const DexRegisterLocation& location) { in ComputeCompressedKind() argument
333 switch (location.GetInternalKind()) { in ComputeCompressedKind()
335 DCHECK_EQ(location.GetValue(), 0); in ComputeCompressedKind()
339 DCHECK_GE(location.GetValue(), 0); in ComputeCompressedKind()
340 DCHECK_LT(location.GetValue(), 1 << kValueBits); in ComputeCompressedKind()
344 DCHECK_GE(location.GetValue(), 0); in ComputeCompressedKind()
345 DCHECK_LT(location.GetValue(), 1 << kValueBits); in ComputeCompressedKind()
349 return IsShortStackOffsetValue(location.GetValue()) in ComputeCompressedKind()
354 return IsShortConstantValue(location.GetValue()) in ComputeCompressedKind()
360 << DexRegisterLocation::PrettyDescriptor(location.GetInternalKind()); in ComputeCompressedKind()
[all …]
Ddex_file_verifier_test.cc105 const char* location, in OpenDexFileBase64() argument
114 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); in OpenDexFileBase64()
127 bool success = DexFile::Open(location, location, error_msg, &tmp); in OpenDexFileBase64()
171 const char* location, in FixChecksumAndOpen() argument
180 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); in FixChecksumAndOpen()
193 if (!DexFile::Open(location, location, error_msg, &tmp)) { in FixChecksumAndOpen()
203 static bool ModifyAndLoad(const char* dex_file_content, const char* location, size_t offset, in ModifyAndLoad() argument
214 std::unique_ptr<const DexFile> file(FixChecksumAndOpen(dex_bytes.get(), length, location, in ModifyAndLoad()
Doat_file.cc83 void OatFile::CheckLocation(const std::string& location) { in CheckLocation() argument
84 CHECK(!location.empty()); in CheckLocation()
88 const std::string& location, in OpenWithElfFile() argument
91 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); in OpenWithElfFile()
103 const std::string& location, in Open() argument
109 CHECK(!filename.empty()) << location; in Open()
110 CheckLocation(location); in Open()
120 ret.reset(OpenDlopen(filename, location, requested_base, abs_dex_location, error_msg)); in Open()
147 ret.reset(OpenElfFile(file.get(), location, requested_base, oat_file_begin, false, executable, in Open()
156 OatFile* OatFile::OpenWritable(File* file, const std::string& location, in OpenWritable() argument
[all …]
Ddex_file.cc130 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, in Open() argument
140 return DexFile::OpenZip(fd.release(), location, error_msg, dex_files); in Open()
143 std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), location, true, in Open()
211 std::unique_ptr<const DexFile> DexFile::OpenFile(int fd, const char* location, bool verify, in OpenFile() argument
213 CHECK(location != nullptr); in OpenFile()
220 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location, strerror(errno)); in OpenFile()
224 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location); in OpenFile()
228 map.reset(MemMap::MapFile(length, PROT_READ, MAP_PRIVATE, fd, 0, location, error_msg)); in OpenFile()
237 "DexFile: failed to open dex file '%s' that is too short to have a header", location); in OpenFile()
243 std::unique_ptr<const DexFile> dex_file(OpenMemory(location, dex_header->checksum_, map.release(), in OpenFile()
[all …]
Doat_file.h48 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
56 const std::string& location,
68 static OatFile* OpenWritable(File* file, const std::string& location,
72 static OatFile* OpenReadable(File* file, const std::string& location,
267 static void CheckLocation(const std::string& location);
270 const std::string& location,
276 const std::string& location,
Dstack_map.cc203 DexRegisterLocation location, in DumpRegisterMapping() argument
207 << DexRegisterLocation::PrettyDescriptor(location.GetInternalKind()) in DumpRegisterMapping()
208 << " (" << location.GetValue() << ")" << suffix << '\n'; in DumpRegisterMapping()
250 DexRegisterLocation location = dex_register_location_catalog.GetDexRegisterLocation(i); in Dump() local
251 DumpRegisterMapping(os, i, location, "entry "); in Dump()
265 DexRegisterLocation location = in Dump() local
268 os, j, location, "v", in Dump()
/art/runtime/mirror/
Ddex_cache.cc34 void DexCache::Init(const DexFile* dex_file, String* location, ObjectArray<String>* strings, in Init() argument
38 CHECK(location != nullptr); in Init()
45 SetFieldObject<false>(OFFSET_OF_OBJECT_MEMBER(DexCache, location_), location); in Init()
/art/runtime/native/
Djava_lang_VMClassLoader.cc90 const std::string& location(dex_file->GetBaseLocation()); in VMClassLoader_getBootClassPathResource() local
93 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg)); in VMClassLoader_getBootClassPathResource()
95 LOG(WARNING) << "Failed to open zip archive '" << location << "': " << error_msg; in VMClassLoader_getBootClassPathResource()
104 StringAppendF(&url, "jar:file://%s!/%s", location.c_str(), name.c_str()); in VMClassLoader_getBootClassPathResource()
/art/compiler/
Dvector_output_stream.cc23 VectorOutputStream::VectorOutputStream(const std::string& location, std::vector<uint8_t>* vector) in VectorOutputStream() argument
24 : OutputStream(location), offset_(vector->size()), vector_(vector) {} in VectorOutputStream()
Doutput_stream.h36 explicit OutputStream(const std::string& location) : location_(location) {} in OutputStream() argument
Delf_writer_quick.cc78 for (uintptr_t location : locations) { in EncodeOatPatches() local
79 DCHECK_GE(location, address) << "Patch locations are not in sorted order"; in EncodeOatPatches()
80 EncodeUnsignedLeb128(buffer, dchecked_integral_cast<uint32_t>(location - address)); in EncodeOatPatches()
81 address = location; in EncodeOatPatches()
122 for (uintptr_t location : patch_locations) { in Patch() local
124 auto* to_patch = reinterpret_cast<UnalignedAddress*>(buffer->data() + location); in Patch()
130 *to_patch = (base_address + *to_patch) - (buffer_address + location); in Patch()

1234