Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 41) sorted by relevance

12

/arkcompiler/runtime_core/libpandabase/utils/
Dleb128.h44 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 …]
Dspan.h252 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/
Dcode_allocator.cpp54 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()
Dcode_allocator.h47 [[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/
Dmem.h41 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/
Dcode_allocator_test.cpp67 std::byte byte{0x00}; variable
68 os::mem::MapRange<std::byte> map_range = ca.AllocateCodeUnprotected(8U);
70 ASSERT_EQ(*(map_range.GetData()), byte);
Dspan_test.cpp120 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/
DpropertyNamesOfReservedWords.ts26 byte;
102 byte; property
189 byte; variable
190 AssertType(byte, "any");
378 byte, enumerator
/arkcompiler/runtime_core/tests/fuzztest/openfrommemory1arg_fuzzer/
Dopenfrommemory1arg_fuzzer.cpp24 … 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/
Dopenfrommemory2arg_fuzzer.cpp24 … 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/
Dfile_writer.h35 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()
Dfile.cpp150 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/
Dget_tool.py42 for byte in r.iter_content(chunk_size=1024):
43 size = f.write(byte)
Dspider.py44 for byte in r.iter_content(chunk_size=1024):
45 size = f.write(byte)
/arkcompiler/runtime_core/docs/
Dcode_metainfo.md93 | 0 byte | 1 byte | 2 byte | 3 byte | 4 byte | 5 byte |
Dfile_format.md65 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 …]
Dglossary.md44 * **Card table** used for marking cards. In general, it has one bit or byte (a byte used to
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dmem.cpp33 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/
Dmem.cpp152 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/
Dnative_area_allocator.cpp72 free(reinterpret_cast<std::byte *>(area)); in FreeArea()
Dnative_area_allocator.h146 free(reinterpret_cast<std::byte *>(area)); in FreeSpace()
/arkcompiler/runtime_core/compiler/tests/
Dasm_printer_test.cpp114 os::mem::MapRange<std::byte> mem_range(static_cast<std::byte *>(ptr), size); in ResetCodeAllocator()
/arkcompiler/runtime_core/libpandafile/tests/
Dfile_test.cpp41 os::mem::ConstBytePtr ptr(reinterpret_cast<std::byte *>(data->data()), data->size(), in GetPandaFile()
42 [](std::byte *, size_t) noexcept {}); in GetPandaFile() argument
Ddebug_info_extractor_test.cpp302 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/
DpropertyNamesOfReservedWords.txt1 …'}, {'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…

12