/art/compiler/utils/ |
D | assembler_test_base.h | 82 WriteFile(ref_asm_file, assembly_text.data(), assembly_text.size()); in Driver() 119 if (art_code.size() > ref_code.size()) { in Driver() 122 "ART code size=" << art_code.size() << ", reference code size=" << ref_code.size(); in Driver() 123 } else if (art_code.size() < ref_code.size()) { in Driver() 185 bool success = file->ReadFully(&data[0], data.size()); in ReadFile() 190 void WriteFile(const std::string& filename, const void* data, size_t size) { in WriteFile() argument 193 bool success = file->WriteFully(data, size); in WriteFile() 219 builder->GetText()->WriteFully(code.data(), code.size()); in WriteElf() 244 pos = match + from.size(); in Replace() 246 output += str.substr(pos, str.size() - pos); in Replace()
|
D | swap_space.h | 39 void* Alloc(size_t size) REQUIRES(!lock_); 40 void Free(void* ptr, size_t size) REQUIRES(!lock_); 52 mutable size_t size; member 58 return reinterpret_cast<uintptr_t>(ptr) + size; in End() 74 : size(sz), free_by_start_entry(entry) { } in FreeBySizeEntry() 78 mutable size_t size; member 83 if (lhs.size != rhs.size) { in operator() 84 return lhs.size < rhs.size; in operator()
|
D | stack_checks.h | 37 static inline bool FrameNeedsStackCheck(size_t size, InstructionSet isa ATTRIBUTE_UNUSED) { in FrameNeedsStackCheck() argument 38 return size >= kLargeFrameSize; in FrameNeedsStackCheck()
|
/art/libdexfile/dex/ |
D | dex_file_loader.cc | 70 if (map.size() == 0) { in Extract() 74 const int32_t error = ExtractToMemory(handle_, zip_entry_, map.data(), map.size()); in Extract() 110 static DexZipArchive* Open(const uint8_t* base, size_t size, std::string* error_msg) { in Open() argument 113 const int32_t error = OpenArchiveFromMemory(nonconst_base, size, "ZipArchiveMemory", &handle); in Open() 188 const char* suffix = dex_location + base_location.size(); in GetDexCanonicalLocation() 223 size_t size, in Open() argument 232 size, in Open() 247 size_t size, in OpenWithDataSection() argument 257 size, in OpenWithDataSection() 272 size_t size, in OpenAll() argument [all …]
|
D | dex_file_loader_test.cc | 36 size_t size; in DecodeBase64Vec() local 37 std::unique_ptr<uint8_t[]> data(DecodeBase64(src, &size)); in DecodeBase64Vec() 38 res.resize(size); in DecodeBase64Vec() 39 memcpy(res.data(), data.get(), size); in DecodeBase64Vec() 206 CHECK_NE(dex_bytes->size(), 0u); in DecodeDexFile() 222 dex_bytes->size(), in OpenDexFilesBase64() 242 EXPECT_EQ(1U, dex_files.size()); in OpenDexFileBase64() 256 dex_bytes->size(), in OpenDexFileInMemoryBase64() 358 dex_bytes.size(), in TEST_F() 377 dex_bytes.size(), in TEST_F() [all …]
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 86 CHECK_LE(pos, code->size()); in InsertInsn() 98 InsertInsn(code, code->size(), insn); in PushBackInsn() 103 raw_code.reserve(insns.size() * 4u); in RawCode() 119 const uint32_t gap_start = method1_offset + method1_code.size(); in Create2MethodsWithGap() 219 return CompileMethodCallThunk().size(); in MethodCallThunkSize() 224 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 225 LOG(ERROR) << "output_.size() == " << output_.size() << " < " in CheckThunk() 226 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 229 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 391 CHECK_EQ(compiled_method_refs_.size(), compiled_methods_.size()); in TestNopsAdrpInsn2AndUseHasThunk() [all …]
|
D | relative_patcher_arm64.cc | 109 if (reserved_adrp_thunks_ != adrp_thunk_locations_.size()) { in ReserveSpace() 110 size_t num_adrp_thunks = adrp_thunk_locations_.size() - reserved_adrp_thunks_; in ReserveSpace() 113 reserved_adrp_thunks_ = adrp_thunk_locations_.size(); in ReserveSpace() 126 uint32_t max_extra_space = MaxExtraSpace(num_adrp, code.size()); in ReserveSpace() 135 uint32_t thunk_offset = compiled_method->AlignCode(quick_code_offset + code.size()); in ReserveSpace() 154 if (reserved_adrp_thunks_ != adrp_thunk_locations_.size()) { in ReserveSpaceEnd() 155 size_t num_adrp_thunks = adrp_thunk_locations_.size() - reserved_adrp_thunks_; in ReserveSpaceEnd() 158 reserved_adrp_thunks_ = adrp_thunk_locations_.size(); in ReserveSpaceEnd() 169 CHECK_ALIGNED(current_method_thunks_.size(), kAdrpThunkSize); in WriteThunks() 170 size_t num_thunks = current_method_thunks_.size() / kAdrpThunkSize; in WriteThunks() [all …]
|
/art/benchmark/scoped-primitive-array/ |
D | scoped_primitive_array.cc | 25 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() 35 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() 45 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() 55 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureLongArray()
|
/art/test/906-iterate-heap/ |
D | iterate_heap.cc | 47 virtual jint Handle(jlong class_tag, jlong size, jlong* tag_ptr, jint length) = 0; 51 jlong size, in HeapIterationCallback() argument 56 return config->Handle(class_tag, size, tag_ptr, length); in HeapIterationCallback() 88 jlong size ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapCount() 123 jint Handle(jlong class_tag, jlong size, jlong* tag_ptr, jint length) override { in Java_art_Test906_iterateThroughHeapData() argument 125 sizes_.push_back(size); in Java_art_Test906_iterateThroughHeapData() 148 for (size_t i = 0; i != config.class_tags_.size(); ++i) { in Java_art_Test906_iterateThroughHeapData() 155 return static_cast<jint>(config.class_tags_.size()); in Java_art_Test906_iterateThroughHeapData() 165 jlong size ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapAdd() 186 jlong size ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapString() [all …]
|
/art/runtime/arch/x86_64/ |
D | asm_support_x86_64.S | 68 #define SIZE(name) .size name, .-name 75 #define CFI_ADJUST_CFA_OFFSET(size) .cfi_adjust_cfa_offset size argument 76 #define CFI_DEF_CFA(reg,size) .cfi_def_cfa reg,size argument 79 #define CFI_REL_OFFSET(reg,size) .cfi_rel_offset reg,size argument 92 #define CFI_ADJUST_CFA_OFFSET(size) argument 93 #define CFI_DEF_CFA(reg,size) argument 96 #define CFI_REL_OFFSET(reg,size) argument 134 MACRO3(CFI_DEF_CFA_BREG_PLUS_UCONST, reg, offset, size) 135 .if ((\size) < 0) 141 .if ((\size) < 0x80) [all …]
|
/art/runtime/ |
D | cha_test.cc | 47 ASSERT_EQ(dependents.size(), 1u); in TEST_F() 55 ASSERT_EQ(dependents.size(), 2u); in TEST_F() 67 ASSERT_EQ(dependents.size(), 1u); in TEST_F() 74 ASSERT_EQ(dependents.size(), 1u); in TEST_F() 76 ASSERT_EQ(dependents.size(), 1u); in TEST_F() 83 ASSERT_EQ(dependents.size(), 1u); in TEST_F()
|
/art/libdexfile/external/include/art_api/ |
D | dex_file_external.h | 36 const struct ExtDexFileString* ExtDexFileMakeString(const char* str, size_t size); 40 const char* ExtDexFileGetString(const struct ExtDexFileString* ext_string, /*out*/ size_t* size); 55 /*inout*/ size_t* size,
|
/art/compiler/ |
D | common_compiler_test.cc | 64 if (compiled_method != nullptr && compiled_method->GetQuickCode().size() != 0u) { in MakeExecutable() 66 const uint32_t code_size = code.size(); in MakeExecutable() 69 : sizeof(OatQuickMethodHeader) + vmap_table.size(); in MakeExecutable() 75 const size_t size = vmap_table.size() + sizeof(method_header) + code_size; in MakeExecutable() local 76 chunk->reserve(size + max_padding); in MakeExecutable() 82 CHECK_EQ(chunk->size(), size); in MakeExecutable() 83 const void* unaligned_code_ptr = chunk->data() + (size - code_size); in MakeExecutable() 87 CHECK_GE(chunk->capacity(), chunk->size() + padding); in MakeExecutable() 90 CHECK_EQ(code_ptr, static_cast<const void*>(chunk->data() + (chunk->size() - code_size))); in MakeExecutable() 91 MakeExecutable(code_ptr, code.size()); in MakeExecutable()
|
/art/libartbase/base/ |
D | strlcpy.h | 31 static inline size_t strlcpy(char* dst, const char* src, size_t size) { in strlcpy() argument 33 return snprintf(dst, size, "%s", src); in strlcpy()
|
D | hash_set_test.cc | 72 ASSERT_EQ(hash_set.size(), 0U); in TEST_F() 79 ASSERT_EQ(hash_set.size(), 0U); in TEST_F() 96 ASSERT_EQ(strings.size(), hash_set.size()); in TEST_F() 166 for (size_t i = 0; i < strings.size(); ++i) { in TEST_F() 233 ASSERT_EQ(hash_set.size(), std_set.size()); in TEST_F() 235 static_cast<ssize_t>(hash_set.size())); in TEST_F() 341 for (size_t size : sizes) { in TEST_F() local 342 hash_set.reserve(size); in TEST_F() 345 CHECK_GE(hash_set.ElementsUntilExpand(), size); in TEST_F() 348 while (hash_set.size() < size) { in TEST_F() [all …]
|
D | bit_table.h | 235 size_t size() const { return this->end() - this->begin(); } in size() function 271 DCHECK_EQ(values.size(), kNumColumns); in Entry() 297 size_t size() const { return rows_.size(); } in size() function 315 if (count <= size() - index && 327 uint32_t index = size(); 341 for (uint32_t r = 0; r < size(); r++) { in Measure() 358 header[0] = size(); in Encode() 364 for (uint32_t r = 0; r < size(); r++) { in Encode() 375 DCHECK_EQ(size(), table.NumRows()); in Encode() 379 for (uint32_t r = 0; r < size(); r++) { in Encode() [all …]
|
D | histogram-inl.h | 74 DCHECK_LE(frequency_.size(), max_buckets_); in GrowBuckets() 75 if (frequency_.size() == max_buckets_) { in GrowBuckets() 76 DCHECK_EQ(frequency_.size() % 2, 0u); in GrowBuckets() 79 const size_t limit = frequency_.size() / 2; in GrowBuckets() 85 while (frequency_.size() > limit) { in GrowBuckets() 125 return frequency_.size(); in GetBucketCount() 165 for (size_t bin_idx = 0; bin_idx < data.freq_.size(); ++bin_idx) { in PrintBins() 179 for (size_t bin_idx = 0; bin_idx < frequency_.size(); ++bin_idx) { in DumpBins() 228 for (size_t idx = 0; idx < frequency_.size(); idx++) { in CreateHistogram() 242 DCHECK_GT(data.perc_.size(), 0ull); in Percentile() [all …]
|
/art/test/920-objects/ |
D | objects.cc | 32 jlong size; in Java_art_Test920_getObjectSize() local 34 jvmtiError result = jvmti_env->GetObjectSize(object, &size); in Java_art_Test920_getObjectSize() 43 return size; in Java_art_Test920_getObjectSize()
|
/art/test/1001-app-image-regions/ |
D | expected.txt | 3 Region size 262144 4 App image section size large enough true
|
/art/test/530-regression-lse/src/ |
D | Main.java | 37 private static ByteBuffer allocateMapped(int size) throws Exception { in allocateMapped() argument 41 raf.setLength(size); in allocateMapped() 43 MappedByteBuffer result = ch.map(FileChannel.MapMode.READ_WRITE, 0, size); in allocateMapped()
|
/art/compiler/debug/ |
D | elf_debug_frame_writer.h | 160 sorted_method_infos.reserve(method_infos.size()); in WriteCFISection() 161 for (size_t i = 0; i < method_infos.size(); i++) { in WriteCFISection() 180 binary_search_table.reserve(2 * sorted_method_infos.size()); in WriteCFISection() 190 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection() 207 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection() 213 if (kWriteDebugFrameHdr && method_infos.size() > kMinDebugFrameHdrEntries) { in WriteCFISection() 223 header.PushUint32(dchecked_integral_cast<uint32_t>(binary_search_table.size()/2)); in WriteCFISection() 227 header_section->WriteFully(header_buffer.data(), header_buffer.size()); in WriteCFISection() 228 header_section->WriteFully(binary_search_table.data(), binary_search_table.size()); in WriteCFISection()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | MapItem.java | 42 public int size; field in MapItem 49 size = file.readUInt(); in read() 61 file.writeUInt(size); in write()
|
/art/runtime/gc/space/ |
D | image_space_test.cc | 67 CHECK_EQ(bcp.size(), bcp_locations.size()); in TEST_F() 104 const char* app_base_name = kBaseNames[std::size(kBaseNames) - 1u]; in TEST_F() 153 size_t test_string_length = std::size(test_string) - 1u; // Equals UTF-16 length. in TEST_F() 171 ASSERT_EQ(2u, extension_image_locations.size()); in TEST_F() 177 ASSERT_EQ(bcp.size(), boot_image_spaces.size()); in TEST_F() 178 EXPECT_TRUE(contains_test_string(boot_image_spaces[boot_image_spaces.size() - 2u].get())); in TEST_F() 180 EXPECT_FALSE(contains_test_string(boot_image_spaces[boot_image_spaces.size() - 1u].get())); in TEST_F() 183 std::swap(bcp[bcp.size() - 2u], bcp[bcp.size() - 1u]); in TEST_F() 184 std::swap(bcp_locations[bcp_locations.size() - 2u], bcp_locations[bcp_locations.size() - 1u]); in TEST_F() 190 ASSERT_EQ(bcp.size(), boot_image_spaces.size()); in TEST_F() [all …]
|
/art/profman/ |
D | profile_assistant.cc | 57 for (size_t i = 0; i < profile_files.size(); i++) { in ProcessProfilesInternal() 122 explicit ScopedFlockList(size_t size) : flocks_(size) {} in ScopedFlockList() argument 126 for (size_t i = 0; i < filenames.size(); i++) { in Init() 138 for (size_t i = 0; i < fds.size(); i++) { in Init() 164 ScopedFlockList profile_files(profile_files_fd.size()); in ProcessProfiles() 194 ScopedFlockList profile_files_list(profile_files.size()); in ProcessProfiles()
|
/art/compiler/optimizing/ |
D | linear_order.cc | 87 DCHECK_EQ(linear_order.size(), graph->GetReversePostOrder().size()); in LinearizeGraphInternal() 98 ScopedArenaVector<uint32_t> forward_predecessors(graph->GetBlocks().size(), in LinearizeGraphInternal() 101 size_t number_of_forward_predecessors = block->GetPredecessors().size(); in LinearizeGraphInternal() 128 DCHECK_EQ(num_added, linear_order.size()); in LinearizeGraphInternal()
|