Home
last modified time | relevance | path

Searched refs:Read (Results 1 - 25 of 78) sorted by relevance

1234

/arkcompiler/runtime_core/libpandafile/
H A Dmodule_data_accessor-inl.h29 auto regular_import_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
31 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
32 auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
33 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
37 auto namespace_import_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
39 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
40 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
44 auto local_export_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
46 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
47 auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeo in EnumerateModuleRecord()
[all...]
H A Dliteral_data_accessor-inl.h29 return helpers::Read<ID_SIZE>(&sp); in GetLiteralValsNum()
35 static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(literal_data_sp_.SubSpan(index * ID_SIZE))))); in GetLiteralValsNum()
48 auto literal_vals_num = helpers::Read<LEN_SIZE>(&sp); in EnumerateLiteralVals()
52 auto tag = static_cast<LiteralTag>(helpers::Read<TAG_SIZE>(&sp)); in EnumerateLiteralVals()
56 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
60 value = bit_cast<double>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
64 value = static_cast<bool>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
68 value = static_cast<float>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
78 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
82 value = static_cast<uint16_t>(helpers::Read<sizeo in EnumerateLiteralVals()
[all...]
H A Dproto_data_accessor-inl.h41 uint32_t v = helpers::Read<SHORTY_ELEM_SIZE>(&sp); in EnumerateTypes()
62 v = helpers::Read<SHORTY_ELEM_SIZE>(&sp); in EnumerateTypes()
78 auto v1 = helpers::Read<SHORTY_ELEM_SIZE>(&sp1); in IsEqual()
79 auto v2 = helpers::Read<SHORTY_ELEM_SIZE>(&sp2); in IsEqual()
95 v1 = helpers::Read<SHORTY_ELEM_SIZE>(&sp1); in IsEqual()
96 v2 = helpers::Read<SHORTY_ELEM_SIZE>(&sp2); in IsEqual()
102 auto id1 = panda_file_.ResolveClassIndex(proto_id_, helpers::Read<IDX_SIZE>(&sp1)); in IsEqual()
103 auto id2 = other->panda_file_.ResolveClassIndex(other->proto_id_, helpers::Read<IDX_SIZE>(&sp2)); in IsEqual()
128 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in GetReferenceType()
141 uint32_t v = helpers::Read<SHORTY_ELEM_SIZ in GetType()
[all...]
H A Dfield_data_accessor.cpp27 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
28 auto type_idx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
33 name_off_ = helpers::Read<ID_SIZE>(&sp); in FieldDataAccessor()
65 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in GetValueInternal()
71 auto offset = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in GetValueInternal()
73 value = static_cast<uint64_t>(helpers::Read<sizeof(uint64_t)>(value_sp)); in GetValueInternal()
77 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in GetValueInternal()
H A Dannotation_data_accessor.cpp25 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in AnnotationDataAccessor()
27 count_ = helpers::Read<COUNT_SIZE>(&sp); in AnnotationDataAccessor()
40 uint32_t name = helpers::Read<ID_SIZE>(&sp); in GetElement()
41 uint32_t value = helpers::Read<VALUE_SIZE>(&sp); in GetElement()
49 auto item = static_cast<char>(helpers::Read<TYPE_TAG_SIZE>(&sp));
H A Dmethod_data_accessor.cpp25 class_idx_ = helpers::Read<IDX_SIZE>(&sp); in MethodDataAccessor()
26 proto_idx_ = helpers::Read<IDX_SIZE>(&sp); in MethodDataAccessor()
33 name_off_ = helpers::Read<ID_SIZE>(&sp); in MethodDataAccessor()
H A Dhelpers.h63 inline auto Read(Span<const uint8_t> *sp) in Read() function
81 inline auto Read<sizeof(uint16_t)>(Span<const uint8_t> *sp) in Read() function
96 inline auto Read<sizeof(uint32_t)>(Span<const uint8_t> *sp) in Read() function
115 inline auto Read(Span<const uint8_t> sp) in Read() function
117 return Read<width>(&sp); in Read()
192 T value = static_cast<T>(Read<sizeof(T)>(&sp)); in GetOptionalTaggedValue()
206 T value(Read<sizeof(T)>(&sp)); in EnumerateTaggedValues()
222 T value(Read<sizeof(T)>(&sp)); in EnumerateTaggedValuesWithEarlyStop()
H A Dparam_annotations_data_accessor.h49 File::EntityId id(helpers::Read<ID_SIZE>(&sp)); in EnumerateAnnotations()
62 count_ = helpers::Read<COUNT_SIZE>(&sp); in ParamAnnotationsDataAccessor()
78 auto count = helpers::Read<COUNT_SIZE>(&sp); in EnumerateAnnotationArrays()
94 auto count = helpers::Read<COUNT_SIZE>(&sp); in GetAnnotationArray()
H A Dmodule_data_accessor.cpp28 num_module_requests_ = panda_file::helpers::Read<panda_file::ID_SIZE>(&module_sp); in ModuleDataAccessor()
31 auto value = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&module_sp)); in ModuleDataAccessor()
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dliteral_data_accessor-inl.h29 static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(literalDataSp_.SubSpan(index * ID_SIZE))))); in GetLiteralValsNum()
30 auto num = helpers::Read<ID_SIZE>(&sp); in GetLiteralValsNum()
45 auto literalValsNum = helpers::Read<LEN_SIZE>(&sp); in EnumerateLiteralVals()
48 auto tag = static_cast<LiteralTag>(helpers::Read<TAG_SIZE>(&sp)); in EnumerateLiteralVals()
51 value = static_cast<uint64_t>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
55 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
59 value = bit_cast<double>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
63 value = static_cast<bool>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
67 value = bit_cast<float>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
71 value = static_cast<uint32_t>(helpers::Read<sizeo in EnumerateLiteralVals()
[all...]
H A Dfield_data_accessor.cpp28 auto classIdx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
29 auto typeIdx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
34 nameOff_ = helpers::Read<ID_SIZE>(&sp); in FieldDataAccessor()
61 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in GetValueInternal()
67 auto offset = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in GetValueInternal()
69 value = static_cast<uint64_t>(helpers::Read<sizeof(uint64_t)>(valueSp)); in GetValueInternal()
73 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in GetValueInternal()
H A Dproto_data_accessor-inl.h42 uint32_t v = helpers::Read<SHORTY_ELEM_SIZE>(&sp); in EnumerateTypes()
63 v = helpers::Read<SHORTY_ELEM_SIZE>(&sp); in EnumerateTypes()
80 auto v1 = helpers::Read<SHORTY_ELEM_SIZE>(&sp1); in IsEqual()
81 auto v2 = helpers::Read<SHORTY_ELEM_SIZE>(&sp2); in IsEqual()
97 v1 = helpers::Read<SHORTY_ELEM_SIZE>(&sp1); in IsEqual()
98 v2 = helpers::Read<SHORTY_ELEM_SIZE>(&sp2); in IsEqual()
104 auto id1 = pandaFile_.ResolveClassIndex(protoId_, helpers::Read<IDX_SIZE>(&sp1)); in IsEqual()
105 auto id2 = other->pandaFile_.ResolveClassIndex(other->protoId_, helpers::Read<IDX_SIZE>(&sp2)); in IsEqual()
135 auto classIdx = helpers::Read<IDX_SIZE>(&sp); in GetReferenceType()
148 uint32_t v = helpers::Read<SHORTY_ELEM_SIZ in GetType()
[all...]
H A Dannotation_data_accessor.cpp25 auto classIdx = helpers::Read<IDX_SIZE>(&sp); in AnnotationDataAccessor()
27 count_ = helpers::Read<COUNT_SIZE>(&sp); in AnnotationDataAccessor()
38 uint32_t name = helpers::Read<ID_SIZE>(&sp); in GetElement()
39 uint32_t value = helpers::Read<VALUE_SIZE>(&sp); in GetElement()
47 auto item = static_cast<char>(helpers::Read<TYPE_TAG_SIZE>(&sp));
H A Dmethod_data_accessor.cpp26 classIdx_ = helpers::Read<IDX_SIZE>(&sp); in MethodDataAccessor()
27 protoIdx_ = helpers::Read<IDX_SIZE>(&sp); in MethodDataAccessor()
32 nameOff_ = helpers::Read<ID_SIZE>(&sp); in MethodDataAccessor()
H A Dhelpers.h36 inline auto Read(Span<const uint8_t> *sp) in Read() function
52 inline auto Read<sizeof(uint16_t)>(Span<const uint8_t> *sp) in Read() function
64 inline auto Read<sizeof(uint32_t)>(Span<const uint8_t> *sp) in Read() function
80 inline auto Read(Span<const uint8_t> sp) in Read() function
82 return Read<WIDTH>(&sp); in Read()
148 T value = static_cast<T>(Read<sizeof(T)>(&sp)); in GetOptionalTaggedValue()
165 T value(Read<sizeof(T)>(&sp)); in EnumerateTaggedValues()
181 T value(Read<sizeof(T)>(&sp)); in EnumerateTaggedValuesWithEarlyStop()
H A Dparam_annotations_data_accessor.h49 File::EntityId id(helpers::Read<ID_SIZE>(&sp)); in EnumerateAnnotations()
62 count_ = helpers::Read<COUNT_SIZE>(&sp); in ParamAnnotationsDataAccessor()
78 auto count = helpers::Read<COUNT_SIZE>(&sp); in EnumerateAnnotationArrays()
94 auto count = helpers::Read<COUNT_SIZE>(&sp); in GetAnnotationArray()
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/
H A Dmodule_data_accessor.cpp30 numModuleRequests_ = panda_file::helpers::Read<panda_file::ID_SIZE>(&moduleSp); in ModuleDataAccessor()
33 auto value = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&moduleSp)); in ModuleDataAccessor()
62 auto regularImportNum = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateImportEntry()
76 auto namespaceImportNum = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateImportEntry()
109 auto localNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(sp)); in ReadRegularImportEntry()
110 auto importNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(sp)); in ReadRegularImportEntry()
111 auto moduleRequestIdx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(sp)); in ReadRegularImportEntry()
130 auto localNameOffset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(sp)); in ReadNamespaceImportEntry()
131 auto moduleRequestIdx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(sp)); in ReadNamespaceImportEntry()
144 auto localExportNum = panda_file::helpers::Read<panda_fil in EnumerateLocalExportEntry()
[all...]
/arkcompiler/ets_runtime/ecmascript/stackmap/llvm/
H A Dllvm_stackmap_parser.cpp184 llvmStackMap_.head = dataInfo_->Read<struct Header>(); in CalculateStackMap()
186 numFunctions = dataInfo_->Read<uint32_t>(); in CalculateStackMap()
187 numConstants = dataInfo_->Read<uint32_t>(); in CalculateStackMap()
188 numRecords = dataInfo_->Read<uint32_t>(); in CalculateStackMap()
190 auto stkRecord = dataInfo_->Read<struct StkMapSizeRecordTy>(); in CalculateStackMap()
195 auto val = dataInfo_->Read<struct ConstantsTy>(); in CalculateStackMap()
200 auto head = dataInfo_->Read<struct StkMapRecordHeadTy>(); in CalculateStackMap()
203 auto location = dataInfo_->Read<struct LocationTy>(); in CalculateStackMap()
207 dataInfo_->Read<uint16_t>(); in CalculateStackMap()
209 uint32_t numLiveOuts = dataInfo_->Read<uint32_ in CalculateStackMap()
[all...]
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_memory_region.h129 bool Read(size_t offset) in Read() function in panda::BitMemoryRegion
152 Read(size_t offset, size_t length) const
180 return Read(0, Size());
195 T res = Read(0, length);
252 res += panda::Popcount(Read(first + i, BITS_PER_UINT32));
254 return res + panda::Popcount(Read(first + i, length - i));
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dbit_memory_region.h132 bool Read(size_t offset) in Read() function in ark::BitMemoryRegion
155 Read(size_t offset, size_t length) const
183 return Read(0, Size());
198 T res = Read(0, length);
255 res += ark::Popcount(Read(first + i, BITS_PER_UINT32));
257 return res + ark::Popcount(Read(first + i, length - i));
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
H A Dinstruction.h63 T Read(size_t offset) const in Read() function in panda::ecmascript::OldBytecodeInstBase
79 return Read<uint8_t>(offset); in ReadByte()
108 inline auto Read() const in Read() function in panda::ecmascript::OldBytecodeInstBase
H A Dold_instruction.h64 return static_cast<uint32_t>(Read<8, 16>()); in GetId()
67 return static_cast<uint32_t>(Read<8, 32>()); in GetId()
70 return static_cast<uint32_t>(Read<16, 16>()); in GetId()
73 return static_cast<uint32_t>(Read<16, 16>()); in GetId()
76 return static_cast<uint32_t>(Read<16, 32>()); in GetId()
79 return static_cast<uint32_t>(Read<16, 32>()); in GetId()
82 return static_cast<uint32_t>(Read<16, 32>()); in GetId()
85 return static_cast<uint32_t>(Read<16, 16>()); in GetId()
88 return static_cast<uint32_t>(Read<16, 16>()); in GetId()
91 return static_cast<uint32_t>(Read<2 in GetId()
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp46 ASSERT_EQ(region1.Read(0), value); in TEST()
51 ASSERT_EQ(region2.Read(offset), value); in TEST()
72 ASSERT_EQ(region1.Read(0, length), value); in TEST()
77 ASSERT_EQ(region2.Read(offset, length), value); in TEST()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp48 ASSERT_EQ(region1.Read(0U), value); in TEST()
53 ASSERT_EQ(region2.Read(offset), value); in TEST()
74 ASSERT_EQ(region1.Read(0U, length), value); in TEST()
79 ASSERT_EQ(region2.Read(offset, length), value); in TEST()
/arkcompiler/runtime_core/static_core/runtime/arch/
H A Dhelpers.h77 auto v = (ARG_READER).template Read<int8_t>(); \
82 auto v = (ARG_READER).template Read<uint8_t>(); \
87 auto v = (ARG_READER).template Read<int16_t>(); \
92 auto v = (ARG_READER).template Read<uint16_t>(); \
97 auto v = (ARG_READER).template Read<int32_t>(); \
102 auto v = (ARG_READER).template Read<uint32_t>(); \
107 auto v = (ARG_READER).template Read<float>(); \
112 auto v = (ARG_READER).template Read<double>(); \
117 auto v = (ARG_READER).template Read<int64_t>(); \
122 auto v = (ARG_READER).template Read<uint64_
300 ALWAYS_INLINE T Read() Read() function in ark::arch::ArgReader
[all...]

Completed in 8 milliseconds

1234