Searched refs:location (Results 1 - 25 of 95) sorted by relevance

1234

/art/tools/dexfuzz/src/dexfuzz/program/
H A DMInsn.java22 * Base class that is a thin wrapper for Instructions currently, also tracking location
33 * The location of this instruction, as an offset in code words from the beginning.
36 public int location; field in class:MInsn
39 * Denotes if the currently associated location can be trusted.
50 newInsn.location = location;
60 location,
H A DCodeTranslator.java101 mInsn.location = loc;
113 int targetLoc = mInsn.location + (int) containsTarget.getTarget(mInsn.insn);
120 int targetLoc = mInsn.location + (int) containsTarget.getTarget(mInsn.insn);
159 if (mInsn.location != loc) {
160 Log.errorAndQuit(String.format("%s does not have expected location 0x%x",
178 int dataOffset = target.location - mInsn.location;
183 int branchOffset = target.location - mInsn.location;
318 if (mTryBlock.startInsn.location > mTryBloc
[all...]
/art/compiler/optimizing/
H A Dlocations.cc72 std::ostream& operator<<(std::ostream& os, const Location& location) { argument
73 os << location.DebugString();
74 if (location.IsRegister() || location.IsFpuRegister()) {
75 os << location.reg();
76 } else if (location.IsPair()) {
77 os << location.low() << ":" << location.high();
78 } else if (location.IsStackSlot() || location
[all...]
H A Dcommon_arm64.h54 static inline vixl::Register XRegisterFrom(Location location) { argument
55 DCHECK(location.IsRegister());
56 return vixl::Register::XRegFromCode(VIXLRegCodeFromART(location.reg()));
59 static inline vixl::Register WRegisterFrom(Location location) { argument
60 DCHECK(location.IsRegister());
61 return vixl::Register::WRegFromCode(VIXLRegCodeFromART(location.reg()));
64 static inline vixl::Register RegisterFrom(Location location, Primitive::Type type) { argument
66 return type == Primitive::kPrimLong ? XRegisterFrom(location) : WRegisterFrom(location);
78 static inline vixl::FPRegister DRegisterFrom(Location location) { argument
83 SRegisterFrom(Location location) argument
88 FPRegisterFrom(Location location, Primitive::Type type) argument
102 CPURegisterFrom(Location location, Primitive::Type type) argument
119 Int64ConstantFrom(Location location) argument
131 OperandFrom(Location location, Primitive::Type type) argument
144 StackOperandFrom(Location location) argument
158 HeapOperandFrom(Location location, Offset offset) argument
[all...]
H A Dgraph_visualizer.cc128 void DumpLocation(Location location) { argument
129 if (location.IsRegister()) {
130 codegen_.DumpCoreRegister(output_, location.reg());
131 } else if (location.IsFpuRegister()) {
132 codegen_.DumpFloatingPointRegister(output_, location.reg());
133 } else if (location.IsConstant()) {
135 HConstant* constant = location.GetConstant();
141 } else if (location.IsInvalid()) {
143 } else if (location.IsStackSlot()) {
144 output_ << location
[all...]
H A Dcode_generator.cc40 // Return whether a location is consistent with a type.
41 static bool CheckType(Primitive::Type type, Location location) { argument
42 if (location.IsFpuRegister()
43 || (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresFpuRegister))) {
45 } else if (location.IsRegister() ||
46 (location.IsUnallocated() && (location.GetPolicy() == Location::kRequiresRegister))) {
48 } else if (location.IsRegisterPair()) {
50 } else if (location
291 BlockIfInRegister(Location location, bool is_out) const argument
416 Location location = instruction->GetLocations()->InAt(i); local
709 Location location = environment->GetLocationAt(i); local
[all...]
H A Doptimizing_cfi_test.cc59 auto location = Location::RegisterLocation(core_reg); local
60 code_gen->AddAllocatedRegister(location);
67 auto location = Location::FpuRegisterLocation(fp_reg); local
68 code_gen->AddAllocatedRegister(location);
H A Dparallel_move_resolver.cc65 Location LowOf(Location location) { argument
66 if (location.IsRegisterPair()) {
67 return Location::RegisterLocation(location.low());
68 } else if (location.IsFpuRegisterPair()) {
69 return Location::FpuRegisterLocation(location.low());
70 } else if (location.IsDoubleStackSlot()) {
71 return Location::StackSlot(location.GetStackIndex());
77 Location HighOf(Location location) { argument
78 if (location.IsRegisterPair()) {
79 return Location::RegisterLocation(location
[all...]
H A Dlocations.h32 std::ostream& operator<<(std::ostream& os, const Location& location);
35 * A Location is an abstraction over the potential location
65 // Unallocated location represents a location that is not fixed and can be
66 // allocated by a register allocator. Each unallocated location has
67 // a policy that specifies what kind of location is suitable. Payload
73 // Verify that non-constant location kinds do not interfere with kConstant.
116 // Empty location. Used if there the location should be ignored.
321 LOG(FATAL) << "Should not use this location kin
[all...]
/art/compiler/
H A Doutput_stream.h36 explicit OutputStream(const std::string& location) : location_(location) {} argument
H A Dvector_output_stream.cc23 VectorOutputStream::VectorOutputStream(const std::string& location, std::vector<uint8_t>* vector) argument
24 : OutputStream(location), offset_(vector->size()), vector_(vector) {}
H A Delf_writer_quick.cc78 for (uintptr_t location : locations) {
79 DCHECK_GE(location, address) << "Patch locations are not in sorted order";
80 EncodeUnsignedLeb128(buffer, dchecked_integral_cast<uint32_t>(location - address));
81 address = location;
110 kAbsoluteAddress, // Absolute memory location.
111 kPointerRelativeAddress, // Offset relative to the location of the pointer.
122 for (uintptr_t location : patch_locations) {
124 auto* to_patch = reinterpret_cast<UnalignedAddress*>(buffer->data() + location);
130 *to_patch = (base_address + *to_patch) - (buffer_address + location);
/art/compiler/dex/
H A Dreg_location.h44 RegLocationType location:3; member in struct:art::RegLocation
52 unsigned home:1; // Does this represent the home location?
H A Dvreg_analysis.cc31 table[i].orig_sreg, storage_name[table[i].location],
46 // Allocate the location map. We also include the maximum possible temps because
47 // the temp allocation initializes reg location as well (in order to deal with
57 /* Mark the location of ArtMethod* as temporary */
58 loc[GetMethodSReg()].location = kLocCompilerTemp;
/art/runtime/
H A Dcheck_reference_map_visitor.h77 DexRegisterLocation location = local
79 switch (location.GetKind()) {
85 DCHECK_EQ(location.GetValue() % kFrameSlotSize, 0);
86 CHECK(stack_mask.LoadBit(location.GetValue() / kFrameSlotSize));
89 CHECK_NE(register_mask & (1 << location.GetValue()), 0u);
96 CHECK_EQ(location.GetValue(), 0);
99 LOG(FATAL) << "Unexpected location kind"
100 << DexRegisterLocation::PrettyDescriptor(location.GetInternalKind());
H A Ddex_file_verifier_test.cc105 const char* location,
114 std::unique_ptr<File> file(OS::CreateEmptyFile(location));
127 bool success = DexFile::Open(location, location, error_msg, &tmp);
171 const char* location,
180 std::unique_ptr<File> file(OS::CreateEmptyFile(location));
193 if (!DexFile::Open(location, location, error_msg, &tmp)) {
203 static bool ModifyAndLoad(const char* dex_file_content, const char* location, size_t offset, argument
214 std::unique_ptr<const DexFile> file(FixChecksumAndOpen(dex_bytes.get(), length, location,
104 OpenDexFileBase64(const char* base64, const char* location, std::string* error_msg) argument
170 FixChecksumAndOpen(uint8_t* bytes, size_t length, const char* location, std::string* error_msg) argument
[all...]
H A Dstack_map.h83 // Dex register location container used by DexRegisterMap and StackMapStream.
87 * The location kind used to populate the Dex register information in a
89 * - kNone: the register has no location yet, meaning it has not been set;
102 // Short location kinds, for entries fitting on one byte (3 bits
110 // Large location kinds, requiring a 5-byte encoding (1 byte for the
113 // Stack location at a large offset, meaning that the offset value
201 // Get the "surface" kind of the location, i.e., the one that doesn't
207 // Get the value of the location.
210 // Get the actual kind of the location.
238 // Short (compressed) location, fittin
332 ComputeCompressedKind(const DexRegisterLocation& location) argument
366 CanBeEncodedAsShortLocation(const DexRegisterLocation& location) argument
384 EntrySize(const DexRegisterLocation& location) argument
439 ExtractKindFromShortLocation(ShortLocation location) argument
447 ExtractValueFromShortLocation(ShortLocation location) argument
497 DexRegisterLocation location = local
507 DexRegisterLocation location = local
516 DexRegisterLocation location = local
[all...]
H A Ddex_file.cc83 // Strip ":...", which is the location
130 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, argument
140 return DexFile::OpenZip(fd.release(), location, error_msg, dex_files);
143 std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), location, true,
211 std::unique_ptr<const DexFile> DexFile::OpenFile(int fd, const char* location, bool verify, argument
213 CHECK(location != nullptr);
220 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location, strerror(errno));
224 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location);
228 map.reset(MemMap::MapFile(length, PROT_READ, MAP_PRIVATE, fd, 0, location, error_msg));
237 "DexFile: failed to open dex file '%s' that is too short to have a header", location);
261 OpenZip(int fd, const std::string& location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument
272 OpenMemory(const std::string& location, uint32_t location_checksum, MemMap* mem_map, std::string* error_msg) argument
285 Open(const ZipArchive& zip_archive, const char* entry_name, const std::string& location, std::string* error_msg, ZipOpenErrorCode* error_code) argument
330 OpenFromZip(const ZipArchive& zip_archive, const std::string& location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument
379 OpenMemory(const uint8_t* base, size_t size, const std::string& location, uint32_t location_checksum, MemMap* mem_map, const OatDexFile* oat_dex_file, std::string* error_msg) argument
395 DexFile(const uint8_t* base, size_t size, const std::string& location, uint32_t location_checksum, MemMap* mem_map, const OatDexFile* oat_dex_file) argument
1011 IsMultiDexLocation(const char* location) argument
[all...]
H A Doat_file.cc83 void OatFile::CheckLocation(const std::string& location) { argument
84 CHECK(!location.empty());
88 const std::string& location,
91 std::unique_ptr<OatFile> oat_file(new OatFile(location, false));
103 const std::string& location,
109 CHECK(!filename.empty()) << location;
110 CheckLocation(location);
120 ret.reset(OpenDlopen(filename, location, requested_base, abs_dex_location, error_msg));
147 ret.reset(OpenElfFile(file.get(), location, requested_base, oat_file_begin, false, executable,
156 OatFile* OatFile::OpenWritable(File* file, const std::string& location, argument
87 OpenWithElfFile(ElfFile* elf_file, const std::string& location, const char* abs_dex_location, std::string* error_msg) argument
102 Open(const std::string& filename, const std::string& location, uint8_t* requested_base, uint8_t* oat_file_begin, bool executable, const char* abs_dex_location, std::string* error_msg) argument
163 OpenReadable(File* file, const std::string& location, const char* abs_dex_location, std::string* error_msg) argument
170 OpenDlopen(const std::string& elf_filename, const std::string& location, uint8_t* requested_base, const char* abs_dex_location, std::string* error_msg) argument
183 OpenElfFile(File* file, const std::string& location, uint8_t* requested_base, uint8_t* oat_file_begin, bool writable, bool executable, const char* abs_dex_location, std::string* error_msg) argument
201 OatFile(const std::string& location, bool is_executable) argument
796 std::string& location = *it; local
[all...]
/art/runtime/jdwp/
H A Djdwp_request.cc144 JdwpLocation location; local
145 memset(&location, 0, sizeof(location)); // Allows memcmp(3) later.
146 location.type_tag = ReadTypeTag();
147 location.class_id = ReadObjectId("class");
148 location.method_id = ReadMethodId();
149 location.dex_pc = Read8BE();
150 VLOG(jdwp) << " location " << location;
151 return location;
[all...]
H A Djdwp_expand_buf.cc179 void expandBufAddLocation(ExpandBuf* buf, const JdwpLocation& location) { argument
180 expandBufAdd1(buf, location.type_tag);
181 expandBufAddObjectId(buf, location.class_id);
182 expandBufAddMethodId(buf, location.method_id);
183 expandBufAdd8BE(buf, location.dex_pc);
H A Djdwp_expand_buf.h64 void expandBufAddLocation(ExpandBuf* pReply, const JdwpLocation& location);
/art/compiler/dex/quick/
H A Dgen_loadstore.cc46 if (rl_src.location == kLocPhysReg) {
53 DCHECK((rl_src.location == kLocDalvikFrame) ||
54 (rl_src.location == kLocCompilerTemp));
86 if (rl_src.location == kLocPhysReg) {
91 DCHECK((rl_src.location == kLocDalvikFrame) ||
92 (rl_src.location == kLocCompilerTemp));
112 if (rl_src.location == kLocPhysReg) {
130 rl_src.location = kLocPhysReg;
152 if (rl_src.location == kLocPhysReg) {
155 (rl_dest.location
[all...]
/art/runtime/mirror/
H A Ddex_cache.cc34 void DexCache::Init(const DexFile* dex_file, String* location, ObjectArray<String>* strings, argument
38 CHECK(location != nullptr);
45 SetFieldObject<false>(OFFSET_OF_OBJECT_MEMBER(DexCache, location_), location); local
/art/runtime/native/
H A Djava_lang_VMClassLoader.cc90 const std::string& location(dex_file->GetBaseLocation());
93 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg));
95 LOG(WARNING) << "Failed to open zip archive '" << location << "': " << error_msg;
104 StringAppendF(&url, "jar:file://%s!/%s", location.c_str(), name.c_str());

Completed in 1067 milliseconds

1234