/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 27 if (base.any()) { in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), static_cast<uint32_t>(Ctz(base.to_ulong()))); in CompareWithBitset() 29 ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong())) - 1); in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 34 for (size_t i = 0; i < base in CompareWithBitset() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 27 if (base.any()) { in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), Ctz(base.to_ulong())); in CompareWithBitset() 29 ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong())) - 1L); in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 34 for (size_t i = 0; i < base in CompareWithBitset() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_number_test.cpp | 21 #include "ecmascript/base/number_helper.h" 22 #include "ecmascript/base/string_helper.h" 86 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(base::MAX_VALUE)); in HWTEST_F_L0() 115 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(base::NAN_VALUE)); in HWTEST_F_L0() 129 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(base::POSITIVE_INFINITY)); in HWTEST_F_L0() 471 ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0() 474 ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0() 477 ASSERT_EQ(base in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/utils/ |
H A D | iterator.h | 61 mpl_iterator(const mpl_iterator<U, Container> &iter) : iter(iter.base()) in mpl_iterator() 116 Iterator base() const noexcept 128 return lhs.base() == rhs.base(); 134 return lhs.base() == rhs.base(); 152 return lhs.base() < rhs.base(); 158 return lhs.base() < rhs.base(); [all...] |
H A D | ref_vector.h | 24 // nullptr. As time goes by, the others, even the owner may forget it. Or with more coding base on it, some will start 75 explicit ref_vector(const allocator_type &alloc) noexcept : base(alloc) {} in base() function in maple::utils::ref_vector 82 // The pointer is stored in the base, and the Iter owns objects instead of their pointers. 86 ref_vector(const ref_vector &other) : base(other.base) {} in ref_vector() 88 ref_vector(const ref_vector &other, const allocator_type &alloc) : base(other.base, alloc) {} in ref_vector() 90 ref_vector(ref_vector &&other) noexcept : base(std::move(other)) {} in move() 92 ref_vector(ref_vector &&other, const allocator_type &alloc) noexcept : base(std::move(other), alloc) {} 100 base in operator =() 316 base_vector base; global() member in maple::utils::ref_vector [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_vtable_builder.h | 27 bool ETSProtoIsOverriddenBy(Method::ProtoId const &base, Method::ProtoId const &derv); 30 bool operator()(const Method::ProtoId &base, const Method::ProtoId &derv) const in operator ()() 32 return ETSProtoIsOverriddenBy(base, derv); in operator ()() 37 bool operator()(const MethodInfo *base, const MethodInfo *derv) const in operator ()() 39 if (base->IsPublic() || base->IsProtected()) { in operator ()() 43 if (base->IsPrivate()) { in operator ()() 47 return IsInSamePackage(*base, *derv); in operator ()()
|
H A D | ets_itable_builder.cpp | 51 static Span<ITable::Entry> LinearizeITable(ClassLinker *classLinker, Class *base, Span<Class *> classInterfaces, in LinearizeITable() argument 62 if (base != nullptr) { in LinearizeITable() 63 auto superItable = base->GetITable().Get(); in LinearizeITable() 70 size_t const superItableSize = base != nullptr ? base->GetITable().Size() : 0; in LinearizeITable() 98 bool EtsITableBuilder::Build(ClassLinker *classLinker, Class *base, Span<Class *> classInterfaces, bool isInterface) in Build() argument 102 if (base != nullptr) { in Build() 103 auto superItable = base->GetITable().Get(); in Build() 117 Span<ITable::Entry> itable = LinearizeITable(classLinker, base, classInterfaces, std::move(interfaces)); in Build() 120 size_t const superItableSize = base ! in Build() [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_optimized_stubs-inl.h | 52 if (!(base::utf_helper::IsHexDigits(frontChart) && base::utf_helper::IsHexDigits(behindChart))) { in DecodePercentEncoding() 58 if (!((bb & base::utf_helper::BIT_MASK_2) == base::utf_helper::BIT_MASK_1)) { in DecodePercentEncoding() 72 if (!base::utf_helper::IsValidUTF8(oct)) { in UTF16EncodeCodePoint() 76 uint32_t vv = base::StringHelper::Utf8ToU32String(oct); in UTF16EncodeCodePoint() 77 if (vv < base::utf_helper::DECODE_SECOND_FACTOR) { in UTF16EncodeCodePoint() 78 sStr = base::StringHelper::Utf16ToU16String(reinterpret_cast<uint16_t *>(&vv), 1); in UTF16EncodeCodePoint() 80 uint16_t lv = (((vv - base::utf_helper::DECODE_SECOND_FACTOR) & base in UTF16EncodeCodePoint() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_errors.h | 19 #include "ecmascript/base/builtins_base.h" 23 class BuiltinsError : public base::BuiltinsBase { 32 class BuiltinsRangeError : public base::BuiltinsBase { 40 class BuiltinsReferenceError : public base::BuiltinsBase { 48 class BuiltinsTypeError : public base::BuiltinsBase { 58 class BuiltinsURIError : public base::BuiltinsBase { 66 class BuiltinsSyntaxError : public base::BuiltinsBase { 74 class BuiltinsEvalError : public base::BuiltinsBase { 82 class BuiltinsAggregateError : public base::BuiltinsBase { 89 class BuiltinsOOMError : public base [all...] |
H A D | builtins_number.h | 19 #include "ecmascript/base/builtins_base.h" 72 class BuiltinsNumber : public base::BuiltinsBase { 122 static Span<const base::BuiltinConstantEntry> GetNumberConstants() in GetNumberConstants() 124 return Span<const base::BuiltinConstantEntry>(NUMBER_CONSTANTS); in GetNumberConstants() 128 static Span<const base::BuiltinFunctionEntry> GetNumberNonGlobalFunctions() in GetNumberNonGlobalFunctions() 130 return Span<const base::BuiltinFunctionEntry>(NUMBER_NON_GLOBAL_FUNCTIONS); in GetNumberNonGlobalFunctions() 134 static Span<const base::BuiltinFunctionEntry> GetNumberGlobalFunctions() in GetNumberGlobalFunctions() 136 return Span<const base::BuiltinFunctionEntry>(NUMBER_GLOBAL_FUNCTIONS); in GetNumberGlobalFunctions() 140 static Span<const base::BuiltinFunctionEntry> GetNumberPrototypeFunctions() in GetNumberPrototypeFunctions() 142 return Span<const base in GetNumberPrototypeFunctions() [all...] |
H A D | builtins_bigint.h | 19 #include "ecmascript/base/builtins_base.h" 44 class BuiltinsBigInt : public base::BuiltinsBase { 64 static Span<const base::BuiltinFunctionEntry> GetBigIntFunctions() in GetBigIntFunctions() 66 return Span<const base::BuiltinFunctionEntry>(BIGINT_FUNCTIONS); in GetBigIntFunctions() 70 static Span<const base::BuiltinFunctionEntry> GetBigIntPrototypeFunctions() in GetBigIntPrototypeFunctions() 72 return Span<const base::BuiltinFunctionEntry>(BIGINT_PROTOTYPE_FUNCTIONS); in GetBigIntPrototypeFunctions() 77 base::BuiltinFunctionEntry::Create(name, BuiltinsBigInt::func, length, kungfu::BuiltinsStubCSigns::builtinId),
|
H A D | builtins_json.h | 19 #include "ecmascript/base/builtins_base.h" 20 #include "ecmascript/base/json_helper.h" 28 class BuiltinsJson : public base::BuiltinsBase { 30 using TransformType = base::JsonHelper::TransformType; 31 using ParseOptions = base::JsonHelper::ParseOptions; 42 class BuiltinsSendableJson : public base::BuiltinsBase { 48 class BuiltinsBigIntJson : public base::BuiltinsBase {
|
H A D | builtins_global.h | 19 #include "ecmascript/base/builtins_base.h" 106 class BuiltinsGlobal : public base::BuiltinsBase { 108 static const inline JSTaggedValue INFINITY_VALUE = JSTaggedValue(base::POSITIVE_INFINITY); 109 static const inline JSTaggedValue NAN_VALUE = JSTaggedValue(base::NAN_VALUE); 150 static Span<const base::BuiltinConstantEntry> GetGlobalConstants() in GetGlobalConstants() 152 return Span<const base::BuiltinConstantEntry>(GLOBAL_CONSTANTS); in GetGlobalConstants() 155 static Span<const base::BuiltinFunctionEntry> GetGlobalFunctions() in GetGlobalFunctions() 157 return Span<const base::BuiltinFunctionEntry>(GLOBAL_FUNCTIONS); in GetGlobalFunctions() 162 base::BuiltinConstantEntry::Create(name, BuiltinsGlobal::var), 164 base [all...] |
H A D | builtins_math.cpp | 22 using NumberHelper = base::NumberHelper; 23 using RandomGenerator = base::RandomGenerator; 59 double result = base::NAN_VALUE; in Acos() 78 double result = base::NAN_VALUE; in Acosh() 96 double result = base::NAN_VALUE; in Asin() 114 double result = base::NAN_VALUE; in Asinh() 117 result = base::MathHelper::Asinh(value); in Asinh() 133 double result = base::NAN_VALUE; in Atan() 152 double result = base::NAN_VALUE; in Atanh() 154 result = base in Atanh() [all...] |
H A D | builtins_function.h | 19 #include "ecmascript/base/builtins_base.h" 31 using BuiltinsPropertyConfig = base::BuiltinsPropertyConfig; 32 class BuiltinsFunction : public base::BuiltinsBase { 71 static Span<const base::BuiltinFunctionEntry> GetFunctionPrototypeFunctions() in GetFunctionPrototypeFunctions() 73 return Span<const base::BuiltinFunctionEntry>(FUNCTION_PROTOTYPE_FUNCTIONS); in GetFunctionPrototypeFunctions() 96 base::BuiltinFunctionEntry::Create(name, BuiltinsFunction::func, length, kungfu::BuiltinsStubCSigns::id),
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | mem_controller.h | 23 #include "ecmascript/base/gc_ring_buffer.h" 179 static double CalculateAverageSpeed(const base::GCRingBuffer<BytesAndDuration, LENGTH> &buffer); 180 static double CalculateAverageSpeed(const base::GCRingBuffer<BytesAndDuration, LENGTH> &buffer, 208 base::GCRingBuffer<BytesAndDuration, LENGTH> recordedIdleNewSpaceAllocations_; 209 base::GCRingBuffer<BytesAndDuration, LENGTH> recordedIdleOldSpaceAllocations_; 216 base::GCRingBuffer<BytesAndDuration, LENGTH> recordedMarkCompacts_; 217 base::GCRingBuffer<BytesAndDuration, LENGTH> recordedEdenSpaceAllocations_; 218 base::GCRingBuffer<BytesAndDuration, LENGTH> recordedNewSpaceAllocations_; 219 base::GCRingBuffer<BytesAndDuration, LENGTH> recordedOldSpaceAllocations_; 220 base [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
H A D | safe_ptr.h | 41 SafePtr(pointer ptr) : base(ptr) {} in SafePtr() 43 SafePtr(T &ref) : base(ref, CheckNothing<T>) {} in SafePtr() 48 SafePtr(U *ptr) : base(ptr) in SafePtr() 53 SafePtr(U &ref) : base(ref, CheckNothing<T>) in SafePtr() 60 SafePtr(const SafePtr &other) : base(other.base) {} in SafePtr() 62 SafePtr(SafePtr &&other) noexcept : base(std::move(other.base)) {} in move() 65 explicit SafePtr(const SafePtr<U> &other) : base(other.get(), CheckNothing<T>) in SafePtr() 70 explicit SafePtr(SafePtr<U> &&other) : base(othe 155 Base base; global() member in maple::utils::SafePtr [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
H A D | aot_version.h | 18 #include "ecmascript/base/file_header.h" 28 static constexpr base::FileHeaderBase::VersionType AN_VERSION = {4, 0, 0, 9}; 30 static constexpr base::FileHeaderBase::VersionType AI_VERSION = {4, 0, 0, 6}; 35 return base::FileHeaderBase::ConvToStr(AN_VERSION); in GetAOTVersion() 39 std::optional<base::FileHeaderBase::VersionType> oldVersionFormat = in CheckAOTVersion() 40 base::FileHeaderBase::strToVersion(oldVersion); in CheckAOTVersion() 42 return base::FileHeaderBase::VerifyVersionWithoutFile(AN_VERSION, *oldVersionFormat); in CheckAOTVersion()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | frames.h | 19 #include "ecmascript/base/aligned_struct.h"
182 struct OptimizedFrame : public base::AlignedStruct<base::AlignedPointer::Size(),
183 base::AlignedPointer,
184 base::AlignedPointer,
185 base::AlignedPointer> {
260 struct BaselineBuiltinFrame : public base::AlignedStruct<base::AlignedPointer::Size(),
261 base::AlignedPointer,
262 base 915 alignas(EAS) InterpretedFrameBase base; global() member 980 alignas(EAS) InterpretedFrameBase base; global() member 1152 alignas(EAS) InterpretedFrameBase base; global() member 1208 alignas(EAS) InterpretedFrameBase base; global() member 1263 alignas(EAS) InterpretedFrameBase base; global() member [all...] |
H A D | js_tagged_number.h | 19 #include "ecmascript/base/number_helper.h" 60 return base::NumberHelper::DoubleToInt(GetDouble(), base::INT32_BITS); in ToInt32() 70 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT16_BITS); in ToInt16() 80 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT8_BITS); in ToInt8() 90 return base::NumberHelper::NumberToString(thread, *this); in ToString()
|
/arkcompiler/runtime_core/static_core/runtime/core/ |
H A D | core_itable_builder.h | 25 bool Build([[maybe_unused]] ClassLinker *classLinker, [[maybe_unused]] Class *base, 28 if (base == nullptr) { // for panda.Object 31 ASSERT(!base->IsPrimitive()); 32 ASSERT(base->GetITable().Size() == 0);
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
H A D | gep_propagation.cpp | 127 mbase = PHINode::Create(bptrTy, phi->getNumIncomingValues(), "base", phi); in FindSplitGep() 137 mbase = SelectInst::Create(condition, undefBase, undefBase, "base", inst); in FindSplitGep() 200 auto [base, derived] = GetBasePointer(input); in GenerateInput() 202 auto instBase = llvm::dyn_cast<Instruction>(base); in GenerateInput() 206 base = mapit->second.first; in GenerateInput() 213 auto baseRaw = CastInst::Create(Instruction::PtrToInt, base, offTy, "", inPoint); in GenerateInput() 230 return {base, offset}; in GenerateInput() 256 auto [base, offset] = GenerateInput(input, inst, inPoint, mapping); in GenerateSelectorInputs() 257 setInputs(i, base, offset); in GenerateSelectorInputs() 280 auto base in GetBasePointer() local 374 auto base = queue.pop_back_val(); OptimizeSelectors() local [all...] |
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | arktsconfig.cpp | 83 static std::string MakeAbsolute(const std::string &path, const std::string &base) in MakeAbsolute() argument 85 return IsAbsolute(path) ? path : JoinPaths(base, path); in MakeAbsolute() 90 ArkTsConfig::Pattern::Pattern(std::string value, std::string base) : value_(std::move(value)), base_(std::move(base)) in Pattern() argument 138 static std::string ResolveConfigLocation(const std::string &relPath, const std::string &base) in ResolveConfigLocation() argument 140 auto resolvedPath = MakeAbsolute(relPath, base); in ResolveConfigLocation() 141 auto newBase = base; in ResolveConfigLocation() 159 auto base = ArkTsConfig(basePath); in ParseExtends() local 160 if (!Check(base.Parse(), "Failed to parse base confi in ParseExtends() 374 Inherit(const ArkTsConfig &base) Inherit() argument 474 Relative(const fs::path &src, const fs::path &base) Relative() argument [all...] |
/arkcompiler/ets_runtime/test/moduletest/memleakobjectcreate/ |
H A D | memleakobjectcreate.js | 18 var base = { 27 var instance = base.extend(); 28 base.test()
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsInterfaceDeclaration.cpp | 75 for (auto *base : type->Bases()) { in CheckInheritedPropertiesAreIdentical() 76 checker->ResolveStructuredTypeMembers(base); in CheckInheritedPropertiesAreIdentical() 78 base->AsInterfaceType()->CollectProperties(&inheritedProperties); in CheckInheritedPropertiesAreIdentical() 83 properties.insert({inheritedProp->Name(), {inheritedProp, base->AsInterfaceType()}}); in CheckInheritedPropertiesAreIdentical() 89 res->second.second, "' and '", base->AsInterfaceType(), "'."}, in CheckInheritedPropertiesAreIdentical() 116 for (auto *base : resolvedInterface->Bases()) { in Check() 117 checker->IsTypeAssignableTo(resolvedInterface, base, in Check() 118 {"Interface '", id_->Name(), "' incorrectly extends interface '", base, "'"}, in Check()
|