Home
last modified time | relevance | path

Searched refs:helpers (Results 1 - 25 of 244) sorted by relevance

12345678910

/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
H A Dets_class_root.h25 VOID = helpers::ToUnderlying(ClassRoot::V),
26 BOOLEAN = helpers::ToUnderlying(ClassRoot::U1),
27 BYTE = helpers::ToUnderlying(ClassRoot::I8),
28 CHAR = helpers::ToUnderlying(ClassRoot::U16),
29 SHORT = helpers::ToUnderlying(ClassRoot::I16),
30 INT = helpers::ToUnderlying(ClassRoot::I32),
31 LONG = helpers::ToUnderlying(ClassRoot::I64),
32 FLOAT = helpers::ToUnderlying(ClassRoot::F32),
33 DOUBLE = helpers::ToUnderlying(ClassRoot::F64),
35 BOOLEAN_ARRAY = helpers
[all...]
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dcode_data_accessor.cpp23 typeIdx_ = helpers::ReadULeb128(&sp) - 1; in CatchBlock()
24 handlerPc_ = helpers::ReadULeb128(&sp); in CatchBlock()
25 codeSize_ = helpers::ReadULeb128(&sp); in CatchBlock()
31 startPc_ = helpers::ReadULeb128(&data); in TryBlock()
32 length_ = helpers::ReadULeb128(&data); in TryBlock()
33 numCatches_ = helpers::ReadULeb128(&data); in TryBlock()
42 numVregs_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
43 numArgs_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
44 codeSize_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
45 triesSize_ = helpers in CodeDataAccessor()
[all...]
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 in EnumerateLiteralVals()
[all...]
H A Dfield_data_accessor.cpp17 #include "helpers.h"
28 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()
38 accessFlags_ = helpers::ReadULeb128(&sp); in FieldDataAccessor()
55 value = static_cast<uint32_t>(helpers::ReadLeb128(&sp)); in GetValueInternal()
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 in GetValueInternal()
[all...]
H A Dclass_data_accessor.cpp17 #include "helpers.h"
29 name_.utf16Length = helpers::ReadULeb128(&sp); in ClassDataAccessor()
34 superClassOff_ = helpers::Read<ID_SIZE>(&sp); in ClassDataAccessor()
36 accessFlags_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
37 numFields_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
38 numMethods_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
46 numIfaces_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
H A Dproto_data_accessor-inl.h19 #include "helpers.h"
42 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 in GetReferenceType()
[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.cpp16 #include "helpers.h"
26 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()
33 accessFlags_ = helpers::ReadULeb128(&sp); in MethodDataAccessor()
H A Dclass_data_accessor-inl.h24 #include "helpers.h"
74 auto index = helpers::Read<IDX_SIZE>(&sp); in EnumerateInterfaces()
83 auto index = helpers::Read<IDX_SIZE>(&sp); in GetInterfaceId()
89 return helpers::GetOptionalTaggedValue<SourceLang>(sourceLangSp_, ClassTag::SOURCE_LANG, &runtimeAnnotationsSp_);
99 helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>(
110 helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>(annotationsSp_, ClassTag::ANNOTATION, cb,
121 return helpers::EnumerateTaggedValuesWithEarlyStop<File::EntityId, ClassTag, Callback>(
132 return helpers::EnumerateTaggedValuesWithEarlyStop<File::EntityId, ClassTag, Callback>(annotationsSp_,
158 auto v = helpers::GetOptionalTaggedValue<File::EntityId>(sourceFileSp_, ClassTag::SOURCE_FILE, &fieldsSp_);
210 helpers
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dmodule_data_accessor-inl.h21 #include "helpers.h"
29 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 in EnumerateModuleRecord()
[all...]
H A Dcode_data_accessor.cpp23 type_idx_ = helpers::ReadULeb128(&sp) - 1; in CatchBlock()
24 handler_pc_ = helpers::ReadULeb128(&sp); in CatchBlock()
25 code_size_ = helpers::ReadULeb128(&sp); in CatchBlock()
31 start_pc_ = helpers::ReadULeb128(&data); in TryBlock()
32 length_ = helpers::ReadULeb128(&data); in TryBlock()
33 num_catches_ = helpers::ReadULeb128(&data); in TryBlock()
42 num_vregs_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
43 num_args_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
44 code_size_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
45 tries_size_ = helpers in CodeDataAccessor()
[all...]
H A Dcode_data_accessor-inl.h66 num_vregs_ = helpers::ReadULeb128(&sp); in GetNumVregs()
74 *vregs = helpers::ReadULeb128(&sp); in GetInstructions()
75 helpers::SkipULeb128(&sp); // num_args in GetInstructions()
76 helpers::SkipULeb128(&sp); // code_size in GetInstructions()
77 helpers::SkipULeb128(&sp); // tries_size in GetInstructions()
85 helpers::SkipULeb128(&sp); // num_vregs in GetInstructions()
86 helpers::SkipULeb128(&sp); // num_args in GetInstructions()
87 helpers::SkipULeb128(&sp); // code_size in GetInstructions()
88 helpers::SkipULeb128(&sp); // tries_size in GetInstructions()
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 in EnumerateLiteralVals()
[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()
38 access_flags_ = helpers::ReadULeb128(&sp); in FieldDataAccessor()
58 value = static_cast<uint32_t>(helpers::ReadLeb128(&sp)); in GetValueInternal()
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 Dproto_data_accessor-inl.h19 #include "helpers.h"
41 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 in GetReferenceType()
[all...]
H A Dclass_data_accessor.cpp28 name_.utf16_length = helpers::ReadULeb128(&sp); in ClassDataAccessor()
35 super_class_off_ = helpers::Read<ID_SIZE>(&sp); in ClassDataAccessor()
37 access_flags_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
38 num_fields_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
39 num_methods_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
49 num_ifaces_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
H A Dmethod_data_accessor-inl.h19 #include "helpers.h"
31 return File::EntityId(helpers::Read<ID_SIZE>(&sp)); in GetNameId()
45 auto proto_idx_ = helpers::Read<IDX_SIZE>(&sp); in GetProtoId()
53 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in GetClassId()
116 return helpers::GetOptionalTaggedValue<File::EntityId>(tagged_values_sp_, MethodTag::CODE, &source_lang_sp_); in GetCodeId()
132 return helpers::GetOptionalTaggedValue<SourceLang>(source_lang_sp_, MethodTag::SOURCE_LANG, in GetSourceLang()
147 helpers::EnumerateTaggedValues<File::EntityId, MethodTag, Callback>( in EnumerateRuntimeAnnotations()
161 return helpers::GetOptionalTaggedValue<File::EntityId>(runtime_param_annotation_sp_, in GetRuntimeParamAnnotationId()
175 return helpers::GetOptionalTaggedValue<File::EntityId>(debug_sp_, MethodTag::DEBUG_INFO, &annotations_sp_); in GetDebugInfoId()
189 helpers in EnumerateAnnotations()
[all...]
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()
34 access_flags_ = helpers::ReadULeb128(&sp); in MethodDataAccessor()
H A Dclass_data_accessor-inl.h23 #include "helpers.h"
73 auto index = helpers::Read<IDX_SIZE>(&sp); in EnumerateInterfaces()
82 auto index = helpers::Read<IDX_SIZE>(&sp); in GetInterfaceId()
88 return helpers::GetOptionalTaggedValue<SourceLang>(source_lang_sp_, ClassTag::SOURCE_LANG,
99 helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>(
110 helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>(annotations_sp_, ClassTag::ANNOTATION, cb,
121 return helpers::EnumerateTaggedValuesWithEarlyStop<File::EntityId, ClassTag, Callback>(
132 return helpers::EnumerateTaggedValuesWithEarlyStop<File::EntityId, ClassTag, Callback>(annotations_sp_,
142 auto v = helpers::GetOptionalTaggedValue<File::EntityId>(source_file_sp_, ClassTag::SOURCE_FILE, &fields_sp_);
194 helpers
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Dstd_core_Double.cpp21 #include "plugins/ets/runtime/intrinsics/helpers/ets_intrinsics_helpers.h"
22 #include "plugins/ets/runtime/intrinsics/helpers/ets_to_string_cache.h"
43 return helpers::StringToDouble(str.begin(), str.end(), 0, flags); in ParseFloat()
47 return helpers::StringToDouble(str.begin(), str.end(), 0, flags); in ParseFloat()
54 if (UNLIKELY(radix != helpers::DECIMAL)) { in StdCoreDoubleToString()
55 return helpers::FpToString(number, radix); in StdCoreDoubleToString()
78 double objValue = helpers::GetStdDoubleArgument(obj); in StdCoreDoubleToLocaleString()
98 return ParseFloat(s, helpers::flags::IGNORE_TRAILING); in StdCoreDoubleParseFloat()
141 return std::trunc(helpers::StringToDoubleWithRadix(str.begin(), str.end(), radix)); in StdCoreDoubleParseInt()
144 return std::trunc(helpers in StdCoreDoubleParseInt()
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dhistogram.h33 explicit SimpleHistogram(helpers::ValueType typeOfValue = helpers::ValueType::VALUE_TYPE_OBJECT) in SimpleHistogram() argument
45 helpers::ValueType typeOfValue = helpers::ValueType::VALUE_TYPE_OBJECT);
104 helpers::ValueType typeOfValue_;
114 explicit Histogram(helpers::ValueType typeOfValue = helpers::ValueType::VALUE_TYPE_OBJECT) in Histogram() argument
126 helpers::ValueType typeOfValue = helpers::ValueType::VALUE_TYPE_OBJECT);
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc_stats.cpp31 statistic << "freed " << objectsFreed_ << "(" << helpers::MemoryConverter(objectsFreedBytes_) << "), "; in GetStatistics()
32 statistic << largeObjectsFreed_ << "(" << helpers::MemoryConverter(largeObjectsFreedBytes_) << ") LOS objects, "; in GetStatistics()
40 statistic << percent << "% free, " << helpers::MemoryConverter(allocatedNow) << "/" in GetStatistics()
41 << helpers::MemoryConverter(totalHeap) << ", "; in GetStatistics()
47 << " total: " << helpers::TimeConverter(lastDuration_); in GetStatistics()
54 auto totalTimeGc = helpers::TimeConverter(totalDuration_); in GetFinalStatistics()
77 statistic << "Mean GC size throughput " << helpers::MemoryConverter(totalAllocated / totalTimeGc.GetDoubleValue()) in GetFinalStatistics()
82 statistic << "Total bytes allocated " << helpers::MemoryConverter(totalAllocated) << "\n"; in GetFinalStatistics()
83 statistic << "Total bytes freed " << helpers::MemoryConverter(totalFreed) << "\n\n"; in GetFinalStatistics()
85 statistic << "Free memory " << helpers in GetFinalStatistics()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/
H A Darg_convertors.h85 return unwrapVal(helpers::TypeIdentity<JSConvertU1>()); in ConvertPrimArgToEts()
87 return unwrapVal(helpers::TypeIdentity<JSConvertI8>()); in ConvertPrimArgToEts()
89 return unwrapVal(helpers::TypeIdentity<JSConvertU8>()); in ConvertPrimArgToEts()
91 return unwrapVal(helpers::TypeIdentity<JSConvertI16>()); in ConvertPrimArgToEts()
93 return unwrapVal(helpers::TypeIdentity<JSConvertU16>()); in ConvertPrimArgToEts()
95 return unwrapVal(helpers::TypeIdentity<JSConvertI32>()); in ConvertPrimArgToEts()
97 return unwrapVal(helpers::TypeIdentity<JSConvertU32>()); in ConvertPrimArgToEts()
99 return unwrapVal(helpers::TypeIdentity<JSConvertI64>()); in ConvertPrimArgToEts()
101 return unwrapVal(helpers::TypeIdentity<JSConvertU64>()); in ConvertPrimArgToEts()
103 return unwrapVal(helpers in ConvertPrimArgToEts()
[all...]
/arkcompiler/runtime_core/libpandabase/mem/
H A Dbase_mem_stats.cpp33 auto index = helpers::ToUnderlying(type_mem); in RecordAllocate()
41 auto index = helpers::ToUnderlying(type_mem); in RecordMoved()
57 auto index = helpers::ToUnderlying(type_mem); in RecordFree()
67 return allocated_[helpers::ToUnderlying(type_mem)].load(std::memory_order_acquire); in GetAllocated()
74 return freed_[helpers::ToUnderlying(type_mem)].load(std::memory_order_acquire); in GetFreed()
107 return helpers::UnsignedDifferenceUint64(GetAllocatedHeap(), GetFreedHeap()); in GetFootprintHeap()
112 auto index = helpers::ToUnderlying(type_mem); in GetFootprint()
/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Dbase_mem_stats.cpp32 auto index = helpers::ToUnderlying(typeMem); in RecordAllocate()
40 auto index = helpers::ToUnderlying(typeMem); in RecordMoved()
56 auto index = helpers::ToUnderlying(typeMem); in RecordFree()
66 return allocated_[helpers::ToUnderlying(typeMem)].load(std::memory_order_acquire); in GetAllocated()
73 return freed_[helpers::ToUnderlying(typeMem)].load(std::memory_order_acquire); in GetFreed()
106 return helpers::UnsignedDifferenceUint64(GetAllocatedHeap(), GetFreedHeap()); in GetFootprintHeap()
111 auto index = helpers::ToUnderlying(typeMem); in GetFootprint()

Completed in 8 milliseconds

12345678910