| /ark/runtime_core/libpandafile/ |
| D | file_writer.cpp | 47 bool FileWriter::WriteBytes(const std::vector<uint8_t> &bytes) in WriteBytes() argument 53 if (bytes.empty()) { in WriteBytes() 58 checksum_ = adler32(checksum_, bytes.data(), bytes.size()); in WriteBytes() 61 if (fwrite(bytes.data(), sizeof(decltype(bytes.back())), bytes.size(), file_) != bytes.size()) { in WriteBytes() 65 offset_ += bytes.size(); in WriteBytes()
|
| D | file_writer.h | 39 virtual bool WriteBytes(const std::vector<uint8_t> &bytes) = 0; 117 bool WriteBytes(const std::vector<uint8_t> &bytes) override in WriteBytes() argument 119 data_.insert(data_.end(), bytes.cbegin(), bytes.cend()); in WriteBytes() 152 bool WriteBytes(const std::vector<uint8_t> &bytes) override in WriteBytes() argument 154 if (bytes.empty()) { in WriteBytes() 158 auto sub_sp = sp_.SubSpan(offset_, bytes.size()); in WriteBytes() 159 if (memcpy_s(sub_sp.data(), sub_sp.size(), bytes.data(), bytes.size()) != 0) { in WriteBytes() 162 offset_ += bytes.size(); in WriteBytes() 200 bool WriteBytes(const std::vector<uint8_t> &bytes) override;
|
| /ark/js_runtime/ecmascript/mem/ |
| D | space.h | 111 void IncrementCommitted(size_t bytes) in IncrementCommitted() argument 113 committedSize_ += bytes; in IncrementCommitted() 116 void DecrementCommitted(size_t bytes) in DecrementCommitted() argument 118 committedSize_ -= bytes; in DecrementCommitted() 121 void IncrementObjectSize(size_t bytes) in IncrementObjectSize() argument 123 objectSize_ += bytes; in IncrementObjectSize() 126 void DecrementObjectSize(size_t bytes) in DecrementObjectSize() argument 128 objectSize_ -= bytes; in DecrementObjectSize()
|
| D | heap_region_allocator.h | 36 void IncreaseAnnoMemoryUsage(size_t bytes) in IncreaseAnnoMemoryUsage() argument 38 size_t current = annoMemoryUsage_.fetch_add(bytes, std::memory_order_relaxed) + bytes; in IncreaseAnnoMemoryUsage() 44 void DecreaseAnnoMemoryUsage(size_t bytes) in DecreaseAnnoMemoryUsage() argument 46 annoMemoryUsage_.fetch_sub(bytes, std::memory_order_relaxed); in DecreaseAnnoMemoryUsage()
|
| D | native_area_allocator.h | 80 void IncreaseNativeMemoryUsage(size_t bytes) in IncreaseNativeMemoryUsage() argument 82 size_t current = nativeMemoryUsage_.fetch_add(bytes, std::memory_order_relaxed) + bytes; in IncreaseNativeMemoryUsage() 88 void DecreaseNativeMemoryUsage(size_t bytes) in DecreaseNativeMemoryUsage() argument 90 nativeMemoryUsage_.fetch_sub(bytes, std::memory_order_relaxed); in DecreaseNativeMemoryUsage()
|
| /ark/runtime_core/tests/cts-generator/cts-template/ |
| D | jeqz.obj.yaml | 24 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 281 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 300 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 367 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 381 - description: Same instruction jump, offset imm8, 0 bytes 390 - description: Max forward jump for imm8, 2 + 120 + 2 + 3 = 127 bytes 398 - description: Max backward jump for imm8, 3 + 120 + 5 = 128 bytes 412 - description: Max forward jump for imm16, 3 + 32760 + 1 + 3 = 32767 bytes 419 …- description: Beyond max forward jump for imm16, 3 + 40000 + 3 = 40006 bytes. Converted to jnez.o… 426 - description: Max backward jump for imm16, 5 + 32760 + 3 = 32768 bytes [all …]
|
| D | jnez.obj.yaml | 24 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 281 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 301 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 366 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 380 - description: Same instruction jump, offset imm8, 0 bytes 389 - description: Max forward jump for imm8, 2 + 120 + 2 + 3 = 127 bytes 398 - description: Max backward jump for imm8, 3 + 120 + 5 = 128 bytes 411 - description: Max forward jump for imm16, 3 + 32760 + 1 + 3 = 32767 bytes 418 …- description: Beyond max forward jump for imm16, 3 + 40000 + 3 = 40006 bytes. Converted to jeqz.o… 424 - description: Max backward jump for imm16, 5 + 32760 + 3 = 32768 bytes [all …]
|
| D | jgez.yaml | 20 Transfer execution to an instruction at offset bytes 94 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 104 # Max backward jump for imm8, 2 + 61*2 + 1 + 1 + 2 = 128 bytes 117 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 129 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes 158 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 167 # Max backward jump for imm8, 1 + 2 + 61*2 + 1 + 2 = 128 bytes 181 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 191 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes
|
| D | jlez.yaml | 20 Transfer execution to an instruction at offset bytes 94 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 104 # Max backward jump for imm8, 1 + 2 + 2*61 + 1 + 2 = 128 bytes 118 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 130 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes 160 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 169 # Max backward jump for imm8, 1 + 2 + 61*2 + 1 + 2 = 128 bytes 183 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 193 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes
|
| D | jeqz.yaml | 20 Transfer execution to an instruction at offset bytes 94 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 103 # Max backward jump for imm8, 1 + 2 + 2*61 + 1 + 2 = 128 bytes 117 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 127 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes
|
| D | jnez.yaml | 20 Transfer execution to an instruction at offset bytes 96 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 106 # Max backward jump for imm8, 1 + 2 + 2*61 + 1 + 2 = 128 bytes 119 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 131 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes
|
| D | jeq.obj.yaml | 24 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 658 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 732 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 846 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 865 - description: Same instruction jump, offset imm8, 0 bytes 875 - description: Max forward jump for imm8, 3 + 110 + 10 + 1 + 3 = 127 bytes 888 - description: Max backward jump for imm8, 3 + 120 + 2 + 2 + 1 = 128 bytes 901 - description: Max forward jump for imm16, 32760 + 4 + 3 = 32767 bytes 907 …- description: Beyond max forward jump for imm16, 40000 + 4 + 3 = 40007 bytes. Converted to jne.ob… 913 - description: Max backward jump for imm16, 5 + 32760 + 3 = 32768 bytes [all …]
|
| D | jne.obj.yaml | 24 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 660 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 735 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 850 …Transfer execution to an instruction at offset bytes from the beginning of the current instruction… 869 - description: Same instruction jump, offset imm8, 0 bytes 878 - description: Max forward jump for imm8, 3 + 110 + 10 + 1 + 3 = 127 bytes 891 - description: Max backward jump for imm8, 3 + 120 + 2 + 2 + 1 = 128 bytes 904 - description: Max forward jump for imm16, 32760 + 4 + 3 = 32767 bytes 910 …- description: Beyond max forward jump for imm16, 40000 + 4 + 3 = 40007 bytes. Converted to jeq.ob… 916 - description: Max backward jump for imm16, 5 + 32760 + 3 = 32768 bytes [all …]
|
| D | jltz.yaml | 20 Transfer execution to an instruction at offset bytes 94 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 104 # Max backward jump for imm8, 1 + 2 + 61*2 + 1 + 2 = 128 bytes 118 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 130 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes
|
| D | jgtz.yaml | 20 Transfer execution to an instruction at offset bytes 94 # Max forward jump for imm8, 2 + 124 + 1 = 127 bytes 104 # Max backward jump for imm8, 2 + 61*2 + 1 + 1 + 2 = 128 bytes 117 # Max forward jump for imm16, 3 + 32760 + 4 = 32767 bytes 129 # Max backward jump for imm16, 1 + 4 + 32760 + 1 + 2 = 32768 bytes
|
| /ark/runtime_core/libpandabase/tests/ |
| D | type_converter_tests.cpp | 79 uint64_t bytes = left_part_bytes * 1024 + right_part_bytes; in TEST() local 80 ASSERT_EQ(MemoryConverter(bytes), ValueUnit(expected, "KB")); in TEST() 81 ASSERT_EQ(MemoryConverter(bytes * (1UL << 10)), ValueUnit(expected, "MB")); in TEST() 82 ASSERT_EQ(MemoryConverter(bytes * (1UL << 20)), ValueUnit(expected, "GB")); in TEST() 83 ASSERT_EQ(MemoryConverter(bytes * (1UL << 30)), ValueUnit(expected, "TB")); in TEST()
|
| /ark/runtime_core/docs/ |
| D | file_format.md | 18 To achieve this, all references in the binary file are 4 bytes long. It allows a space of 4GB 47 To improve data access speed, most data structures have 4 bytes alignment. 66 The version field in the header is 4 bytes long and is encoded as a byte array to 216 Alignment: 4 bytes 226 | `file_size` | `uint32_t` | Size of the file in bytes. | 228 | `foreign_size` | `uint32_t` | Size of the foreign region in bytes. | 238 Constraint: Size of header must be > 16 bytes. [FieldType](#fieldType) uses this fact. 244 Alignment: 4 bytes 270 Alignment: 4 bytes 314 …d in case the field has type float, double or long which doesn't fin in 7 bytes). If 32 bits are e… [all …]
|
| /ark/runtime_core/libpandabase/mem/ |
| D | mem_pool.h | 68 * Allocates arena with size bytes 70 * @param size - size of buffer in arena in bytes 98 * Allocates pool with minimal size in bytes. 99 * @param size - minimal size of a pool in bytes 114 * @param size - size of the allocated pool in bytes
|
| D | code_allocator.h | 35 …* \brief Allocates \param size bytes, copies \param codeBuff to allocated memory and makes this me… 43 * \brief Allocates \param size bytes of non-protected memory
|
| /ark/runtime_core/scripts/ |
| D | memdump.py | 28 * total number of bytes allocated (not considering free) 68 """Handles allocation of size bytes""" 74 """Handles deallocation of size bytes""" 132 return 'all {} bytes'.format(min_size) 134 return 'from {} to {} bytes'.format(min_size, max_size) 233 print("Allocated: {} bytes. {} allocs {} from:\n{}".format(
|
| /ark/runtime_core/libpandabase/utils/ |
| D | cframe_layout.h | 80 enum OffsetUnit { BYTES, SLOTS }; enumerator 152 return unit == BYTES ? size_in_slots * GetSlotSize() : size_in_slots; in GetFrameSize() 182 return GetSpillOffset<CFrameLayout::SP, CFrameLayout::BYTES>(spill_slot); in GetSpillOffsetFromSpInBytes() 190 if constexpr (unit == BYTES) { // NOLINT in GetOffset() 195 if constexpr (unit == BYTES) { // NOLINT in GetOffset() 204 return GetOffset<SP, BYTES>(slot); in GetBytesOffsetSp()
|
| D | type_converter.h | 96 * Convert memory from bytes to readable format 97 * @param bytes 99 ValueUnit MemoryConverter(uint64_t bytes);
|
| D | hash.h | 38 * @param len - length of the key in bytes 50 * @param len - length of the key in bytes 81 // Works like FNV Hash but operates over 4-byte words at a time instead of single bytes 99 // Works like FNV Hash but operates over 4-byte words at a time instead of single bytes
|
| /ark/runtime_core/runtime/tests/ |
| D | allocator_test_base.h | 61 * Byte array initialization of random bytes 117 * \brief Set random bytes in memory from byte array 118 * @param mem - memory for random bytes from byte array writing 119 * @param size - size memory in bytes 150 * \brief Compare bytes in memory with byte array 151 * @param mem - memory for random bytes from byte array writing 152 * @param size - size memory in bytes 154 * @return boolean value: true if bytes are equal and false if not equal 211 * @param alloc_size - size in bytes for each allocation 222 * @param alloc_size - size in bytes for each allocation [all …]
|
| /ark/runtime_core/libpandabase/os/ |
| D | mem.h | 75 * @param alignment_in_bytes - alignment in bytes 76 * @param size - min required size in bytes 280 * @param size - size in bytes, should be multiple of PAGE_SIZE 291 * @param size - size in bytes, should be multiple of PAGE_SIZE 292 * @param aligment_in_bytes - alignment in bytes, should be multiple of PAGE_SIZE 316 * @param size size in bytes, should be multiple of PAGE_SIZE
|