| /arkcompiler/ets_runtime/ecmascript/compiler/assembler/tests/ |
| H A D | assembler_x64_test.cpp | 136 uint32_t value = masm.GetU8(current++); in HWTEST_F_L0() local 137 ASSERT_EQ(value, 0x55U); in HWTEST_F_L0() 139 value = masm.GetU8(current++); in HWTEST_F_L0() 140 ASSERT_EQ(value, 0x6AU); in HWTEST_F_L0() 141 value = masm.GetU8(current++); in HWTEST_F_L0() 142 ASSERT_EQ(value, 0x00U); in HWTEST_F_L0() 144 value = masm.GetU8(current++); in HWTEST_F_L0() 145 ASSERT_EQ(value, 0x5DU); in HWTEST_F_L0() 148 value = masm.GetU8(current++); in HWTEST_F_L0() 149 ASSERT_EQ(value, in HWTEST_F_L0() 184 uint32_t value = masm.GetU8(current++); HWTEST_F_L0() local 266 uint32_t value = masm.GetU8(current++); HWTEST_F_L0() local 328 uint32_t value = masm.GetU8(current++); HWTEST_F_L0() local 407 uint32_t value = masm.GetU8(current++); HWTEST_F_L0() local [all...] |
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
| H A D | aarch64_imm_valid.h | 63 inline bool IsSingleInstructionMovable32(int64 value) in IsSingleInstructionMovable32() argument 65 // When value & ffffffff00000000 is 0, all high 32-bits are 0. in IsSingleInstructionMovable32() 66 // When value & ffffffff00000000 is ffffffff00000000, all high 32-bits are 1. in IsSingleInstructionMovable32() 68 if ((static_cast<uint64>(value) & 0xffffffff00000000ULL) != 0 && in IsSingleInstructionMovable32() 69 (static_cast<uint64>(value) & 0xffffffff00000000ULL) != 0xffffffff00000000ULL) { in IsSingleInstructionMovable32() 73 return (IsMoveWidableImmediateCopy(static_cast<uint64>(value), bitLen) || in IsSingleInstructionMovable32() 74 IsMoveWidableImmediateCopy(~static_cast<uint64>(value), bitLen) || in IsSingleInstructionMovable32() 75 IsBitmaskImmediate(static_cast<uint64>(value), bitLen)); in IsSingleInstructionMovable32() 78 inline bool IsSingleInstructionMovable64(int64 value) in IsSingleInstructionMovable64() argument 81 return (IsMoveWidableImmediateCopy(static_cast<uint64>(value), bitLe in IsSingleInstructionMovable64() 86 Imm12BitValid(int64 value) Imm12BitValid() argument 95 Imm12BitMaskValid(int64 value) Imm12BitMaskValid() argument 103 Imm13BitValid(int64 value) Imm13BitValid() argument 112 Imm13BitMaskValid(int64 value) Imm13BitMaskValid() argument 120 Imm16BitValid(int64 value) Imm16BitValid() argument 131 BitShift5BitValid(uint32 value) BitShift5BitValid() argument 138 BitShift6BitValid(uint32 value) BitShift6BitValid() argument 145 BitShift5BitValidImm(int64 value) BitShift5BitValidImm() argument 152 BitShift6BitValidImm(int64 value) BitShift6BitValidImm() argument 159 Imm16BitValidImm(int64 value) Imm16BitValidImm() argument 166 Nzcv4BitValid(int64 value) Nzcv4BitValid() argument 173 Lsb5BitValid(int64 value) Lsb5BitValid() argument 180 Width5BitValid(int64 value, int64 lsb) Width5BitValid() argument 187 Width5BitOnlyValid(int64 value) Width5BitOnlyValid() argument 194 Lsb6BitValid(int64 value) Lsb6BitValid() argument 201 Width6BitValid(int64 value, int64 lsb) Width6BitValid() argument 208 Width6BitOnlyValid(int64 value) Width6BitOnlyValid() argument 215 ExtendShift0To4Valid(uint32 value) ExtendShift0To4Valid() argument 221 LeftShift12Valid(uint32 value) LeftShift12Valid() argument 227 ImmShift32Valid(uint32 value) ImmShift32Valid() argument 233 ImmShift64Valid(uint32 value) ImmShift64Valid() argument 238 IsSIMMValid(int64 value) IsSIMMValid() argument 243 IsPIMMValid(int64 value, uint wordSize) IsPIMMValid() argument 253 StrLdrInsnSignedOfstValid(int64 value, uint wordSize, bool IsIntactIndexed) StrLdrInsnSignedOfstValid() argument 263 StrLdrSignedOfstValid(int64 value, uint wordSize) StrLdrSignedOfstValid() argument 268 StrLdr8ImmValid(int64 value) StrLdr8ImmValid() argument 273 StrLdr16ImmValid(int64 value) StrLdr16ImmValid() argument 278 StrLdr32ImmValid(int64 value) StrLdr32ImmValid() argument 283 StrLdr32PairImmValid(int64 value) StrLdr32PairImmValid() argument 292 StrLdr64ImmValid(int64 value) StrLdr64ImmValid() argument 297 StrLdr64PairImmValid(int64 value) StrLdr64PairImmValid() argument 306 StrLdr128ImmValid(int64 value) StrLdr128ImmValid() argument 311 StrLdr128PairImmValid(int64 value) StrLdr128PairImmValid() argument [all...] |
| /arkcompiler/runtime_core/static_core/irtoc/lang/ |
| H A D | regmask.rb | 20 attr_reader :value, :regmap 23 @value = 0 40 @value = args[0].value 44 args.each do |value| 45 if value.is_a?(Symbol) 47 raise "Regmap doesn't contain value for #{value}" unless @regmap.data.keys.include? value 48 value [all...] |
| /arkcompiler/ets_runtime/ecmascript/ |
| H A D | js_runtime_options.h | 39 DEFAULT = -1, // default value 000'0000'0001'0000'0101'1100 -> 0x105c 221 static_assert(OPTION_SPLIT_ONE == 64); // add new option at the bottom, DO NOT modify this value 222 static_assert(OPTION_SPLIT_TWO == 128); // add new option at the bottom, DO NOT modify this value 239 void SetEnableArkTools(bool value) in SetEnableArkTools() argument 241 enableArkTools_ = value; in SetEnableArkTools() 254 void SetOpenArkTools(bool value) in SetOpenArkTools() argument 256 openArkTools_ = value; in SetOpenArkTools() 269 void SetEnableRuntimeStat(bool value) in SetEnableRuntimeStat() argument 271 enableRuntimeStat_ = value; in SetEnableRuntimeStat() 284 void SetStubFile(std::string value) in SetStubFile() argument 324 SetEnableAOT(bool value) SetEnableAOT() argument 339 SetAOTOutputFile(const std::string& value) SetAOTOutputFile() argument 354 SetTargetTriple(std::string value) SetTargetTriple() argument 364 SetOptLevel(size_t value) SetOptLevel() argument 374 SetRelocMode(size_t value) SetRelocMode() argument 384 SetEnableForceGC(bool value) SetEnableForceGC() argument 394 SetEnableEdenGC(bool value) SetEnableEdenGC() argument 404 SetForceFullGC(bool value) SetForceFullGC() argument 457 std::string value; SetMemConfigProperty() local 645 SetMaxNonmovableSpaceCapacity(uint32_t value) SetMaxNonmovableSpaceCapacity() argument 650 SetEnableAsmInterpreter(bool value) SetEnableAsmInterpreter() argument 660 SetEnableBuiltinsLazy(bool value) SetEnableBuiltinsLazy() argument 670 SetAsmOpcodeDisableRange(std::string value) SetAsmOpcodeDisableRange() argument 675 SetDisableCodeSign(bool value) SetDisableCodeSign() argument 685 SetEnableJitFort(bool value) SetEnableJitFort() argument 695 SetEnableAsyncCopyToFort(bool value) SetEnableAsyncCopyToFort() argument 748 SetCompilerLogOption(std::string value) SetCompilerLogOption() argument 763 SetMethodsListForLog(std::string value) SetMethodsListForLog() argument 774 SetCompilerLogSnapshot(bool value) SetCompilerLogSnapshot() argument 789 SetCompilerLogTime(bool value) SetCompilerLogTime() argument 809 SetSerializerBufferSizeLimit(uint64_t value) SetSerializerBufferSizeLimit() argument 819 SetHeapSizeLimit(uint32_t value) SetHeapSizeLimit() argument 854 SetEnableIC(bool value) SetEnableIC() argument 869 SetIcuDataPath(std::string value) SetIcuDataPath() argument 884 SetStartupTime(bool value) SetStartupTime() argument 894 SetTraceBc(bool value) SetTraceBc() argument 914 SetLogLevel(std::string value) SetLogLevel() argument 929 SetLogComponents(arg_list_t value) SetLogComponents() argument 944 SetLogDebug(arg_list_t value) SetLogDebug() argument 959 SetLogInfo(arg_list_t value) SetLogInfo() argument 974 SetLogWarning(arg_list_t value) SetLogWarning() argument 989 SetLogError(arg_list_t value) SetLogError() argument 1004 SetLogFatal(arg_list_t value) SetLogFatal() argument 1019 SetMaxAotMethodSize(uint32_t value) SetMaxAotMethodSize() argument 1039 SetEntryPoint(std::string value) SetEntryPoint() argument 1054 SetMergeAbc(bool value) SetMergeAbc() argument 1059 SetEnableContext(bool value) SetEnableContext() argument 1069 SetEnablePrintExecuteTime(bool value) SetEnablePrintExecuteTime() argument 1079 SetEnableElementsKind(bool value) SetEnableElementsKind() argument 1089 SetEnableForceIC(bool value) SetEnableForceIC() argument 1099 SetEnablePGOProfiler(bool value) SetEnablePGOProfiler() argument 1124 SetPGOSaveMinInterval(uint32_t value) SetPGOSaveMinInterval() argument 1134 SetEnableBaselinePgo(bool value) SetEnableBaselinePgo() argument 1144 SetPGOProfilerPath(const std::string& value) SetPGOProfilerPath() argument 1154 SetEnableTypeLowering(bool value) SetEnableTypeLowering() argument 1164 SetEnableArrayBoundsCheckElimination(bool value) SetEnableArrayBoundsCheckElimination() argument 1174 SetEnableFrameStateElimination(bool value) SetEnableFrameStateElimination() argument 1184 SetEnableEarlyElimination(bool value) SetEnableEarlyElimination() argument 1194 SetEnableLaterElimination(bool value) SetEnableLaterElimination() argument 1204 SetEnableInstrcutionCombine(bool value) SetEnableInstrcutionCombine() argument 1214 SetEnableValueNumbering(bool value) SetEnableValueNumbering() argument 1224 SetEnableJIT(bool value) SetEnableJIT() argument 1234 SetEnableAPPJIT(bool value) SetEnableAPPJIT() argument 1244 SetEnableJitFrame(bool value) SetEnableJitFrame() argument 1259 SetEnableJitDfxDump(bool value) SetEnableJitDfxDump() argument 1264 SetEnableOSR(bool value) SetEnableOSR() argument 1274 SetJitHotnessThreshold(uint16_t value) SetJitHotnessThreshold() argument 1284 SetJitCallThreshold(uint8_t value) SetJitCallThreshold() argument 1294 SetOsrHotnessThreshold(uint16_t value) SetOsrHotnessThreshold() argument 1304 SetForceJitCompileMain(bool value) SetForceJitCompileMain() argument 1314 SetEnableBaselineJIT(bool value) SetEnableBaselineJIT() argument 1324 SetBaselineJitHotnessThreshold(uint16_t value) SetBaselineJitHotnessThreshold() argument 1334 SetForceBaselineCompileMain(bool value) SetForceBaselineCompileMain() argument 1344 SetEnableNewValueNumbering(bool value) SetEnableNewValueNumbering() argument 1354 SetEnableOptString(bool value) SetEnableOptString() argument 1364 SetEnableOptInlining(bool value) SetEnableOptInlining() argument 1374 SetEnableOptPGOType(bool value) SetEnableOptPGOType() argument 1384 SetEnableOptTrackField(bool value) SetEnableOptTrackField() argument 1404 SetTraceDeopt(bool value) SetTraceDeopt() argument 1414 SetDeoptThreshold(uint8_t value) SetDeoptThreshold() argument 1424 SetStressDeopt(bool value) SetStressDeopt() argument 1434 SetDeviceState(bool value) SetDeviceState() argument 1464 SetOptCodeProfiler(bool value) SetOptCodeProfiler() argument 1474 SetVerifyVTable(bool value) SetVerifyVTable() argument 1489 SetCompilerSelectMethods(std::string value) SetCompilerSelectMethods() argument 1499 SetCompilerSkipMethods(std::string value) SetCompilerSkipMethods() argument 1504 SetPGOTrace(bool value) SetPGOTrace() argument 1514 SetTraceInline(bool value) SetTraceInline() argument 1524 SetTraceValueNumbering(bool value) SetTraceValueNumbering() argument 1534 SetTraceJIT(bool value) SetTraceJIT() argument 1544 SetTraceInstructionCombine(bool value) SetTraceInstructionCombine() argument 1554 SetMaxInlineBytecodes(size_t value) SetMaxInlineBytecodes() argument 1634 SetCompilerNoCheck(bool value) SetCompilerNoCheck() argument 1648 SetCompilerPipelineHostAOT(bool value) SetCompilerPipelineHostAOT() argument 1658 SetFastAOTCompileMode(bool value) SetFastAOTCompileMode() argument 1668 SetEnableOptLoopPeeling(bool value) SetEnableOptLoopPeeling() argument 1678 SetEnableOptLoopInvariantCodeMotion(bool value) SetEnableOptLoopInvariantCodeMotion() argument 1693 SetEnableOptConstantFolding(bool value) SetEnableOptConstantFolding() argument 1698 SetEnableOptOnHeapCheck(bool value) SetEnableOptOnHeapCheck() argument 1713 SetEnableLexenvSpecialization(bool value) SetEnableLexenvSpecialization() argument 1723 SetEnableNativeInline(bool value) SetEnableNativeInline() argument 1733 SetEnableLoweringBuiltin(bool value) SetEnableLoweringBuiltin() argument 1738 SetCompilerEnableLiteCG(bool value) SetCompilerEnableLiteCG() argument 1748 SetTypedOpProfiler(bool value) SetTypedOpProfiler() argument 1763 SetEnableBranchProfiling(bool value) SetEnableBranchProfiling() argument 1768 SetTestAssert(bool value) SetTestAssert() argument 1799 SetOptCodeRange(std::string value) SetOptCodeRange() argument 1809 SetEnableEscapeAnalysis(bool value) SetEnableEscapeAnalysis() argument 1819 SetEnableTraceEscapeAnalysis(bool value) SetEnableTraceEscapeAnalysis() argument 1829 SetEnableInductionVariableAnalysis(bool value) SetEnableInductionVariableAnalysis() argument 1839 SetEnableTraceInductionVariableAnalysis(bool value) SetEnableTraceInductionVariableAnalysis() argument 1849 SetEnableMemoryAnalysis(bool value) SetEnableMemoryAnalysis() argument 1859 SetCheckPgoVersion(bool value) SetCheckPgoVersion() argument 1869 SetEnableJITPGO(bool value) SetEnableJITPGO() argument 1879 SetEnableProfileDump(bool value) SetEnableProfileDump() argument 1889 SetEnableAOTPGO(bool value) SetEnableAOTPGO() argument 1899 SetEnableJitFastCompile(bool value) SetEnableJitFastCompile() argument 1909 SetEnableFrameworkAOT(bool value) SetEnableFrameworkAOT() argument 1919 SetAsyncLoadAbc(bool value) SetAsyncLoadAbc() argument 1929 SetAsyncLoadAbcTest(bool value) SetAsyncLoadAbcTest() argument 1944 SetPgoForceDump(bool value) SetPgoForceDump() argument 1949 SetConcurrentCompile(bool value) SetConcurrentCompile() argument 1959 SetAOTHasException(bool value) SetAOTHasException() argument 1969 SetCompilerEnablePgoSpace(bool value) SetCompilerEnablePgoSpace() argument [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| H A D | std_core_Char.cpp | 23 extern "C" EtsBoolean StdCoreCharIsUpperCase(EtsChar value) in StdCoreCharIsUpperCase() argument 25 return ToEtsBoolean(value >= 'A' && value <= 'Z'); in StdCoreCharIsUpperCase() 27 extern "C" EtsChar StdCoreCharToUpperCase(EtsChar value) in StdCoreCharToUpperCase() argument 29 return (value >= 'a' && value <= 'z') ? value - LOWER_TO_UPPER_OFFSET : value; in StdCoreCharToUpperCase() 31 extern "C" EtsBoolean StdCoreCharIsLowerCase(EtsChar value) in StdCoreCharIsLowerCase() argument 33 return ToEtsBoolean(value > in StdCoreCharIsLowerCase() 35 StdCoreCharToLowerCase(EtsChar value) StdCoreCharToLowerCase() argument 39 StdCoreCharIsWhiteSpace(EtsChar value) StdCoreCharIsWhiteSpace() argument [all...] |
| /arkcompiler/runtime_core/static_core/libpandabase/tests/taskmanager/ |
| H A D | task_utils_test.cpp | 53 consumerCounter += optVal.value(); in TEST_F() 88 consumerCounter += optVal.value(); in TEST_F() 112 auto value = waitList.GetReadyValue(); in TEST_F() local 113 ASSERT_TRUE(value.has_value() && value.value() == RETURN_VALUE_1 && !waitList.HaveReadyValue()); in TEST_F() 119 value = waitList.GetReadyValue(); 120 ASSERT_TRUE(!value.has_value()); 123 value = waitList.GetValueById(id); 124 ASSERT_TRUE(value [all...] |
| /arkcompiler/runtime_core/libpandabase/utils/ |
| H A D | bit_utils.h | 49 static_assert(std::is_integral<T>::value, "T must be integral"); in Clz() 50 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in Clz() 65 static_assert(std::is_integral<T>::value, "T must be integral"); in Ctz() 66 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in Ctz() 81 static_assert(std::is_integral<T>::value, "T must be integral"); in Popcount() 82 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in Popcount() 92 // How many bits (minimally) does it take to store the constant 'value'? i.e. 1 for 1, 2 for 2 and 3, 3 for 4 and 5 etc. 94 constexpr size_t MinimumBitsToStore(T value) in MinimumBitsToStore() argument 99 auto uvalue = static_cast<UnderlyingType>(value); in MinimumBitsToStore() 109 if (value in MinimumBitsToStore() 132 IsAligned(T value) IsAligned() argument 139 IsAligned(T value, size_t n) IsAligned() argument 165 SwapBits(T value, T mask, uint32_t offset) SwapBits() argument 171 GetByteFrom(T value, uint64_t index) GetByteFrom() argument 180 ReverseBytes(uint16_t value) ReverseBytes() argument 186 ReverseBytes(uint32_t value) ReverseBytes() argument 195 ReverseBytes(uint64_t value) ReverseBytes() argument 219 ReverseBits(uint32_t value) ReverseBits() argument 233 ReverseBits(uint64_t value) ReverseBits() argument 247 BitCount(int32_t value) BitCount() argument 253 BitCount(uint32_t value) BitCount() argument 259 BitCount(int64_t value) BitCount() argument 273 ExtractBits(T value, size_t offset, size_t count) ExtractBits() argument 282 Low32Bits(T value) Low32Bits() argument 288 High32Bits(T value) High32Bits() argument 337 CastFloatToInt(From value) CastFloatToInt() argument [all...] |
| H A D | math_helpers.h | 52 * return value is power of two 55 constexpr bool IsPowerOfTwo(T value) in IsPowerOfTwo() argument 57 ASSERT(value > 0); in IsPowerOfTwo() 58 return (value & (value - 1)) == 0; in IsPowerOfTwo() 62 * returns an integer power of two but not greater than value. 64 constexpr uint32_t GetPowerOfTwoValue32(uint32_t value) in GetPowerOfTwoValue32() argument 66 ASSERT(value < (1UL << 31UL)); in GetPowerOfTwoValue32() 67 if (value > 0) { in GetPowerOfTwoValue32() 68 --value; in GetPowerOfTwoValue32() [all...] |
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| H A D | bit_utils.h | 50 static_assert(std::is_integral<T>::value, "T must be integral"); in Clz() 51 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in Clz() 66 static_assert(std::is_integral<T>::value, "T must be integral"); in Ctz() 67 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in Ctz() 82 static_assert(std::is_integral<T>::value, "T must be integral"); in Popcount() 83 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in Popcount() 93 // How many bits (minimally) does it take to store the constant 'value'? i.e. 1 for 1, 2 for 2 and 3, 3 for 4 and 5 etc. 95 constexpr size_t MinimumBitsToStore(T value) in MinimumBitsToStore() argument 100 auto uvalue = static_cast<UnderlyingType>(value); in MinimumBitsToStore() 110 if (value in MinimumBitsToStore() 133 IsAligned(T value) IsAligned() argument 140 IsAligned(T value, size_t n) IsAligned() argument 167 SwapBits(T value, T mask, uint32_t offset) SwapBits() argument 173 GetByteFrom(T value, uint64_t index) GetByteFrom() argument 182 ReverseBytes(uint16_t value) ReverseBytes() argument 188 ReverseBytes(uint32_t value) ReverseBytes() argument 197 ReverseBytes(uint64_t value) ReverseBytes() argument 221 ReverseBits(uint32_t value) ReverseBits() argument 235 ReverseBits(uint64_t value) ReverseBits() argument 249 BitCount(int32_t value) BitCount() argument 255 BitCount(uint32_t value) BitCount() argument 261 BitCount(int64_t value) BitCount() argument 275 ExtractBits(T value, size_t offset, size_t count) ExtractBits() argument 284 Low32Bits(T value) Low32Bits() argument 290 High32Bits(T value) High32Bits() argument 333 CastFloatToInt(From value) CastFloatToInt() argument [all...] |
| H A D | math_helpers.h | 60 /// return value is power of two 62 inline constexpr bool IsPowerOfTwo(T value) in IsPowerOfTwo() argument 66 return (value != 0U) && (value & (value - 1U)) == 0U; in IsPowerOfTwo() 69 auto absValue = bit_cast<UT>(AbsOrMin(value)); in IsPowerOfTwo() 74 /// returns an integer power of two but not greater than value. 75 constexpr uint32_t GetPowerOfTwoValue32(uint32_t value) in GetPowerOfTwoValue32() argument 77 ASSERT(value < (1UL << 31UL)); in GetPowerOfTwoValue32() 78 if (value > in GetPowerOfTwoValue32() [all...] |
| /arkcompiler/ets_runtime/test/moduletest/container/ |
| H A D | utility.js | 18 res.set("test keys:", iteratorKey1.next().value == "a" && iteratorKey1.next().value == "b" && 19 iteratorKey1.next().value == "c" && iteratorKey1.next().value == undefined); 22 res.set("test values:", iteratorValues1.next().value == "aa" && iteratorValues1.next().value == "bb" && 23 iteratorValues1.next().value == "cc" && iteratorValues1.next().value == undefined); 26 iteratorEntries1.next().value; 27 iteratorEntries1.next().value; [all...] |
| /arkcompiler/toolchain/tooling/base/ |
| H A D | pt_json.cpp | 41 cJSON *value = cJSON_ParseWithOpts(data.c_str(), nullptr, true); in Parse() local 42 return std::make_unique<PtJson>(value); in Parse() 61 bool PtJson::Add(const char *key, bool value) const in Add() 65 cJSON *node = cJSON_CreateBool(value); in Add() 79 bool PtJson::Add(const char *key, int32_t value) const in Add() 81 return Add(key, static_cast<double>(value)); in Add() 84 bool PtJson::Add(const char *key, int64_t value) const in Add() 86 return Add(key, static_cast<double>(value)); in Add() 89 bool PtJson::Add(const char *key, uint32_t value) const in Add() 91 return Add(key, static_cast<double>(value)); in Add() [all...] |
| H A D | pt_json.h | 52 bool Add(const char *key, bool value) const; 53 bool Add(const char *key, int32_t value) const; 54 bool Add(const char *key, int64_t value) const; 55 bool Add(const char *key, uint32_t value) const; 56 bool Add(const char *key, double value) const; 57 bool Add(const char *key, const char *value) const; 58 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const; 61 bool Push(bool value) const; 62 bool Push(int32_t value) const; 63 bool Push(int64_t value) cons [all...] |
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
| H A D | object_repository.cpp | 41 for (const auto &[paramName, value] : locals) { in CreateFrameObject() 42 auto obj = CreateObject(value); in CreateFrameObject() 56 RemoteObject ObjectRepository::CreateObject(TypedValue value) in CreateObject() argument 60 switch (value.GetType()) { in CreateObject() 65 return RemoteObject::Boolean(value.GetAsU1()); in CreateObject() 67 return RemoteObject::Number(value.GetAsI8()); in CreateObject() 69 return RemoteObject::Number(value.GetAsU8()); in CreateObject() 71 return RemoteObject::Number(value.GetAsI16()); in CreateObject() 73 return RemoteObject::Number(value.GetAsU16()); in CreateObject() 75 return RemoteObject::Number(value in CreateObject() 94 CreateObject(Value value, panda_file::Type::TypeId type) CreateObject() argument 145 RemoteObject &value = property.GetValue(); GetProperties() local 168 CreateObject(coretypes::TaggedValue value) CreateObject() argument [all...] |
| /arkcompiler/ets_runtime/ecmascript/base/ |
| H A D | bit_helper.h | 64 inline constexpr uint32_t CountLeadingZeros(T value) in CountLeadingZeros() argument 67 static_assert(std::is_integral<T>::value, "T must be integral"); in CountLeadingZeros() 68 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in CountLeadingZeros() 71 if (value == 0) { in CountLeadingZeros() 75 return __builtin_clzll(static_cast<uint64_t>(value)); in CountLeadingZeros() 78 return __builtin_clz(static_cast<uint32_t>(value)) - (32 - std::numeric_limits<T>::digits); in CountLeadingZeros() 81 inline constexpr uint32_t CountLeadingZeros32(uint32_t value) in CountLeadingZeros32() argument 83 return CountLeadingZeros(value); in CountLeadingZeros32() 86 inline constexpr uint32_t CountLeadingZeros64(uint64_t value) in CountLeadingZeros64() argument 88 return CountLeadingZeros(value); in CountLeadingZeros64() 91 CountLeadingOnes32(uint32_t value) CountLeadingOnes32() argument 96 CountLeadingOnes64(uint64_t value) CountLeadingOnes64() argument 102 CountTrailingZeros(T value) CountTrailingZeros() argument 118 CountTrailingZeros32(uint32_t value) CountTrailingZeros32() argument 123 CountTrailingZeros64(uint64_t value) CountTrailingZeros64() argument 128 CountTrailingOnes32(uint32_t value) CountTrailingOnes32() argument 133 CountTrailingOnes64(uint64_t value) CountTrailingOnes64() argument [all...] |
| /arkcompiler/runtime_core/static_core/assembler/ |
| H A D | meta.cpp | 27 std::optional<Metadata::Error> Metadata::ValidateSize(std::string_view value) const in ValidateSize() 31 if (!std::all_of(value.cbegin(), value.cend(), ::isdigit)) { in ValidateSize() 32 return Error("Unsigned integer value expected", Error::Type::INVALID_VALUE); in ValidateSize() 35 strtoul(value.data(), nullptr, SIZE); in ValidateSize() 48 static ark::pandasm::Value::Type GetType(std::string_view value) in GetType() argument 59 return types[value]; in GetType() 63 static T ConvertFromString(std::string_view value, char **end) in ConvertFromString() argument 71 auto v = ConvertFromString<int64_t>(value, end); in ConvertFromString() 79 auto v = ConvertFromString<uint64_t>(value, en in ConvertFromString() 88 ConvertFromString(std::string_view value, char **end) ConvertFromString() argument 94 ConvertFromString(std::string_view value, char **end) ConvertFromString() argument 100 ConvertFromString(std::string_view value, char **end) ConvertFromString() argument 106 ConvertFromString(std::string_view value, char **end) ConvertFromString() argument 112 ConvertFromString(std::string_view value) ConvertFromString() argument 133 CreatePrimitiveValue(std::string_view value, T maxValue = std::numeric_limits<T>::max()) CreatePrimitiveValue() argument 150 CreateValue( Value::Type type, std::string_view value, const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotationIdMap = {}) CreateValue() argument 217 AddValue( std::string_view value, const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotationIdMap) AddValue() argument 253 MeetExpRecordAttribute(std::string_view attribute, std::string_view value) MeetExpRecordAttribute() argument 267 MeetExpIdAttribute(std::string_view attribute, std::string_view value) MeetExpIdAttribute() argument 287 MeetExpElementNameAttribute(std::string_view attribute, std::string_view value) MeetExpElementNameAttribute() argument 307 MeetExpElementTypeAttribute(std::string_view attribute, std::string_view value) MeetExpElementTypeAttribute() argument 327 MeetExpElementArrayComponentTypeAttribute(std::string_view attribute, std::string_view value) MeetExpElementArrayComponentTypeAttribute() argument 352 MeetExpElementValueAttribute(std::string_view attribute, std::string_view value) MeetExpElementValueAttribute() argument 382 StoreValue(std::string_view attribute, std::string_view value) StoreValue() argument 489 StoreValue(std::string_view attribute, std::string_view value) StoreValue() argument [all...] |
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| H A D | typed_value.h | 47 static TypedValue U1(bool value) in U1() argument 49 return TypedValue {value}; in U1() 52 static TypedValue I8(int8_t value) in I8() argument 54 return TypedValue {value}; in I8() 57 static TypedValue U8(uint8_t value) in U8() argument 59 return TypedValue {value}; in U8() 62 static TypedValue I16(int16_t value) in I16() argument 64 return TypedValue {value}; in I16() 67 static TypedValue U16(uint16_t value) in U16() argument 69 return TypedValue {value}; in U16() 72 I32(int32_t value) I32() argument 77 U32(uint32_t value) U32() argument 82 F32(float value) F32() argument 87 F64(double value) F64() argument 92 I64(int64_t value) I64() argument 97 U64(uint64_t value) U64() argument 102 Reference(ObjectHeader *value) Reference() argument 107 Tagged(coretypes::TaggedValue value) Tagged() argument 274 TypedValue(Value value) TypedValue() argument [all...] |
| /arkcompiler/runtime_core/assembler/ |
| H A D | meta.cpp | 27 std::optional<Metadata::Error> Metadata::ValidateSize(const std::string_view &value) const in ValidateSize() 31 if (!std::all_of(value.cbegin(), value.cend(), ::isdigit)) { in ValidateSize() 32 return Error("Unsigned integer value expected", Error::Type::INVALID_VALUE); in ValidateSize() 35 strtoul(value.data(), nullptr, SIZE); in ValidateSize() 48 static panda::pandasm::Value::Type GetType(const std::string_view &value) in GetType() argument 59 return types[value]; in GetType() 63 static T ConvertFromString(const std::string_view &value, char **end) in ConvertFromString() argument 71 auto v = ConvertFromString<int64_t>(value, end); in ConvertFromString() 79 auto v = ConvertFromString<uint64_t>(value, en in ConvertFromString() 88 ConvertFromString(const std::string_view &value, char **end) ConvertFromString() argument 94 ConvertFromString(const std::string_view &value, char **end) ConvertFromString() argument 100 ConvertFromString(const std::string_view &value, char **end) ConvertFromString() argument 106 ConvertFromString(const std::string_view &value, char **end) ConvertFromString() argument 112 ConvertFromString(const std::string_view &value) ConvertFromString() argument 132 CreatePrimitiveValue(const std::string_view &value, T max_value = std::numeric_limits<T>::max()) CreatePrimitiveValue() argument 148 CreateValue( Value::Type type, const std::string_view &value, const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotation_id_map = {}) CreateValue() argument 215 AddValue( const std::string_view &value, const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotation_id_map) AddValue() argument 252 MeetExpRecordAttribute(const std::string_view &attribute, const std::string_view &value) MeetExpRecordAttribute() argument 266 MeetExpIdAttribute(const std::string_view &attribute, const std::string_view &value) MeetExpIdAttribute() argument 286 MeetExpElementNameAttribute(const std::string_view &attribute, const std::string_view &value) MeetExpElementNameAttribute() argument 306 MeetExpElementTypeAttribute( const std::string_view &attribute, const std::string_view &value) MeetExpElementTypeAttribute() argument 326 MeetExpElementArrayComponentTypeAttribute( const std::string_view &attribute, const std::string_view &value) MeetExpElementArrayComponentTypeAttribute() argument 351 MeetExpElementValueAttribute(const std::string_view &attribute, const std::string_view &value) MeetExpElementValueAttribute() argument 381 StoreValue(const std::string_view &attribute, const std::string_view &value) StoreValue() argument 479 StoreValue(const std::string_view &attribute, const std::string_view &value) StoreValue() argument [all...] |
| /arkcompiler/runtime_core/static_core/runtime/interpreter/ |
| H A D | vregister.h | 34 // An uint64_t value is used for storing the tags of values. This kind of tags is compatible with static and dynamic 38 // details | unused | @000: default | @011: INT | @0: value is a | 39 // | | @001: STRING | @100: DOUBLE | primitive value | 40 // | | | | @1: value is a | 48 // the value is a object pointer, otherwise, the value is a primitive value for both static and dynamic languages. 60 // OBJECT_FLAG_MASK is compatible with static and dynamic languages, and 0x1 means the value is 'reference type' in 85 ALWAYS_INLINE inline void Set(int32_t value) in Set() argument 87 SetValue(value); in Set() 90 Set(uint32_t value) Set() argument 95 Set(int64_t value) Set() argument 100 Set(uint64_t value) Set() argument 106 Set(float value) Set() argument 112 Set(double value) Set() argument 118 Set(ObjectHeader *value) Set() argument 259 SetPrimitive(int32_t value) SetPrimitive() argument 264 SetPrimitive(int64_t value) SetPrimitive() argument 269 SetPrimitive(float value) SetPrimitive() argument 274 SetPrimitive(double value) SetPrimitive() argument 279 SetPrimitive(uint64_t value) SetPrimitive() argument 289 Set(int32_t value) Set() argument 294 Set(uint32_t value) Set() argument 299 Set(int64_t value) Set() argument 304 Set(uint64_t value) Set() argument 309 Set(float value) Set() argument 314 Set(double value) Set() argument 319 Set(ObjectHeader *value) Set() argument 390 SetTag(int64_t value) SetTag() argument 400 Move(std::pair<int64_t, int64_t> value) Move() argument 445 SetPrimitive(int32_t value) SetPrimitive() argument 451 SetPrimitive(int64_t value) SetPrimitive() argument 457 SetPrimitive(float value) SetPrimitive() argument 463 SetPrimitive(double value) SetPrimitive() argument 469 SetPrimitive(uint64_t value) SetPrimitive() argument 494 Move(std::pair<int64_t, int64_t> value) Move() argument 536 SetPrimitive(int32_t value) SetPrimitive() argument 541 SetPrimitive(int64_t value) SetPrimitive() argument 546 SetPrimitive(float value) SetPrimitive() argument 551 SetPrimitive(double value) SetPrimitive() argument 556 SetPrimitive(uint64_t value) SetPrimitive() argument [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| H A D | ets_value.h | 28 if constexpr (std::is_same<T, ets_boolean>::value) { // NOLINT in GetEtsType() 31 if constexpr (std::is_same<T, ets_byte>::value) { // NOLINT in GetEtsType() 34 if constexpr (std::is_same<T, ets_char>::value) { // NOLINT in GetEtsType() 37 if constexpr (std::is_same<T, ets_short>::value) { // NOLINT in GetEtsType() 40 if constexpr (std::is_same<T, ets_int>::value) { // NOLINT in GetEtsType() 43 if constexpr (std::is_same<T, ets_long>::value) { // NOLINT in GetEtsType() 46 if constexpr (std::is_same<T, ets_float>::value) { // NOLINT in GetEtsType() 49 if constexpr (std::is_same<T, ets_double>::value) { // NOLINT in GetEtsType() 52 if constexpr (std::is_same<T, EtsObject>::value) { // NOLINT in GetEtsType() 55 if constexpr (std::is_same<T, void>::value) { // NOLIN in GetEtsType() 66 EtsValue(T value) EtsValue() argument [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/internal_tests/ |
| H A D | test_mirror.py | 24 from arkdb.mirrors import mirror_primitive as value namespace 78 value("int", 1), 79 value("int", 1), 82 value("int", 2), 87 value("int", 3), 90 cls("std.core.Double", value=1.1), 91 cls("std.core.Double", value=value("number", 1.1)), 94 cls("std.core.Double", value=value("numbe [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/convert/ |
| H A D | convert.rb | 15 TypeInfo = Struct.new(:name, :value, :type, :unwrap, :wrap, keyword_init: true) do 24 TypeInfo.new(name: 'String', value: '"abc"', unwrap: 'String'), 25 TypeInfo.new(name: 'boolean', value: 'true', unwrap: 'U1', wrap: 'U1'), 26 TypeInfo.new(name: 'byte', value: '127', unwrap: 'F64', wrap: 'I8'), 27 TypeInfo.new(name: 'short', value: '32767', unwrap: 'F64', wrap: 'I16'), 28 TypeInfo.new(name: 'int', value: '2147483647', unwrap: 'F64', wrap: 'I32'), 29 TypeInfo.new(name: 'long', value: '9223372036854775', unwrap: 'F64', wrap: 'I64'), 30 TypeInfo.new(name: 'char', value: '65535', unwrap: 'F64', wrap: 'U16'), 31 TypeInfo.new(name: 'double', value: '12.34', unwrap: 'F64', wrap: 'F64'), 32 TypeInfo.new(name: 'float', value [all...] |
| /arkcompiler/ets_frontend/merge_abc/src/ |
| H A D | assemblyLiteralsProto.cpp | 19 void VariantValue::Serialize(const LiteralValueType &value, protoPanda::VariantValue &protoValue) in Serialize() argument 21 const auto type = static_cast<protoPanda::VariantValue_VariantValueType>(value.index()); in Serialize() 25 protoValue.set_valueint(static_cast<uint64_t>(std::get<bool>(value))); in Serialize() 29 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint8_t>(value))); in Serialize() 33 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint16_t>(value))); in Serialize() 37 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint32_t>(value))); in Serialize() 41 protoValue.set_valueint(std::get<uint64_t>(value)); in Serialize() 45 protoValue.set_valuefloat(std::get<float>(value)); in Serialize() 49 protoValue.set_valuedouble(std::get<double>(value)); in Serialize() 53 protoValue.set_valuestr(std::get<std::string>(value)); in Serialize() 61 Deserialize(const protoPanda::VariantValue &protoValue, LiteralValueType &value) Deserialize() argument 123 auto *value = protoLiteral.mutable_value(); Serialize() local [all...] |
| /arkcompiler/runtime_core/static_core/abc2program/ |
| H A D | abc_literal_array_processor.cpp | 30 const panda_file::LiteralDataAccessor::LiteralValue &value) const in FillLiteralArrayData() 32 panda_file::File::EntityId id(std::get<uint32_t>(value)); in FillLiteralArrayData() 39 lit.value = bit_cast<T>(panda_file::helpers::Read<sizeof(T)>(&sp)); in FillLiteralArrayData() 47 lit.value = stringTable_->GetStringById(panda_file::File::EntityId(strId)); in FillLiteralArrayData() 54 const panda_file::LiteralDataAccessor::LiteralValue &value, in FillLiteralData() 61 lit.value = std::get<bool>(value); in FillLiteralData() 66 lit.value = std::get<uint8_t>(value); in FillLiteralData() 70 lit.value in FillLiteralData() 53 FillLiteralData(pandasm::LiteralArray *litArray, const panda_file::LiteralDataAccessor::LiteralValue &value, const panda_file::LiteralTag &tag) const FillLiteralData() argument [all...] |
| /arkcompiler/runtime_core/assembler/extensions/ |
| H A D | ecmascript_meta.cpp | 31 return Error("Attribute 'ecmascript.extends' must have a value", in Validate() 39 const std::string_view &value) const in Validate() 50 return Error("Attribute 'ecmascript.annotation' must not have a value", in Validate() 54 return pandasm::RecordMetadata::Validate(attribute, value); in Validate() 63 const std::string_view &value) const in Validate() 65 return pandasm::FieldMetadata::Validate(attribute, value); in Validate() 74 const std::string_view &value) const in Validate() 76 return pandasm::FunctionMetadata::Validate(attribute, value); in Validate() 85 const std::string_view &value) const in Validate() 87 return pandasm::ParamMetadata::Validate(attribute, value); in Validate() 98 SetFlags(const std::string_view &attribute, const std::string_view &value) SetFlags() argument 113 RemoveFlags(const std::string_view &attribute, const std::string_view &value) RemoveFlags() argument 123 SetFlags(const std::string_view &attribute, const std::string_view &value) SetFlags() argument 133 RemoveFlags(const std::string_view &attribute, const std::string_view &value) RemoveFlags() argument 143 SetFlags(const std::string_view &attribute, const std::string_view &value) SetFlags() argument 153 RemoveFlags(const std::string_view &attribute, const std::string_view &value) RemoveFlags() argument 163 SetFlags(const std::string_view &attribute, const std::string_view &value) SetFlags() argument 173 RemoveFlags(const std::string_view &attribute, const std::string_view &value) RemoveFlags() argument [all...] |