/art/cmdline/ |
H A D | token_range.h | 98 // Non-copying constructor. Retains reference to an existing list of tokens, with offset. 163 // Look up a token by it's offset. 164 const std::string& GetToken(size_t offset) const { 165 assert(offset < Size()); 166 return *(begin_ + offset); 241 TokenRange Slice(size_t offset, size_t length = std::string::npos) const { 242 assert(offset < Size()); 244 if (length != std::string::npos && offset + length > Size()) { 245 length = Size() - offset; 252 it_end = begin() + offset [all...] |
/art/compiler/ |
H A D | common_compiler_test.cc | 79 size_t offset = dchecked_integral_cast<size_t>(reinterpret_cast<uintptr_t>(unaligned_code_ptr)); local 80 size_t padding = compiled_method->AlignCode(offset) - offset;
|
H A D | compiled_method.cc | 49 size_t CompiledCode::AlignCode(size_t offset) const { 50 return AlignCode(offset, instruction_set_); 53 size_t CompiledCode::AlignCode(size_t offset, InstructionSet instruction_set) { argument 54 return RoundUp(offset, GetInstructionSetAlignment(instruction_set));
|
H A D | compiled_method.h | 54 // To align an offset from a page-aligned value to make it suitable 57 size_t AlignCode(size_t offset) const; 58 static size_t AlignCode(size_t offset, InstructionSet instruction_set); 331 uint32_t element_offset_; // Element offset in the dex cache arrays. 341 // Literal offset of the insn loading PC (same as literal_offset if it's the same insn, 435 // For quick code, a set of pairs (PC, DEX) mapping from native PC offset to DEX offset.
|
H A D | elf_builder.h | 206 off_t Seek(off_t offset, Whence whence) OVERRIDE { 208 return owner_->stream_.Seek(offset, whence); 252 Elf_Word offset = cache_.size(); local 255 return offset; 324 Elf_Word offset = current_offset_; local 327 return offset;
|
H A D | exception_test.cc | 88 size_t offset = dchecked_integral_cast<size_t>(reinterpret_cast<uintptr_t>(unaligned_code_ptr)); local 89 size_t padding = RoundUp(offset, alignment) - offset; 179 // Create three fake stack frames with mapping data created in SetUp. We map offset 3 in the
|
H A D | image_writer.cc | 337 void ImageWriter::SetImageOffset(mirror::Object* object, size_t offset) { argument 339 DCHECK_NE(offset, 0U); 342 object->SetLockWord(LockWord::FromForwardingAddress(offset), false); 347 void ImageWriter::UpdateImageOffset(mirror::Object* obj, uintptr_t offset) { argument 348 DCHECK(IsImageOffsetAssigned(obj)) << obj << " " << offset; local 349 obj->SetLockWord(LockWord::FromForwardingAddress(offset), false); 377 size_t offset = lock_word.ForwardingAddress(); local 380 DCHECK_LT(offset, image_info.image_end_); 381 return offset; 464 void ImageWriter::AddDexCacheArrayRelocation(void* array, size_t offset, DexCach argument 631 size_t offset = lock_word.ForwardingAddress(); local 646 size_t offset = lock_word.ForwardingAddress(); // TODO: ForwardingAddress should be uint32_t local 1120 size_t& offset = image_info.bin_slot_sizes_[kBinArtField]; local 1167 size_t& offset = image_info.bin_slot_sizes_[bin_type]; local 1271 size_t& offset = image_info.bin_slot_sizes_[BinTypeForNativeRelocationType(type)]; local 1900 size_t offset = GetImageOffset(obj); local [all...] |
H A D | image_writer.h | 93 PtrType GetDexCacheArrayElementImageAddress(const DexFile* dex_file, uint32_t offset) 102 it->second + offset); 237 // The offset in bytes from the beginning of the bin. Aligned to object size. 315 // We use the lock word to store the offset of the object in the image. 318 void SetImageOffset(mirror::Object* object, size_t offset) 323 void UpdateImageOffset(mirror::Object* obj, uintptr_t offset) 337 void AddDexCacheArrayRelocation(void* array, size_t offset, mirror::DexCache* dex_cache) 348 size_t offset = GetImageOffset(object); local 351 uint8_t* dst = image_info.image_->Begin() + offset; 358 const uint8_t* GetOatAddressForOffset(uint32_t offset, cons argument 548 uintptr_t offset; member in struct:art::FINAL::NativeObjectRelocation [all...] |
/art/compiler/debug/dwarf/ |
H A D | debug_frame_opcode_writer.h | 73 void ALWAYS_INLINE RelOffset(Reg reg, int offset) { argument 74 Offset(reg, offset - current_cfa_offset_); 83 void ALWAYS_INLINE RelOffsetForMany(Reg reg_base, int offset, argument 92 RelOffset(Reg(reg_base.num() + i), offset); local 93 offset += reg_size; 117 void ALWAYS_INLINE Offset(Reg reg, int offset) { argument 120 int factored_offset = FactorDataOffset(offset); // May change sign. 191 void ALWAYS_INLINE DefCFA(Reg reg, int offset) { argument 194 if (offset >= 0) { 197 this->PushUleb128(offset); // No 216 DefCFAOffset(int offset) argument 234 ValOffset(Reg reg, int offset) argument 296 SetCurrentCFAOffset(int offset) argument [all...] |
H A D | debug_info_entry_writer.h | 52 // Returns offset of the entry in compilation unit. 127 void WriteSecOffset(Attribute attrib, uint32_t offset) { argument 129 this->PushUint32(offset);
|
H A D | debug_line_opcode_writer.h | 239 uint64_t FactorCodeOffset(uint64_t offset) const { 241 DCHECK_EQ((offset >> code_factor_bits_) << code_factor_bits_, offset); 242 return offset >> code_factor_bits_;
|
H A D | dwarf_test.cc | 37 // Pick offset value which would catch Uleb vs Sleb errors. 38 const int offset = 40000; local 39 ASSERT_EQ(UnsignedLeb128Size(offset / 4), 2u); 40 ASSERT_EQ(SignedLeb128Size(offset / 4), 3u); 60 opcodes.DefCFA(reg, offset); 62 opcodes.DefCFA(reg, -offset); 66 opcodes.DefCFAOffset(offset); 68 opcodes.DefCFAOffset(-offset); 77 opcodes.Offset(Reg(0x3F), -offset); 81 opcodes.Offset(Reg(0x40), -offset); [all...] |
H A D | expression.h | 93 void WriteOpPlusUconst(uint32_t offset) { argument 95 PushUleb128(offset);
|
H A D | writer.h | 129 void UpdateUint32(size_t offset, uint32_t value) { argument 130 DCHECK_LT(offset + 3, data_->size()); 131 (*data_)[offset + 0] = (value >> 0) & 0xFF; 132 (*data_)[offset + 1] = (value >> 8) & 0xFF; 133 (*data_)[offset + 2] = (value >> 16) & 0xFF; 134 (*data_)[offset + 3] = (value >> 24) & 0xFF; 137 void UpdateUint64(size_t offset, uint64_t value) { argument 138 DCHECK_LT(offset + 7, data_->size()); 139 (*data_)[offset + 0] = (value >> 0) & 0xFF; 140 (*data_)[offset 149 UpdateUleb128(size_t offset, uint32_t value) argument [all...] |
/art/compiler/debug/ |
H A D | elf_debug_info_writer.h | 271 const size_t offset = owner_->builder_->GetDebugInfo()->GetSize(); local 274 WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_); 354 // Add offset to the methods_ field. 436 const size_t offset = owner_->builder_->GetDebugInfo()->GetSize(); local 439 WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_); 509 // Returns offset in the compilation unit. 519 size_t offset; local 526 offset = info_.StartTag(DW_TAG_reference_type); 537 offset = info_.StartTag(DW_TAG_reference_type); 596 offset 611 size_t offset = info_.StartTag(dwarf::DW_TAG_class_type); local [all...] |
H A D | elf_debug_line_writer.h | 267 size_t offset = builder_->GetDebugLine()->GetSize(); local 268 WriteDebugLineTable(directories, files, opcodes, offset, &buffer, &debug_line_patches_);
|
/art/compiler/driver/ |
H A D | compiler_driver.cc | 435 #define CREATE_TRAMPOLINE(type, abi, offset) \ 438 type ## _ENTRYPOINT_OFFSET(8, offset)); \ 441 type ## _ENTRYPOINT_OFFSET(4, offset)); \ 2887 bool CompilerDriver::IsStringInit(uint32_t method_index, const DexFile* dex_file, int32_t* offset) { argument 2890 *offset = inliner->GetOffsetForStringInit(method_index, pointer_size);
|
H A D | compiler_driver.h | 279 // Can we fast-path an IGET/IPUT access to an instance field? If yes, compute the field offset. 362 // Can we fast path instance field access? Computes field's offset and volatility. 454 bool IsStringInit(uint32_t method_index, const DexFile* dex_file, int32_t* offset);
|
/art/compiler/jni/ |
H A D | jni_compiler_test.cc | 861 jboolean my_casi(JNIEnv* env, jobject unsafe, jobject obj, jlong offset, jint expected, jint newval) { argument 864 EXPECT_EQ(INT64_C(0x12345678ABCDEF88), offset);
|
/art/compiler/jni/quick/arm/ |
H A D | calling_convention_arm.cc | 122 (itr_slots_ * kFramePointerSize)); // offset into in args 312 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_slots_ - 4) * kFramePointerSize); local 313 CHECK_LT(offset, OutArgSize()); 314 return FrameOffset(offset);
|
/art/compiler/jni/quick/arm64/ |
H A D | calling_convention_arm64.cc | 104 (itr_slots_ * sizeof(uint32_t))); // offset into in args 127 } else { // just increase the stack offset. 142 } else { // just increase the stack offset. 258 size_t offset = displacement_.Int32Value() - OutArgSize() + (args_on_stack * kFramePointerSize); local 259 CHECK_LT(offset, OutArgSize()); 260 return FrameOffset(offset);
|
/art/compiler/jni/quick/mips/ |
H A D | calling_convention_mips.cc | 89 (itr_slots_ * kFramePointerSize)); // offset into in args 239 size_t offset = displacement_.Int32Value() - OutArgSize() + (itr_slots_ * kFramePointerSize); local 240 CHECK_LT(offset, OutArgSize()); 241 return FrameOffset(offset);
|
/art/compiler/jni/quick/mips64/ |
H A D | calling_convention_mips64.cc | 89 (itr_slots_ * sizeof(uint32_t))); // offset into in args 184 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_args_ - 8) * kFramePointerSize); local 185 CHECK_LT(offset, OutArgSize()); 186 return FrameOffset(offset);
|
/art/compiler/jni/quick/x86_64/ |
H A D | calling_convention_x86_64.cc | 101 itr_slots_ * sizeof(uint32_t)); // offset into in args 191 size_t offset = itr_args_ local 194 return FrameOffset(displacement_.Int32Value() - OutArgSize() + (offset * kFramePointerSize));
|
/art/compiler/linker/arm/ |
H A D | relative_patcher_arm_base.cc | 27 uint32_t ArmBaseRelativePatcher::ReserveSpace(uint32_t offset, argument 30 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); 33 uint32_t ArmBaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { argument 37 // offset after reserving of writing any chunk. 38 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); 49 offset = CompiledMethod::AlignCode(aligned_offset + thunk_code_.size(), instruction_set_); 51 return offset; 54 uint32_t ArmBaseRelativePatcher::WriteThunks(OutputStream* out, uint32_t offset) { argument 56 return offset; 58 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set 90 ReserveSpaceInternal(uint32_t offset, const CompiledMethod* compiled_method, MethodReference method_ref, uint32_t max_extra_space) argument [all...] |