Home
last modified time | relevance | path

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

123

/art/compiler/dex/quick/
Dgen_loadstore.cc85 if (rl_src.location == kLocPhysReg) { in LoadValueDirect()
92 DCHECK((rl_src.location == kLocDalvikFrame) || in LoadValueDirect()
93 (rl_src.location == kLocCompilerTemp)); in LoadValueDirect()
121 if (rl_src.location == kLocPhysReg) { in LoadValueDirectWide()
126 DCHECK((rl_src.location == kLocDalvikFrame) || in LoadValueDirectWide()
127 (rl_src.location == kLocCompilerTemp)); in LoadValueDirectWide()
147 if (rl_src.location == kLocPhysReg) { in LoadValue()
164 rl_src.location = kLocPhysReg; in LoadValue()
190 if (rl_src.location == kLocPhysReg) { in StoreValue()
193 (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/
Doat_file.cc41 void OatFile::CheckLocation(const std::string& location) { in CheckLocation() argument
42 CHECK(!location.empty()); in CheckLocation()
46 const std::string& location, in OpenWithElfFile() argument
48 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); in OpenWithElfFile()
57 const std::string& location, in OpenMemory() argument
59 CHECK(!oat_contents.empty()) << location; in OpenMemory()
60 CheckLocation(location); in OpenMemory()
61 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); in OpenMemory()
68 const std::string& location, in Open() argument
73 CHECK(!filename.empty()) << location; in Open()
[all …]
Ddex_file_verifier_test.cc104 static const DexFile* OpenDexFileBase64(const char* base64, const char* location, in OpenDexFileBase64() argument
113 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); in OpenDexFileBase64()
126 bool success = DexFile::Open(location, location, error_msg, &tmp); in OpenDexFileBase64()
169 static const DexFile* FixChecksumAndOpen(byte* bytes, size_t length, const char* location, in FixChecksumAndOpen() argument
178 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); in FixChecksumAndOpen()
191 if (!DexFile::Open(location, location, error_msg, &tmp)) { in FixChecksumAndOpen()
201 static bool ModifyAndLoad(const char* location, size_t offset, uint8_t new_val, in ModifyAndLoad() argument
212 std::unique_ptr<const DexFile> file(FixChecksumAndOpen(dex_bytes.get(), length, location, in ModifyAndLoad()
Ddex_file.cc121 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, in Open() argument
130 return DexFile::OpenZip(fd.release(), location, error_msg, dex_files); in Open()
133 std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), location, true, in Open()
176 const DexFile* DexFile::OpenFile(int fd, const char* location, bool verify, in OpenFile() argument
178 CHECK(location != nullptr); in OpenFile()
185 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location, strerror(errno)); in OpenFile()
189 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location); in OpenFile()
193 map.reset(MemMap::MapFile(length, PROT_READ, MAP_PRIVATE, fd, 0, location, error_msg)); in OpenFile()
202 "DexFile: failed to open dex file '%s' that is too short to have a header", location); in OpenFile()
208 const DexFile* dex_file = OpenMemory(location, dex_header->checksum_, map.release(), error_msg); in OpenFile()
[all …]
Doat_file.h45 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
50 const std::string& location,
61 static OatFile* OpenWritable(File* file, const std::string& location, std::string* error_msg);
63 static OatFile* OpenReadable(File* file, const std::string& location, std::string* error_msg);
67 const std::string& location,
293 static void CheckLocation(const std::string& location);
296 const std::string& location,
301 const std::string& location,
Ddex_file_verifier.h30 const char* location, std::string* error_msg);
37 DexFileVerifier(const DexFile* dex_file, const byte* begin, size_t size, const char* location) in DexFileVerifier() argument
38 : dex_file_(dex_file), begin_(begin), size_(size), location_(location), in DexFileVerifier()
Ddex_file.h387 static bool Open(const char* filename, const char* location, std::string* error_msg,
392 const std::string& location, in Open() argument
396 return OpenMemory(base, size, location, location_checksum, NULL, oat_file, error_msg); in Open()
400 static bool OpenFromZip(const ZipArchive& zip_archive, const std::string& location,
413 static std::string GetBaseLocation(const char* location) { in GetBaseLocation() argument
414 const char* pos = strrchr(location, kMultiDexSeparator); in GetBaseLocation()
416 return location; in GetBaseLocation()
418 return std::string(location, pos - location); in GetBaseLocation()
900 static const DexFile* OpenFile(int fd, const char* location, bool verify, std::string* error_msg);
903 static bool OpenZip(int fd, const std::string& location, std::string* error_msg,
[all …]
Dutils.cc1254 bool GetDalvikCacheFilename(const char* location, const char* cache_location, in GetDalvikCacheFilename() argument
1256 if (location[0] != '/') { in GetDalvikCacheFilename()
1257 *error_msg = StringPrintf("Expected path in location to be absolute: %s", location); in GetDalvikCacheFilename()
1260 std::string cache_file(&location[1]); // skip leading slash in GetDalvikCacheFilename()
1261 if (!EndsWith(location, ".dex") && !EndsWith(location, ".art") && !EndsWith(location, ".oat")) { in GetDalvikCacheFilename()
1270 std::string GetDalvikCacheFilenameOrDie(const char* location, const char* cache_location) { in GetDalvikCacheFilenameOrDie() argument
1273 if (!GetDalvikCacheFilename(location, cache_location, &ret, &error_msg)) { in GetDalvikCacheFilenameOrDie()
1288 std::string GetSystemImageFilename(const char* location, const InstructionSet isa) { in GetSystemImageFilename() argument
1291 std::string filename(location); in GetSystemImageFilename()
1296 std::string DexFilenameToOdexFilename(const std::string& location, const InstructionSet isa) { in DexFilenameToOdexFilename() argument
[all …]
Dcommon_runtime_test.cc177 const DexFile* CommonRuntimeTest::LoadExpectSingleDexFile(const char* location) { in LoadExpectSingleDexFile() argument
180 if (!DexFile::Open(location, location, &error_msg, &dex_files)) { in LoadExpectSingleDexFile()
181 LOG(FATAL) << "Could not open .dex file '" << location << "': " << error_msg << "\n"; in LoadExpectSingleDexFile()
184 CHECK_EQ(1U, dex_files.size()) << "Expected only one dex file in " << location; in LoadExpectSingleDexFile()
/art/compiler/optimizing/
Dgraph_visualizer.cc104 void DumpLocation(Location location, Primitive::Type type) { in DumpLocation() argument
105 if (location.IsRegister()) { in DumpLocation()
107 codegen_.DumpFloatingPointRegister(output_, location.reg().RegId()); in DumpLocation()
109 codegen_.DumpCoreRegister(output_, location.reg().RegId()); in DumpLocation()
111 } else if (location.IsConstant()) { in DumpLocation()
113 } else if (location.IsInvalid()) { in DumpLocation()
115 } else if (location.IsStackSlot()) { in DumpLocation()
116 output_ << location.GetStackIndex() << "(sp)"; in DumpLocation()
118 DCHECK(location.IsDoubleStackSlot()); in DumpLocation()
119 output_ << "2x" << location.GetStackIndex() << "(sp)"; in DumpLocation()
Dlocations.h280 void SetInAt(uint32_t at, Location location) { in SetInAt() argument
281 inputs_.Put(at, location); in SetInAt()
292 void SetOut(Location location) { in SetOut() argument
293 output_ = Location(location); in SetOut()
296 void AddTemp(Location location) { in AddTemp() argument
297 temps_.Add(location); in AddTemp()
304 void SetTempAt(uint32_t at, Location location) { in SetTempAt() argument
305 temps_.Put(at, location); in SetTempAt()
Dregister_allocator.cc88 void RegisterAllocator::BlockRegister(Location location, in BlockRegister() argument
92 int reg = location.reg().RegId(); in BlockRegister()
917 Location location = locations->Out(); in Resolve() local
920 if (location.IsStackSlot()) { in Resolve()
921 location = Location::StackSlot(location.GetStackIndex() + codegen_->GetFrameSize()); in Resolve()
922 current->SetSpillSlot(location.GetStackIndex()); in Resolve()
923 locations->SetOut(location); in Resolve()
924 } else if (location.IsDoubleStackSlot()) { in Resolve()
925 location = Location::DoubleStackSlot(location.GetStackIndex() + codegen_->GetFrameSize()); in Resolve()
926 current->SetSpillSlot(location.GetStackIndex()); in Resolve()
[all …]
Dssa_liveness_analysis.h293 Location location = locations->Out(); in FirstRegisterUseAfter() local
297 if (location.IsUnallocated()) { in FirstRegisterUseAfter()
298 if ((location.GetPolicy() == Location::kRequiresRegister) in FirstRegisterUseAfter()
299 || (location.GetPolicy() == Location::kSameAsFirstInput in FirstRegisterUseAfter()
311 Location location = use->GetUser()->GetLocations()->InAt(use->GetInputIndex()); in FirstRegisterUseAfter() local
312 if (location.IsUnallocated() && location.GetPolicy() == Location::kRequiresRegister) { in FirstRegisterUseAfter()
/art/runtime/native/
Djava_lang_VMClassLoader.cc85 const std::string& location(dex_file->GetBaseLocation()); in VMClassLoader_getBootClassPathResource() local
88 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg)); in VMClassLoader_getBootClassPathResource()
90 LOG(WARNING) << "Failed to open zip archive '" << location << "': " << error_msg; in VMClassLoader_getBootClassPathResource()
99 StringAppendF(&url, "jar:file://%s!/%s", location.c_str(), name.c_str()); in VMClassLoader_getBootClassPathResource()
/art/runtime/mirror/
Ddex_cache.cc35 String* location, in Init() argument
41 CHECK(location != nullptr); in Init()
48 SetFieldObject<false>(OFFSET_OF_OBJECT_MEMBER(DexCache, location_), location); in Init()
/art/build/
DAndroid.oat.mk34 $$(addprefix --dex-location=,$$(HOST_CORE_DEX_LOCATIONS)) --oat-file=$$($(1)HOST_CORE_OAT_OUT) \
35 --oat-location=$$($(1)HOST_CORE_OAT) --image=$$($(1)HOST_CORE_IMG_OUT) \
57 …$$(addprefix --dex-location=,$$(TARGET_CORE_DEX_LOCATIONS)) --oat-file=$$($(1)TARGET_CORE_OAT_OUT)…
58 --oat-location=$$($(1)TARGET_CORE_OAT) --image=$$($(1)TARGET_CORE_IMG_OUT) \
/art/compiler/
Doutput_stream.h37 explicit OutputStream(const std::string& location) : location_(location) {} in OutputStream() argument
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()
/art/compiler/dex/
Dlocal_value_numbering.cc163 uint16_t type, uint16_t location, uint16_t memory_version) { in LookupGlobalValue() argument
164 return gvn->LookupValue(kAliasingArrayOp, type, location, memory_version); in LookupGlobalValue()
168 uint16_t type, uint16_t location) { in LookupMergeValue() argument
170 uint16_t array = gvn->GetArrayLocationBase(location); in LookupMergeValue()
172 uint16_t index = gvn->GetArrayLocationIndex(location); in LookupMergeValue()
176 gvn, lvn, &lvn->aliasing_array_value_map_, type, location); in LookupMergeValue()
190 uint16_t type, uint16_t location) { in LookupMergeLocationValue() argument
191 return gvn->LookupValue(kMergeBlockAliasingArrayMergeLocationOp, type, location, lvn_id); in LookupMergeLocationValue()
228 uint16_t location) { in AliasingValuesMergeGet() argument
236 value_name = Versions::LookupGlobalValue(gvn, key, location, start_version); in AliasingValuesMergeGet()
[all …]
Dglobal_value_numbering.h160 uint16_t GetArrayLocationBase(uint16_t location) const { in GetArrayLocationBase() argument
161 return array_location_reverse_map_[location]->first.base; in GetArrayLocationBase()
165 uint16_t GetArrayLocationIndex(uint16_t location) const { in GetArrayLocationIndex() argument
166 return array_location_reverse_map_[location]->first.index; in GetArrayLocationIndex()
Dglobal_value_numbering.cc175 uint16_t location = static_cast<uint16_t>(array_location_reverse_map_.size()); in GetArrayLocation() local
176 DCHECK_EQ(location, array_location_reverse_map_.size()); // No overflow. in GetArrayLocation()
177 auto it = array_location_map_.PutBefore(lb, key, location); in GetArrayLocation()
179 return location; in GetArrayLocation()
/art/compiler/dex/quick/x86/
Dint_x86.cc317 (rl_src.location == kLocPhysReg && rl_src.reg.GetRegNum() == rl_result.reg.GetRegNum()); in GenSelect()
890 if (rl_src_value.location == kLocPhysReg && !IsByteRegister(rl_src_value.reg)) { in GenInlinedPoke()
1407 bool src1_in_reg = rl_src1.location == kLocPhysReg; in GenMulLongConst()
1494 bool src1_in_reg = rl_src1.location == kLocPhysReg; in GenMulLong()
1495 bool src2_in_reg = rl_src2.location == kLocPhysReg; in GenMulLong()
1584 DCHECK_EQ(rl_dest.location, kLocPhysReg); in GenLongRegOrMemOp()
1586 if (rl_src.location == kLocPhysReg) { in GenLongRegOrMemOp()
1609 DCHECK((rl_src.location == kLocDalvikFrame) || in GenLongRegOrMemOp()
1610 (rl_src.location == kLocCompilerTemp)); in GenLongRegOrMemOp()
1629 if (rl_dest.location == kLocPhysReg) { in GenLongArith()
[all …]
/art/compiler/utils/arm/
Dassembler_thumb2.h505 Branch(const Thumb2Assembler* assembler, Type type, uint32_t location, Condition cond = AL) :
506 assembler_(assembler), type_(type), location_(location), in assembler_()
514 Branch(const Thumb2Assembler* assembler, Type type, uint32_t location, Register rn) : in Branch() argument
515 assembler_(assembler), type_(type), location_(location), in Branch()
522 Branch(const Thumb2Assembler* assembler, Type type, uint32_t location, uint32_t target,
524 assembler_(assembler), type_(type), location_(location), in assembler_()
672 Branch::Size AddBranch(Branch::Type type, uint32_t location, uint32_t target,
674 branches_.push_back(new Branch(this, type, location, target, cond));
679 uint16_t AddBranch(Branch::Type type, uint32_t location, Register rn) { in AddBranch() argument
680 branches_.push_back(new Branch(this, type, location, rn)); in AddBranch()
[all …]

123