/arkcompiler/runtime_core/libpandabase/utils/ |
D | leb128.h | 44 uint8_t byte = data[i] & PAYLOAD_MASK; in DecodeUnsigned() local 46 result |= static_cast<T>(byte) << shift; in DecodeUnsigned() 49 bool is_full = MinimumBitsToStore(byte) <= (BITWIDTH - shift); in DecodeUnsigned() 72 uint32_t byte = *(p++); variable 73 result = (result & PAYLOAD_MASK) | ((byte & PAYLOAD_MASK) << LEB128_BYTE2_SHIFT); 74 if (byte > PAYLOAD_MASK) { 76 byte = *(p++); 77 result |= (byte & PAYLOAD_MASK) << LEB128_BYTE3_SHIFT; 78 if (byte > PAYLOAD_MASK) { 80 byte = *(p++); [all …]
|
D | span.h | 252 Span<const std::byte> AsBytes(Span<T> s) noexcept in AsBytes() 254 return {reinterpret_cast<const std::byte *>(s.Data()), s.SizeBytes()}; in AsBytes() 257 Span<std::byte> AsWritableBytes(Span<T> s) noexcept in AsWritableBytes() 259 return {reinterpret_cast<std::byte *>(s.Data()), s.SizeBytes()}; in AsWritableBytes()
|
/arkcompiler/runtime_core/libpandabase/mem/ |
D | code_allocator.cpp | 54 ProtectCode(os::mem::MapRange<std::byte>(static_cast<std::byte *>(code_ptr), size)); in AllocateCode() 60 os::mem::MapRange<std::byte> CodeAllocator::AllocateCodeUnprotected(size_t size) in AllocateCodeUnprotected() 65 return os::mem::MapRange<std::byte>(nullptr, 0); in AllocateCodeUnprotected() 69 return os::mem::MapRange<std::byte>(static_cast<std::byte *>(code_ptr), size); in AllocateCodeUnprotected() 73 void CodeAllocator::ProtectCode(os::mem::MapRange<std::byte> mem_range) in ProtectCode()
|
D | code_allocator.h | 47 [[nodiscard]] os::mem::MapRange<std::byte> AllocateCodeUnprotected(size_t size); 53 static void ProtectCode(os::mem::MapRange<std::byte> mem_range);
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | mem.h | 41 void MmapDeleter(std::byte *ptr, size_t size) noexcept; 109 MapRange(T *ptr, size_t size) : sp_(reinterpret_cast<std::byte *>(ptr), size) {} in MapRange() 116 Expected<const std::byte *, Error> MakeReadExec() in MakeReadExec() 126 Expected<const std::byte *, Error> MakeReadOnly() in MakeReadOnly() 136 Expected<std::byte *, Error> MakeReadWrite() in MakeReadWrite() 150 … Span<std::byte> sp(reinterpret_cast<std::byte *>(aligned), sp_.Size() + unaligned - aligned); in Align() 159 std::byte *GetData() in GetData() 170 explicit MapRange(const Span<std::byte> &sp) : sp_(sp) {} in MapRange() 172 Span<std::byte> sp_; 284 using ByteMapRange = MapRange<std::byte>; [all …]
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | code_allocator_test.cpp | 67 std::byte byte{0x00}; variable 68 os::mem::MapRange<std::byte> map_range = ca.AllocateCodeUnprotected(8U); 70 ASSERT_EQ(*(map_range.GetData()), byte);
|
D | span_test.cpp | 120 EXPECT_EQ(AsBytes(cs)[sizeof(int)], static_cast<std::byte>(2)); in TEST() 121 AsWritableBytes(s)[4] = static_cast<std::byte>(1); in TEST()
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | propertyNamesOfReservedWords.ts | 26 byte; 102 byte; property 189 byte; variable 190 AssertType(byte, "any"); 378 byte, enumerator
|
/arkcompiler/runtime_core/tests/fuzztest/openfrommemory1arg_fuzzer/ |
D | openfrommemory1arg_fuzzer.cpp | 24 … reinterpret_cast<std::byte *>(reinterpret_cast<uintptr_t>(const_cast<uint8_t *>(data))), size, in OpenFromMemory1ArgFuzzTest() 25 [](std::byte *, size_t) noexcept {}); in OpenFromMemory1ArgFuzzTest() argument
|
/arkcompiler/runtime_core/tests/fuzztest/openfrommemory2arg_fuzzer/ |
D | openfrommemory2arg_fuzzer.cpp | 24 … reinterpret_cast<std::byte *>(reinterpret_cast<uintptr_t>(const_cast<uint8_t *>(data))), size, in OpenFromMemory2ArgFuzzTest() 25 [](std::byte *, size_t) noexcept {}); in OpenFromMemory2ArgFuzzTest() argument
|
/arkcompiler/runtime_core/libpandafile/ |
D | file_writer.h | 35 virtual bool WriteByte(uint8_t byte) = 0; 113 bool WriteByte(uint8_t byte) override in WriteByte() argument 115 data_.push_back(byte); in WriteByte() 148 bool WriteByte(uint8_t byte) override in WriteByte() argument 150 sp_[offset_++] = byte; in WriteByte()
|
D | file.cpp | 150 os::mem::BytePtr ptr(reinterpret_cast<std::byte *>(mem), size_to_mmap, os::mem::MmapDeleter); in OpenPandaFileFromZipFile() 291 … os::mem::ConstBytePtr ptr(reinterpret_cast<std::byte *>(mem), size_to_mmap, os::mem::MmapDeleter); in OpenPandaFileFromMemory() 307 std::byte *mem = reinterpret_cast<std::byte *>(buffer); in OpenPandaFileFromSecureMemory() 314 std::hash<std::byte *> hash; in OpenPandaFileFromSecureMemory()
|
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/get_resource/ |
D | get_tool.py | 42 for byte in r.iter_content(chunk_size=1024): 43 size = f.write(byte)
|
D | spider.py | 44 for byte in r.iter_content(chunk_size=1024): 45 size = f.write(byte)
|
/arkcompiler/runtime_core/docs/ |
D | code_metainfo.md | 93 | 0 byte | 1 byte | 2 byte | 3 byte | 4 byte | 5 byte |
|
D | file_format.md | 65 The version field in the header is 4 bytes long and is encoded as byte array to 292 … value of the field. This tag is used when the field has type `boolean`, `byte`, `char`, `short` o… 590 … | Value of the element. If the annotation element has type boolean, byte, short, char, int o… 627 | `value` | `uint8_t` | Signed 1-byte integer value. | 637 | `value` | `uint8_t[2]` | Signed 2-byte integer value. | 647 | `value` | `uint8_t[4]` | Signed 4-byte integer value. | 657 | `value` | `uint8_t[8]` | Signed 8-byte integer value. | 667 | `value` | `uint8_t[4]` | 4-byte bit pattern, zero-extended to the right, and interp… 677 | `value` | `uint8_t[8]` | 8-byte bit pattern, zero-extended to the right, and interp… 772 | `value` | `uint8_t` | 1-byte value. | [all …]
|
D | glossary.md | 44 * **Card table** used for marking cards. In general, it has one bit or byte (a byte used to
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
D | mem.cpp | 33 void MmapDeleter(std::byte *ptr, size_t size) noexcept in MmapDeleter() 52 return BytePtr(static_cast<std::byte *>(result) + offset, size, offset, MmapDeleter); in MapFile() 65 return BytePtr(static_cast<std::byte *>(result), (result == nullptr) ? 0 : size, MmapDeleter); in MapExecuted()
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
D | mem.cpp | 152 void MmapDeleter(std::byte *ptr, size_t size) noexcept in MmapDeleter() 169 return BytePtr(static_cast<std::byte *>(result) + offset, size, MmapDeleter); in MapFile() 182 return BytePtr(static_cast<std::byte *>(result), (result == nullptr) ? 0 : size, MmapDeleter); in MapExecuted()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | native_area_allocator.cpp | 72 free(reinterpret_cast<std::byte *>(area)); in FreeArea()
|
D | native_area_allocator.h | 146 free(reinterpret_cast<std::byte *>(area)); in FreeSpace()
|
/arkcompiler/runtime_core/compiler/tests/ |
D | asm_printer_test.cpp | 114 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | file_test.cpp | 41 os::mem::ConstBytePtr ptr(reinterpret_cast<std::byte *>(data->data()), data->size(), in GetPandaFile() 42 [](std::byte *, size_t) noexcept {}); in GetPandaFile() argument
|
D | debug_info_extractor_test.cpp | 302 os::mem::ConstBytePtr ptr(reinterpret_cast<std::byte *>(data.data()), data.size(), in GetPandaFile() 303 [](std::byte *, size_t) noexcept {}); in GetPandaFile() argument
|
/arkcompiler/ets_frontend/testTs/expect/types/objectTypeLiteral/propertySignatures/ |
D | propertyNamesOfReservedWords.txt | 1 …'}, {'t': 25, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'byte'}, {'t': 25, 'v': 0… 3 …'}, {'t': 25, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'byte'}, {'t': 25, 'v': 0… 4 …': 25, 'v': 0}, {'t': 5, 'v': 'break'}, {'t': 25, 'v': 0}, {'t': 5, 'v': 'byte'}, {'t': 25, 'v': 0…
|