/art/runtime/gc/accounting/ |
D | card_table.cc | 34 constexpr size_t CardTable::kCardShift; 35 constexpr size_t CardTable::kCardSize; 61 CardTable* CardTable::Create(const uint8_t* heap_begin, size_t heap_capacity) { in Create() 64 size_t capacity = heap_capacity / kCardSize; in Create() 82 size_t offset = 0; in Create() 95 CardTable::CardTable(MemMap&& mem_map, uint8_t* biased_begin, size_t offset) in CardTable()
|
D | bitmap-inl.h | 35 const size_t word_index = BitIndexToWordIndex(bit_index); in AtomicTestAndSetBit() 89 const size_t shift = CTZ(left_edge); in VisitSetBits() 96 for (size_t i = index_start + 1; i < index_end; ++i) { in VisitSetBits() 101 const size_t shift = CTZ(w); in VisitSetBits() 125 const size_t shift = CTZ(right_edge); in VisitSetBits() 135 const size_t word_index = BitIndexToWordIndex(bit_index); in ModifyBit()
|
/art/libartbase/base/ |
D | debug_stack.h | 49 size_t IncrementRefCount() { return 0u; } in IncrementRefCount() 51 size_t GetRefCount() const { return 0u; } in GetRefCount() 80 size_t IncrementRefCount() { return ++ref_count_; } in IncrementRefCount() 82 size_t GetRefCount() const { return ref_count_; } in GetRefCount() 86 size_t ref_count_; 115 size_t ref_count_;
|
D | bit_struct_detail.h | 31 static constexpr size_t BitStructSizeOf(); 35 template <size_t kBitSize> 49 template <typename T, size_t kBitSize> 112 template <size_t kSize> 147 const size_t kBitStructSizeOf = BitStructSizeOf<T>(); in ValidateBitStructSize() 152 const size_t kExpectedSize = (BitStructSizeOf<T>() < kBitsPerByte) in ValidateBitStructSize() 157 const size_t kActualSize = sizeof(T) * kBitsPerByte; in ValidateBitStructSize()
|
D | bit_field.h | 30 template<typename T, size_t kPosition, size_t kSize> 34 static constexpr size_t position = kPosition; 35 static constexpr size_t size = kSize;
|
D | logging.cc | 69 for (size_t i = 1; argv[i] != nullptr; ++i) { in InitLogging() 132 int priority = kLogSeverityToAndroidLogPriority[static_cast<size_t>(log_severity)]; in LogLineLowStack() 134 size_t buf_size = 0u; in LogLineLowStack() 152 arraysize(kLogCharacters) == static_cast<size_t>(::android::base::FATAL) + 1, in LogLineLowStack() 158 TEMP_FAILURE_RETRY(write(STDERR_FILENO, &kLogCharacters[static_cast<size_t>(log_severity)], 1)); in LogLineLowStack() 176 constexpr size_t kBufSize = 256; // Small buffer. Avoid stack overflow and stack size warnings. in PrintFileToLog() 178 size_t filled_to = 0; in PrintFileToLog() 191 size_t i = filled_to; in PrintFileToLog()
|
/art/runtime/mirror/ |
D | dex_cache.cc | 71 size_t num_strings = kDexCacheStringCacheSize; in InitializeDexCache() 75 size_t num_types = kDexCacheTypeCacheSize; in InitializeDexCache() 79 size_t num_fields = kDexCacheFieldCacheSize; in InitializeDexCache() 83 size_t num_methods = kDexCacheMethodCacheSize; in InitializeDexCache() 95 size_t num_method_types = 0; in InitializeDexCache() 122 for (size_t i = 0; i < num_strings; ++i) { in InitializeDexCache() 126 for (size_t i = 0; i < num_types; ++i) { in InitializeDexCache() 130 for (size_t i = 0; i < num_methods; ++i) { in InitializeDexCache() 134 for (size_t i = 0; i < num_fields; ++i) { in InitializeDexCache() 138 for (size_t i = 0; i < num_method_types; ++i) { in InitializeDexCache() [all …]
|
D | emulated_stack_frame.cc | 39 size_t* frame_size_out, in CalculateFrameAndReferencesSize() 40 size_t* references_size_out) in CalculateFrameAndReferencesSize() 42 const size_t length = p_types->GetLength(); in CalculateFrameAndReferencesSize() 43 size_t frame_size = 0; in CalculateFrameAndReferencesSize() 44 size_t references_size = 0; in CalculateFrameAndReferencesSize() 45 for (size_t i = 0; i < length; ++i) { in CalculateFrameAndReferencesSize() 80 size_t stack_frame_size) : in EmulatedStackFrameAccessor() 138 const size_t stack_frame_size_; 140 size_t reference_idx_; 141 size_t stack_frame_idx_; [all …]
|
/art/runtime/base/ |
D | mem_map_arena_pool.cc | 36 MemMapArena(size_t size, bool low_4gb, const char* name); 41 static MemMap Allocate(size_t size, bool low_4gb, const char* name); 46 MemMapArena::MemMapArena(size_t size, bool low_4gb, const char* name) in MemMapArena() 55 MemMap MemMapArena::Allocate(size_t size, bool low_4gb, const char* name) { in Allocate() 104 Arena* MemMapArenaPool::AllocArena(size_t size) { in AllocArena() 128 size_t MemMapArenaPool::GetBytesAllocated() const { in GetBytesAllocated() 129 size_t total = 0; in GetBytesAllocated()
|
/art/libartbase/base/unix_file/ |
D | fd_file.cc | 70 static ssize_t pread(int fd, void* data, size_t byte_count, off64_t offset) { in pread() 99 static ssize_t pwrite(int fd, const void* buf, size_t count, off64_t offset) { in pwrite() 415 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { in ReadIgnoreOffset() 420 template <ssize_t (*read_func)(int, void*, size_t, off_t)> 421 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { in ReadFullyGeneric() 432 offset += static_cast<size_t>(bytes_read); // Move the offset forward. in ReadFullyGeneric() 437 bool FdFile::ReadFully(void* buffer, size_t byte_count) { in ReadFully() 441 bool FdFile::PreadFully(void* buffer, size_t byte_count, size_t offset) { in PreadFully() 446 bool FdFile::WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset) { in WriteFullyGeneric() 460 offset += static_cast<size_t>(bytes_written); in WriteFullyGeneric() [all …]
|
/art/compiler/optimizing/ |
D | code_generator_x86.h | 33 static constexpr size_t kX86WordSize = static_cast<size_t>(kX86PointerSize); 39 static constexpr size_t kParameterCoreRegistersLength = arraysize(kParameterCoreRegisters); 41 static constexpr size_t kParameterFpuRegistersLength = arraysize(kParameterFpuRegisters); 44 static constexpr size_t kRuntimeParameterCoreRegistersLength = 47 static constexpr size_t kRuntimeParameterFpuRegistersLength = 72 RegisterPair GetRegisterPairAt(size_t argument_index) { in GetRegisterPairAt() 107 size_t GetStackOffset() const { return stack_offset_; } in GetStackOffset() 114 size_t stack_offset_ = 0u; 156 void EmitMove(size_t index) override; 157 void EmitSwap(size_t index) override; [all …]
|
D | optimizing_compiler_stats.h | 123 size_t stat_index = static_cast<size_t>(stat); 129 size_t stat_index = static_cast<size_t>(stat); in GetStat() 155 for (size_t i = 0; i < arraysize(compile_stats_); ++i) { in Log() 165 for (size_t i = 0; i != arraysize(compile_stats_); ++i) { in AddTo() 180 std::atomic<uint32_t> compile_stats_[static_cast<size_t>(MethodCompilationStat::kLastStat)];
|
D | load_store_analysis.cc | 23 constexpr size_t kMaxNumberOfHeapLocations = 32; 34 const size_t vector_length1, in CanBinaryOpAndIndexAlias() 36 const size_t vector_length2) { in CanBinaryOpAndIndexAlias() 61 const size_t vector_length1, in CanBinaryOpsAlias() 63 const size_t vector_length2) { in CanBinaryOpsAlias() 92 const size_t vector_length1, in CanArrayElementsAlias() 94 const size_t vector_length2) const { in CanArrayElementsAlias()
|
D | parallel_move_resolver.h | 89 virtual void EmitMove(size_t index) = 0; 92 virtual void EmitSwap(size_t index) = 0; 116 MoveOperands* PerformMove(size_t index); 157 virtual void EmitMove(size_t index) = 0; 176 void PerformMove(size_t index); 191 size_t GetNumberOfPendingMoves();
|
D | ssa_liveness_analysis.cc | 38 size_t lifetime_position = 0; in NumberInstructions() 110 for (size_t i = 0; i < inputs.size(); ++i) { in RecursivelyProcessInputs() 148 for (size_t i = 0, e = environment->Size(); i < e; ++i) { in ProcessEnvironment() 189 size_t phi_input_index = successor->GetPredecessorIndexOf(block); in ComputeLiveRanges() 224 size_t index = use.GetIndex(); in ComputeLiveRanges() 261 size_t last_position = block->GetLoopInformation()->GetLifetimeEnd(); in ComputeLiveRanges() 339 int LiveInterval::FindFirstRegisterHint(size_t* free_until, in FindFirstRegisterHint() 360 size_t next_register_use = FirstRegisterUse(); in FindFirstRegisterHint() 362 size_t position = predecessor->GetLifetimeEnd() - 1; in FindFirstRegisterHint() 377 size_t start = GetStart(); in FindFirstRegisterHint() [all …]
|
/art/libelffile/stream/ |
D | buffered_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) override; 41 static const size_t kBufferSize = 8 * KB; 47 size_t used_;
|
/art/runtime/gc/allocator/ |
D | dlmalloc.h | 41 extern "C" void DlmallocMadviseCallback(void* start, void* end, size_t used_bytes, void* /*arg*/); 46 extern "C" void DlmallocBytesAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg… 47 extern "C" void DlmallocObjectsAllocatedCallback(void* start, void* end, size_t used_bytes, void* a…
|
/art/compiler/driver/ |
D | compiled_method_storage_test.cc | 73 constexpr size_t code_bit = 1u << 3; in TEST() 74 constexpr size_t vmap_table_bit = 1u << 2; in TEST() 75 constexpr size_t cfi_info_bit = 1u << 1; in TEST() 76 constexpr size_t patches_bit = 1u << 0; in TEST() 78 for (size_t i = 0; i != compiled_methods.size(); ++i) { in TEST() 79 for (size_t j = 0; j != compiled_methods.size(); ++j) { in TEST()
|
/art/libdexfile/dex/ |
D | compact_offset_table_test.cc | 26 const size_t kDebugInfoMinOffset = 1234567; in TEST() 47 const size_t before_size = offsets.size() * sizeof(offsets.front()); in TEST() 53 constexpr size_t kExtraOffset = 4 * 128; in TEST() 58 for (size_t i = 0; i < offsets.size(); ++i) { in TEST() 83 for (size_t i = 0; i < offsets.size(); ++i) { in TEST()
|
/art/cmdline/ |
D | token_range.h | 70 TokenRange(const char* token_list[], size_t length) in TokenRange() 156 size_t Size() const { in Size() 166 const std::string& GetToken(size_t offset) const { in GetToken() 188 assert(index >= 0 && static_cast<size_t>(index) < Size()); 243 TokenRange Slice(size_t offset, size_t length = std::string::npos) const { 275 size_t wildcard_idx = std::string::npos; in MatchSubstrings() 276 size_t string_idx = 0; in MatchSubstrings() 283 size_t wildcard_length = string_idx - wildcard_idx; in MatchSubstrings() 300 size_t next_token_idx = string.find(tok); in MatchSubstrings() 315 size_t remaining = string.size() - string_idx; in MatchSubstrings() [all …]
|
/art/oatdump/ |
D | oatdump_test.h | 233 CHECK_EQ(static_cast<size_t>(mode), static_cast<size_t>(kModeOat)); 240 auto line_handle_fn = [&found, &expected_prefixes](const char* line, size_t line_len) { 245 for (size_t i = 0; i < expected_prefixes.size(); ++i) { 255 static constexpr size_t kLineMax = 256; 257 size_t line_len = 0; 258 size_t total = 0; 261 auto line_buf_fn = [&](char* buf, size_t len) { 270 size_t pos = error_buf.size(); 278 size_t copy = std::min(kLineMax - line_len, len); 284 auto trim_space = [&line](size_t len) { [all …]
|
D | oatdump.cc | 160 const size_t rodata_size = oat_file_->GetOatHeader().GetExecutableOffset(); in Symbolize() 168 const size_t text_size = oat_file_->End() - text_begin; in Symbolize() 192 size_t code_offset = oat_header.Get ## fn_name ## Offset(); \ in Symbolize() 235 for (size_t i = 0; i < oat_dex_files.size(); i++) { in Walk() 248 for (size_t class_def_index = 0; in WalkOatDexFile() 466 size_t index = 0; in Dump() 509 for (size_t i = 0; i < oat_dex_files_.size(); i++) { in Dump() 534 static_cast<size_t>(GetInstructionSetPointerSize(instruction_set_)), in Dump() 559 for (size_t i = 0; i < oat_dex_files_.size(); i++) { in Dump() 582 for (size_t i = 0; i < oat_dex_files_.size(); i++) { in Dump() [all …]
|
/art/compiler/utils/ |
D | swap_space.h | 37 SwapSpace(int fd, size_t initial_size); 39 void* Alloc(size_t size) REQUIRES(!lock_); 40 void Free(void* ptr, size_t size) REQUIRES(!lock_); 42 size_t GetSize() { in GetSize() 52 mutable size_t size; 73 FreeBySizeEntry(size_t sz, FreeByStartSet::const_iterator entry) in FreeBySizeEntry() 78 mutable size_t size; 92 SpaceChunk NewFileChunk(size_t min_size) REQUIRES(lock_); 98 size_t size_; 153 typedef size_t size_type;
|
/art/openjdkjvmti/ |
D | ti_stack.cc | 92 size_t start_, in GetStackTraceVisitor() 93 size_t stop_, in GetStackTraceVisitor() 131 size_t start; 132 size_t stop; 154 size_t start, in MakeStackTraceVisitor() 155 size_t stop, in MakeStackTraceVisitor() 162 GetStackTraceVectorClosure(size_t start, size_t stop) in GetStackTraceVectorClosure() 179 const size_t start_input; 180 const size_t stop_input; 183 size_t start_result; [all …]
|
/art/tools/jvmti-agents/titrace/ |
D | titrace.cc | 46 explicit TiMemory(jvmtiEnv* env, T* mem, size_t size) : env_(env), mem_(mem), size_(size) { in TiMemory() 81 size_t Size() { in Size() 88 size_t size_; 93 : bytecode_(env, memory, static_cast<size_t>(size)) { in MethodBytecode() 136 size_t total = single_step_counter_; in Log() 137 for (size_t i = 0; i < arraysize(instruction_counter_); ++i) { in Log() 138 size_t inst_count = instruction_counter_[i]; in Log() 157 size_t actual_location = instruction_decoder_->LocationToOffset(static_cast<size_t>(location)); in OnSingleStep() 198 std::atomic<size_t> single_step_counter_{0u}; 199 std::atomic<size_t> instruction_counter_[256]{};
|