Searched refs:bytes (Results 51 - 75 of 75) sorted by relevance

123

/art/runtime/jit/
H A Djit.h76 void AddMemoryUsage(ArtMethod* method, size_t bytes)
H A Dprofile_compilation_info.cc294 // Returns true if all the bytes were successfully written to the file descriptor.
301 byte_count -= bytes_written; // Reduce the number of remaining bytes.
307 // Add the string bytes to the buffer.
377 << " bytes. Profile will not be written to disk.";
567 // Allow only 255 dex files to be profiled. This allows us to save bytes
1048 const size_t bytes = data->bitmap_storage.size();
1049 if (buffer.CountUnreadBytes() < bytes) {
1054 std::copy_n(base_ptr, bytes, data->bitmap_storage.data());
1055 buffer.Advance(bytes);
1298 << " bytes";
[all...]
/art/runtime/gc/
H A Dheap.h271 void RegisterNativeAllocation(JNIEnv* env, size_t bytes)
273 void RegisterNativeFree(JNIEnv* env, size_t bytes);
385 void RegisterGCAllocation(size_t bytes);
386 void RegisterGCDeAllocation(size_t bytes);
403 // For the alloc space, sets the maximum number of bytes that the heap is allowed to allocate
463 // Freed bytes can be negative in cases where we copy objects from a compacted space to a
467 // Record the bytes freed by thread-local buffer revoke.
497 // Returns the number of bytes currently allocated.
509 // Returns the total number of bytes allocated since the heap was created.
517 // Returns the total number of bytes free
[all...]
H A Dheap.cc101 // Minimum amount of remaining bytes before a concurrent GC is triggered.
113 // Default mark stack size in bytes.
1015 os << "Total bytes allocated " << PrettySize(GetBytesAllocatedEver()) << "\n";
1016 os << "Total bytes freed " << PrettySize(GetBytesFreedEver()) << "\n";
1051 os << "Registered native bytes allocated: "
1219 << " free bytes and " << PrettySize(GetFreeMemoryUntilOOME()) << " until OOM,"
1521 // Use signed comparison since freed bytes can be negative when background compaction foreground
1540 // ahead-of-time, bulk counting of bytes allocated in rosalloc thread-local buffers.
2359 VLOG(heap) << "Create zygote space with size=" << non_moving_space_->Size() << " bytes";
2555 // Move all bytes fro
3773 RegisterNativeAllocation(JNIEnv* env, size_t bytes) argument
3788 RegisterNativeFree(JNIEnv*, size_t bytes) argument
[all...]
/art/dex2oat/
H A Ddex2oat_test.cc1710 std::unique_ptr<uint8_t[]> bytes(DecodeBase64(base64, &length));
1711 CHECK(bytes != nullptr);
1712 if (!file->WriteFully(bytes.get(), length)) {
1763 std::unique_ptr<uint8_t[]> bytes(DecodeBase64(kDuplicateMethodInputDex, &length));
1764 ASSERT_GE(writer.WriteBytes(&bytes[0], length), 0);
1903 std::unique_ptr<uint8_t[]> bytes(new uint8_t[file->GetLength()]);
1904 ASSERT_TRUE(file->ReadFully(&bytes[0], file->GetLength()));
1905 ASSERT_GE(writer.WriteBytes(&bytes[0], file->GetLength()), 0);
/art/runtime/gc/space/
H A Dmalloc_space.cc253 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs);
/art/dt_fd_forward/
H A Ddt_fd_forward.cc609 uint8_t* bytes = reinterpret_cast<uint8_t*>(d); local
610 data_.insert(data_.end(), bytes, bytes + size);
/art/runtime/arch/mips64/
H A Dquick_entrypoints_mips64.S45 * callee-save: padding + $f24-$f31 + $s0-$s7 + $gp + $ra + $s8 = 19 total + 1x8 bytes padding
102 * callee-save: padding + $s2-$s7 + $gp + $ra + $s8 = 9 total + 1x8 bytes padding
250 # 1x8 bytes padding + Method*
345 * $f0-$f31; 28(GPR)+ 32(FPR) + 1x8 bytes padding + method*
465 * $f0-$f31; 28(GPR)+ 32(FPR) + 1x8 bytes padding + method*
643 // Save callee general purpose registers, SP, T8(GP), RA, A3, and A4 (8x14 bytes)
738 // 4 bytes per slot.
740 // a1 = args length in bytes (does not include 8 bytes for RA)
973 # t2 = number of argument bytes remai
[all...]
/art/runtime/
H A Djni_internal_test.cc869 // jbooleans that are passed as bytes.
1641 char bytes[4] = { 'x', 'x', 'x', 'x' }; local
1642 env_->GetStringUTFRegion(s, 1, 2, &bytes[1]);
1643 EXPECT_EQ('x', bytes[0]);
1644 EXPECT_EQ('e', bytes[1]);
1645 EXPECT_EQ('l', bytes[2]);
1646 EXPECT_EQ('x', bytes[3]);
2284 char bytes[1024]; local
2285 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes));
[all...]
H A Djni_internal.cc1833 size_t bytes = CountUtf8Bytes(chars + start, length); local
1834 ConvertUtf16ToModifiedUtf8(buf, bytes, chars + start, length);
1937 char* bytes = new char[byte_count + 1]; local
1938 CHECK(bytes != nullptr); // bionic aborts anyway.
1941 bytes[i] = s->CharAt(i);
1945 ConvertUtf16ToModifiedUtf8(bytes, byte_count, chars, s->GetLength());
1947 bytes[byte_count] = '\0';
1948 return bytes;
2614 size_t bytes = array->GetLength() * component_size; local
2626 memcpy(array_data, elements, bytes);
[all...]
H A Dthread.h821 // The interpreter needs the extra overflow bytes that stack_end does
1132 // Expand the TLAB by a fixed number of bytes. There must be enough capacity to do so.
1133 void ExpandTlab(size_t bytes) { argument
1134 tlsPtr_.thread_local_end += bytes;
1139 mirror::Object* AllocTlab(size_t bytes);
H A Dcheck_jni.cc1359 // Verifies that "bytes" points to valid Modified UTF-8 data.
1360 bool CheckUtfString(const char* bytes, bool nullable) { argument
1361 if (bytes == nullptr) {
1370 const uint8_t* utf8 = CheckUtfBytes(bytes, &errorKind);
1376 const uint8_t* tmp = reinterpret_cast<const uint8_t*>(bytes);
1392 " string: '%s'\n input: '%s'", errorKind, *utf8, bytes, oss.str().c_str());
1398 // Checks whether |bytes| is valid modified UTF-8. We also accept 4 byte UTF
1400 static const uint8_t* CheckUtfBytes(const char* bytes, const char** errorKind) { argument
1401 while (*bytes != '\0') {
1402 const uint8_t* utf8 = reinterpret_cast<const uint8_t*>(bytes
[all...]
H A Dtrace.cc639 static uint64_t ReadBytes(uint8_t* buf, size_t bytes) { argument
641 for (size_t i = 0; i < bytes; ++i) {
/art/imgdiag/
H A Dimgdiag.cc77 // The count of differing bytes.
432 // Attempt to find fields for all dirty bytes.
444 // Examine the bytes comprising the Object, computing which fields are dirty
525 << "avg dirty bytes: " << avg_dirty_bytes_per_class << ", "
566 << "total bytes: " << object_sizes << ", "
588 // Track only the byte-per-byte dirtiness (in bytes)
590 // Track the object-by-object dirtiness (in bytes)
866 std::string StringFromBytes(const uint8_t* bytes, size_t size) { argument
869 return StringPrintf("%" PRIx8, *bytes);
871 return StringPrintf("%" PRIx16, *reinterpret_cast<const uint16_t*>(bytes));
[all...]
/art/test/956-methodhandles/src/
H A DMain.java813 // String(byte bytes[], int offset, int length, String charsetName)
822 // String(byte bytes[], int offset, int length, Charset charset)
831 // String(byte bytes[], String charsetName)
840 // String(byte bytes[], Charset charset)
848 // String(byte bytes[], int offset, int length)
857 // String(byte bytes[])
1088 public VariableArityTester(byte... bytes) { update(bytes); } argument
1106 public String update(byte... bytes) { return lastResult = tally(bytes); } argument
1135 tally(byte... bytes) argument
[all...]
/art/openjdkjvmti/
H A Dti_redefine.cc367 // This makes cleanup easier (since we unambiguously own the bytes) and also is useful since we
368 // will need to keep the original bytes around unaltered for subsequent RetransformClasses calls
369 // to get the passed in bytes.
520 // If we have been specifically given a new set of bytes use that
932 void SetOriginalDexFile(jint klass_index, art::mirror::Object* bytes)
934 SetSlot(klass_index, kSlotOrigDexFile, bytes);
1087 void SetOriginalDexFile(art::mirror::Object* bytes)
1089 holder_.SetOriginalDexFile(idx_, bytes);
/art/runtime/jdwp/
H A Djdwp.h56 * Its OK to change MethodId and FieldId sizes as long as the size is <= 8 bytes.
57 * Note that ArtFields are 64 bit pointers on 64 bit targets. So this one must remain 8 bytes.
428 Request(const uint8_t* bytes, uint32_t available);
480 // Returns the number of bytes remaining.
/art/compiler/optimizing/
H A Doptimizing_cfi_test_expected.inc218 // VIXL emits an extra 2 bytes here for a 32-bit beq as there is no
/art/oatdump/
H A Doatdump.cc786 os.Stream() << "Dumping cumulative use of " << sum / kBitsPerByte << " accounted bytes\n";
978 os << "Total number of dex code bytes: " << dex_code_bytes_ << "\n";
1008 // If we inserted a new dex code item pointer, add to total code bytes.
1043 // Total "unique" dex code bytes.
1248 os << StringPrintf("Dex file exported at %s (%zd bytes)\n", out_dex_path.c_str(), fsize);
1287 // When this was picked, the largest arm method was 55,256 bytes and arm64 was 50,412 bytes.
1870 // Dex register bytes.
2690 SizeAndCount(size_t bytes_in, size_t count_in) : bytes(bytes_in), count(count_in) {}
2691 size_t bytes; member in struct:art::ImageDumper::Stats::SizeAndCount
[all...]
/art/runtime/gc/collector/
H A Dmark_sweep.cc909 // Calculate how many bytes of heap we will scan,
1257 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer);
1269 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer);
1292 freed_los.bytes += large_object_space->Free(self, obj);
/art/runtime/arch/arm/
H A Dquick_entrypoints_arm.S31 push {r4-r11, lr} @ 9 words (36 bytes) of callee saves.
49 SPILL_ALL_CALLEE_SAVE_GPRS @ 9 words (36 bytes) of callee saves.
50 vpush {s16-s31} @ 16 words (64 bytes) of floats.
526 * r2 = size of argument array in bytes
557 sub r4, sp, r4 @ reserve & align *stack* to 16 bytes: native calling
563 bl memcpy @ memcpy (dest, src, bytes)
654 bl memcpy @ memcpy (dest r0, src r1, bytes r2)
2407 ldr ip, [ip, \index_reg, lsl #2] // 4 bytes.
2408 b art_quick_read_barrier_mark_introspection // Should be 2 bytes, encoding T2.
2409 .balign 8 // Add padding to 8 bytes
[all...]
/art/libdexfile/dex/
H A Ddex_file_verifier_test.cc268 // Unroll this, as we only have three bytes, anyways.
307 // Figure out how many bytes the code_off is.
310 size_t bytes = tmp - ptr; local
313 for (size_t i = 1; i < bytes; ++i) {
870 // Unroll this, as we only have three bytes, anyways.
/art/test/959-invoke-polymorphic-accessors/src/
H A DMain.java582 byte [] bytes = { (byte) 0x73, (byte) 0xfe };
583 for (byte b : bytes) {
/art/runtime/arch/mips/
H A Dquick_entrypoints_mips.S36 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots.
37 * Reserves FRAME_SIZE_SAVE_ALL_CALLEE_SAVES + ARG_SLOT_SIZE bytes on the stack
81 # 1 word for holding Method* plus 12 bytes padding to keep contents of SP
99 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots.
100 * Reserves FRAME_SIZE_SAVE_REFS_ONLY + ARG_SLOT_SIZE bytes on the stack
239 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots.
240 * Reserves FRAME_SIZE_SAVE_REFS_AND_ARGS + ARG_SLOT_SIZE bytes on the stack
266 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots.
267 * Reserves FRAME_SIZE_SAVE_REFS_AND_ARGS + ARG_SLOT_SIZE bytes on the stack
346 * Allocates ARG_SLOT_SIZE bytes a
[all...]
/art/test/testrunner/
H A Dtestrunner.py904 if type(cpu_info) is bytes:

Completed in 523 milliseconds

123