/arkcompiler/runtime_core/libpandafile/ |
H A D | helpers.h | 126 bool is_full; in ReadULeb128() local 127 std::tie(result, n, is_full) = leb128::DecodeUnsigned<uint32_t>(sp->data()); in ReadULeb128() 128 THROW_IF(!is_full || sp->Size() < n, INVALID_SPAN_OFFSET); in ReadULeb128() 159 bool is_full; in ReadLeb128() local 160 std::tie(result, n, is_full) = leb128::DecodeSigned<int32_t>(sp->data()); in ReadLeb128() 161 THROW_IF(!is_full || sp->Size() < n, INVALID_SPAN_OFFSET); in ReadLeb128()
|
H A D | file_reader.cpp | 1092 bool is_full; in UpdateDebugInfoDependecies() local 1093 std::tie(reg_number, n, is_full) = leb128::DecodeSigned<int32_t>(&opcode_sp[i]); in UpdateDebugInfoDependecies() 1094 LOG_IF(!is_full, FATAL, COMMON) << "Cannot read a register number"; in UpdateDebugInfoDependecies() 1113 bool is_full; in UpdateDebugInfoDependecies() local 1114 std::tie(reg_number, n, is_full) = leb128::DecodeSigned<int32_t>(&opcode_sp[i]); in UpdateDebugInfoDependecies() 1115 LOG_IF(!is_full, FATAL, COMMON) << "Cannot read a register number"; in UpdateDebugInfoDependecies() 1139 bool is_full; in UpdateDebugInfoDependecies() local 1140 std::tie(reg_number, n, is_full) = leb128::DecodeSigned<int32_t>(&opcode_sp[i]); in UpdateDebugInfoDependecies() 1141 LOG_IF(!is_full, FATAL, COMMON) << "Cannot read a register number"; in UpdateDebugInfoDependecies() 1187 auto [reg_number, n, is_full] in UpdateDebugInfo() [all...] |
H A D | line_number_program.h | 209 auto [regiser_number, n, is_full] = leb128::DecodeSigned<int32_t>(program_); in ReadRegisterNumber() 210 LOG_IF(!is_full, FATAL, COMMON) << "Cannot read a register number"; in ReadRegisterNumber()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | leb128.h | 49 bool is_full = MinimumBitsToStore(byte) <= (BITWIDTH - shift); in DecodeUnsigned() local 50 return {result, i + 1, is_full}; in DecodeUnsigned() 119 bool is_full = MinimumBitsToStore(masked) <= shift; 125 return {result, i + 1, is_full};
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | leb128_test.cpp | 122 auto [value, size, is_full] = DecodeUnsigned<T>(t.data); in TestDecodeUnsigned() 123 EXPECT_EQ(is_full, MinimumBitsToStore(t.value) <= bitwidth && !is_partial) << ss.str(); in TestDecodeUnsigned() 124 EXPECT_EQ(size, is_full ? t.size : (bitwidth + 6) / 7) << ss.str(); in TestDecodeUnsigned() 150 auto [value, size, is_full] = DecodeSigned<T>(t.data); in TestDecodeSigned() 151 EXPECT_EQ(is_full, !is_partial) << ss.str(); in TestDecodeSigned() 152 EXPECT_EQ(size, is_full ? t.size : (bitwidth + 6) / 7) << ss.str(); in TestDecodeSigned()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | leb128_test.cpp | 116 auto [value, size, is_full] = DecodeUnsigned<T>(t.data); in TestDecodeUnsigned() 117 EXPECT_EQ(is_full, MinimumBitsToStore(t.value) <= BITWIDTH && !isPartial) << ss.str(); in TestDecodeUnsigned() 118 EXPECT_EQ(size, is_full ? t.size : (BITWIDTH + 6U) / 7U) << ss.str(); in TestDecodeUnsigned() 144 auto [value, size, is_full] = DecodeSigned<T>(t.data); in TestDecodeSigned() 145 EXPECT_EQ(is_full, !isPartial) << ss.str(); in TestDecodeSigned() 146 EXPECT_EQ(size, is_full ? t.size : (BITWIDTH + 6U) / 7U) << ss.str(); in TestDecodeSigned()
|
/arkcompiler/runtime_core/assembler/tests/ |
H A D | emitter_test.cpp | 245 bool is_full {}; in TEST() 250 std::tie(offset, size, is_full) = leb128::DecodeUnsigned<uint32_t>(&constant_pool[constant_pool_offset]); in TEST() 252 ASSERT_TRUE(is_full); in TEST() 258 std::tie(pc_inc, size, is_full) = leb128::DecodeUnsigned<uint32_t>(&constant_pool[constant_pool_offset]); in TEST() 260 ASSERT_TRUE(is_full); in TEST() 264 std::tie(line_inc, size, is_full) = leb128::DecodeSigned<int32_t>(&constant_pool[constant_pool_offset]); in TEST() 266 ASSERT_TRUE(is_full); in TEST()
|
H A D | assembler_emitter_test.cpp | 272 bool is_full {}; in HWTEST_F() 277 std::tie(offset, size, is_full) = leb128::DecodeUnsigned<uint32_t>(&constant_pool[constant_pool_offset]); in HWTEST_F() 279 EXPECT_TRUE(is_full); in HWTEST_F() 285 std::tie(pc_inc, size, is_full) = leb128::DecodeUnsigned<uint32_t>(&constant_pool[constant_pool_offset]); in HWTEST_F() 287 EXPECT_TRUE(is_full); in HWTEST_F() 291 std::tie(line_inc, size, is_full) = leb128::DecodeSigned<int32_t>(&constant_pool[constant_pool_offset]); in HWTEST_F() 293 EXPECT_TRUE(is_full); in HWTEST_F()
|
/arkcompiler/ets_runtime/ecmascript/stackmap/ |
H A D | ark_stackmap_parser.cpp | 215 auto [regOffset, regOffsetSize, is_full] = in ParseArkStackMap()
|