Home
last modified time | relevance | path

Searched refs:vals (Results 1 - 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_dataview_test.cpp188 std::vector<JSTaggedValue> vals{JSTaggedValue(offset), value}; in SetUint8()
189 DataViewAlgorithm(thread, vals, 8, AlgorithmType::SET_UINT8, view.GetTaggedValue()); // 8: data max len in SetUint8()
233 std::vector<JSTaggedValue> vals{}; in HWTEST_F_L0()
234 auto result = DataViewAlgorithm(thread, vals, 4, AlgorithmType::GET_OFFSET, view.GetTaggedValue()); in HWTEST_F_L0()
243 result = DataViewAlgorithm(thread, vals, 4, AlgorithmType::GET_OFFSET, view.GetTaggedValue()); in HWTEST_F_L0()
255 std::vector<JSTaggedValue> vals{}; in HWTEST_F_L0()
256 auto result = DataViewAlgorithm(thread, vals, 4, AlgorithmType::GET_BYTELENGTH, view.GetTaggedValue()); in HWTEST_F_L0()
264 result = DataViewAlgorithm(thread, vals, 4, AlgorithmType::GET_BYTELENGTH, view.GetTaggedValue()); in HWTEST_F_L0()
275 std::vector<JSTaggedValue> vals{}; in HWTEST_F_L0()
276 auto result = DataViewAlgorithm(thread, vals, in HWTEST_F_L0()
[all...]
H A Dbuiltins_atomics_test.cpp193 static JSTaggedValue AtomicsAlgorithm(JSThread *thread, JSHandle<JSTaggedValue>& obj, std::vector<int32_t>& vals, in AtomicsAlgorithm() argument
200 for (size_t i = 0; i < vals.size(); i++) { in AtomicsAlgorithm()
201 ecmaRuntimeCallInfos->SetCallArg(i+1, JSTaggedValue(vals[i])); in AtomicsAlgorithm()
246 static JSHandle<TaggedArray> CreateArrayList(JSThread *thread, std::vector<int32_t> vals, size_t maxLen) in CreateArrayList() argument
250 for (size_t i = 0; i < vals.size(); i++) { in CreateArrayList()
251 array->Set(thread, i, JSTaggedValue(vals[i])); in CreateArrayList()
263 std::vector<int32_t> vals{0, 5}; in HWTEST_F_L0()
264 auto result = AtomicsAlgorithm(thread, obj, vals, 10, AlgorithmType::ALGORITHM_ADD); in HWTEST_F_L0()
274 std::vector<int32_t> vals{0, 2}; in AddCommon()
275 auto result = AtomicsAlgorithm(thread, obj, vals, 1 in AddCommon()
[all...]
H A Dbuiltins_date_time_format_first_test.cpp72 std::vector<JSTaggedValue> vals, uint32_t argLen, AlgorithmType type = AlgorithmType::ALGORITHM_FORMAT) in AtomicsAlgorithm()
77 for (size_t i = 0; i < vals.size(); i++) { in AtomicsAlgorithm()
78 ecmaRuntimeCallInfos->SetCallArg(i, vals[i]); in AtomicsAlgorithm()
109 std::vector<JSTaggedValue> vals{JSTaggedValue::Undefined()}; in FormatCommon()
111 AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 6, AlgorithmType::ALGORITHM_FORMAT); // 6: args length in FormatCommon()
153 std::vector<JSTaggedValue> vals{JSTaggedValue::Undefined()}; in HWTEST_F_L0()
154 auto result = AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 6, in HWTEST_F_L0()
172 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<double>(days1)), in HWTEST_F_L0()
175 AtomicsAlgorithm(thread, jsDateTimeFormat, vals, 8, AlgorithmType::ALGORITHM_FORMAT_RANGE); // 8: args length in HWTEST_F_L0()
193 std::vector<JSTaggedValue> vals{JSTaggedValu in HWTEST_F_L0()
71 AtomicsAlgorithm(JSThread *thread, JSHandle<JSDateTimeFormat>& jsDateTimeFormat, std::vector<JSTaggedValue> vals, uint32_t argLen, AlgorithmType type = AlgorithmType::ALGORITHM_FORMAT) AtomicsAlgorithm() argument
[all...]
H A Dbuiltins_bigint_test.cpp83 std::vector<JSTaggedValue> vals{numericValue.GetTaggedValue()}; in HWTEST_F_L0()
84 auto result = BigIntAlgorithm(thread, vals, 6, AlgorithmType::BIGINT_CONSTRUCTOR); in HWTEST_F_L0()
95 std::vector<JSTaggedValue> vals{numericValue.GetTaggedValue()}; in HWTEST_F_L0()
96 auto result = BigIntAlgorithm(thread, vals, 6, AlgorithmType::BIGINT_CONSTRUCTOR); in HWTEST_F_L0()
106 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<int>(bit)), numericValue.GetTaggedValue()}; in HWTEST_F_L0()
107 auto result = BigIntAlgorithm(thread, vals, 8, AlgorithmType::BIGINT_ASINTN); in HWTEST_F_L0()
122 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<int>(bit)), numericValue.GetTaggedValue()}; in HWTEST_F_L0()
123 auto result = BigIntAlgorithm(thread, vals, 8, AlgorithmType::BIGINT_ASINTN); in HWTEST_F_L0()
138 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<int>(bit)), numericValue.GetTaggedValue()}; in HWTEST_F_L0()
139 auto result = BigIntAlgorithm(thread, vals, in HWTEST_F_L0()
[all...]
H A Dbuiltins_date_test.cpp53 static JSTaggedValue DateAlgorithm(JSThread *thread, const JSTaggedValue& thisTag, std::vector<JSTaggedValue>& vals, in DateAlgorithm() argument
59 for (size_t i = 0; i < vals.size(); i++) { in DateAlgorithm()
60 ecmaRuntimeCallInfos->SetCallArg(i, JSTaggedValue(vals[i])); in DateAlgorithm()
86 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<double>(2))}; in HWTEST_F_L0()
87 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, vals, 6, jsDate.GetTaggedValue()); in HWTEST_F_L0()
100 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<double>(2))}; in HWTEST_F_L0()
101 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, vals, 6, jsDate.GetTaggedValue()); in HWTEST_F_L0()
114 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<double>(-2))}; in HWTEST_F_L0()
115 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, vals, 6, jsDate.GetTaggedValue()); in HWTEST_F_L0()
128 std::vector<JSTaggedValue> vals{JSTaggedValu in HWTEST_F_L0()
[all...]
H A Dbuiltins_collator_test.cpp123 std::vector<JSTaggedValue> vals{localesString.GetTaggedValue(), optionsObj.GetTaggedValue()}; in HWTEST_F_L0()
124 auto result = CollatorConstructor(thread, vals, newTarget); in HWTEST_F_L0()
135 std::vector<JSTaggedValue> vals{localesString.GetTaggedValue(), JSTaggedValue::Undefined()}; in JSCollatorCreateWithLocaleTest()
136 auto result = CollatorConstructor(thread, vals, newTarget); in JSCollatorCreateWithLocaleTest()
159 std::vector<JSTaggedValue> vals{localesString.GetTaggedValue(), optionsObj.GetTaggedValue()}; in JSCollatorCreateWithLocaleAndOptionsTest()
160 auto result = CollatorConstructor(thread, vals, newTarget); in JSCollatorCreateWithLocaleAndOptionsTest()
173 std::vector<JSTaggedValue> vals{}; in HWTEST_F_L0()
174 auto result1 = CollatorAlgorithm(thread, vals, 4, AlgorithmType::COLLATOR_COMPARE, jsCollator.GetTaggedValue()); in HWTEST_F_L0()
211 std::vector<JSTaggedValue> vals{}; in HWTEST_F_L0()
212 auto result1 = CollatorAlgorithm(thread, vals, in HWTEST_F_L0()
[all...]
H A Dbuiltins_list_format_first_test.cpp81 void DefineOwnPropertyCommonTest(JSThread* thread, JSHandle<JSObject>& obj, std::vector<JSHandle<JSTaggedValue>>& vals) in DefineOwnPropertyCommonTest() argument
83 for (size_t i = 0; i < vals.size(); i++) { in DefineOwnPropertyCommonTest()
85 PropertyDescriptor desc(thread, vals[i], true, true, true); in DefineOwnPropertyCommonTest()
99 std::vector<JSHandle<JSTaggedValue>> vals; in CommonTest() local
102 vals.push_back(listValue); in CommonTest()
105 DefineOwnPropertyCommonTest(thread, value, vals); in CommonTest()
H A Dbuiltins_list_format_second_test.cpp40 std::vector<JSHandle<JSTaggedValue>> vals; in CommonTest() local
87 std::vector<std::string> vals{"Apple", "Orange", "Pineapple"}; in HWTEST_F_L0()
88 JSTaggedValue result = CommonTest(thread, locale, typeValue, vals); in HWTEST_F_L0()
102 std::vector<std::string> vals{"Apple", "Orange", "Pineapple"}; in HWTEST_F_L0()
103 JSTaggedValue result = CommonTest(thread, locale, typeValue, vals); in HWTEST_F_L0()
119 std::vector<std::string> vals{"中文", "英文"}; in HWTEST_F_L0()
120 JSTaggedValue result = CommonTest(thread, locale, typeValue, vals); in HWTEST_F_L0()
135 std::vector<std::string> vals{"中文", "英文", "韩文", "葡萄牙语"}; in HWTEST_F_L0()
136 JSTaggedValue result = CommonTest(thread, locale, typeValue, vals); in HWTEST_F_L0()
H A Dbuiltins_array_test.cpp235 std::vector<int>& vals) in DefineOwnPropertyCommonTest()
238 for (size_t i = 0; i < vals.size(); i++) { in DefineOwnPropertyCommonTest()
240 PropertyDescriptor desc0(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(vals[i])), true, true, true); in DefineOwnPropertyCommonTest()
247 std::vector<int>& vals) in DefineOwnPropertyCommonTest()
251 for (size_t i = 0; i < vals.size(); i++) { in DefineOwnPropertyCommonTest()
253 PropertyDescriptor desc0(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(vals[i])), true, true, true); in DefineOwnPropertyCommonTest()
260 std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) in CheckKeyValueCommon()
262 for (size_t i = 0; i < vals.size(); i++) { in CheckKeyValueCommon()
264 ASSERT_EQ(descRes.GetValue().GetTaggedValue(), JSTaggedValue(vals[i])); in CheckKeyValueCommon()
292 std::vector<int> vals{ in HWTEST_F_L0()
234 DefineOwnPropertyCommonTest(JSThread* thread, JSHandle<JSObject>& obj, std::vector<int>& vals) DefineOwnPropertyCommonTest() argument
246 DefineOwnPropertyCommonTest(JSThread* thread, JSHandle<JSTaggedValue>& obj, std::vector<int>& vals) DefineOwnPropertyCommonTest() argument
259 CheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) CheckKeyValueCommon() argument
[all...]
H A Dbuiltins_shared_array_test.cpp225 std::vector<int>& vals) in SharedArrayDefineOwnPropertyTest()
228 for (size_t i = 0; i < vals.size(); i++) { in SharedArrayDefineOwnPropertyTest()
230 PropertyDescriptor desc0(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(vals[i])), true, true, true); in SharedArrayDefineOwnPropertyTest()
237 std::vector<int>& vals) in SharedArrayDefineOwnPropertyTest()
241 for (size_t i = 0; i < vals.size(); i++) { in SharedArrayDefineOwnPropertyTest()
243 PropertyDescriptor desc0(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(vals[i])), true, true, true); in SharedArrayDefineOwnPropertyTest()
250 std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) in SharedArrayCheckKeyValueCommon()
252 for (size_t i = 0; i < vals.size(); i++) { in SharedArrayCheckKeyValueCommon()
254 ASSERT_EQ(descRes.GetValue().GetTaggedValue(), JSTaggedValue(vals[i])); in SharedArrayCheckKeyValueCommon()
284 std::vector<int> vals{ in HWTEST_F_L0()
224 SharedArrayDefineOwnPropertyTest(JSThread* thread, JSHandle<JSObject>& obj, std::vector<int>& vals) SharedArrayDefineOwnPropertyTest() argument
236 SharedArrayDefineOwnPropertyTest(JSThread* thread, JSHandle<JSTaggedValue>& obj, std::vector<int>& vals) SharedArrayDefineOwnPropertyTest() argument
249 SharedArrayCheckKeyValueCommon(JSThread* thread, JSHandle<JSObject>& valueHandle, PropertyDescriptor& descRes, std::vector<JSHandle<JSTaggedValue>>& keys, std::vector<int32_t>& vals) SharedArrayCheckKeyValueCommon() argument
[all...]
/arkcompiler/runtime_core/static_core/irtoc/lang/
H A Doptions.rb53 vals = define.split('=')
54 new_definitions[vals[0]] = vals.size > 1 ? vals[1] : true
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dinst_generator_test.cpp331 void Generate(Opcode opc, std::pair<ParamType, ParamType> vals) in Generate() argument
333 Generate(opc, std::make_tuple(vals.first, vals.second, static_cast<ParamType>(0U))); in Generate()
366 void CheckData(ParamType calcData, ParamType retData, std::tuple<ParamType, ParamType, ParamType> vals, Inst *inst) in CheckData() argument
369 auto param1 = std::get<0U>(vals); in CheckData()
370 auto param2 = std::get<1U>(vals); in CheckData()
371 auto param3 = std::get<2U>(vals); in CheckData()
390 void Generate(Opcode opc, std::tuple<ParamType, ParamType, ParamType> vals) in Generate() argument
399 auto param1 = std::get<0U>(vals); in Generate()
400 auto param2 = std::get<1U>(vals); in Generate()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dcl_option.h320 void FillVal(const T &val, std::vector<std::string> &vals) in FillVal() argument
323 vals.emplace_back(std::to_string(val)); in FillVal()
325 vals.emplace_back(val); in FillVal()
327 vals.emplace_back(""); in FillVal()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_shared_array_test.cpp107 std::vector<int> vals{1, 2, 3, 4, 5}; in HWTEST_F_L0()
109 for (size_t i = 0; i < vals.size(); i++) in HWTEST_F_L0()
112 PropertyDescriptor desc0(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(vals[i])), true, true, true); in HWTEST_F_L0()
H A Dgc_third_test.cpp60 std::vector<JSTaggedValue> vals{JSTaggedValue(static_cast<double>(2))}; in HWTEST_F_L0()
61 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, vals, in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Ddoclet.py348 [(p, v) for v in vals]
349 for p, vals
H A Dresult.py122 vals = map(add, stats_sum, list(aot_stats.passes[pass_name]))
123 aot_stats.passes[pass_name] = Stat(*vals)
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
H A Dllvm_ir_constructor.cpp2047 ArenaVector<llvm::Value *> vals(GetGraph()->GetLocalAllocator()->Adapter()); in CreateSaveStateBundle()
2068 vals.push_back(function); in CreateSaveStateBundle()
2070 vals.push_back(builder_.getInt32(GetGraph()->GetRuntime()->GetMethodId(method))); in CreateSaveStateBundle()
2072 vals.push_back(builder_.getInt32(ss->GetPc())); in CreateSaveStateBundle()
2075 vals.push_back(builder_.getInt32(flags)); in CreateSaveStateBundle()
2078 vals.push_back(builder_.getInt32(vregCount)); in CreateSaveStateBundle()
2080 EncodeSaveStateInputs(&vals, ss); in CreateSaveStateBundle()
2082 bundle.assign({llvm::OperandBundleDef {"deopt", vals}}); in CreateSaveStateBundle()
2086 void LLVMIrConstructor::EncodeSaveStateInputs(ArenaVector<llvm::Value *> *vals, SaveStateInst *ss) in EncodeSaveStateInputs() argument
2093 vals in EncodeSaveStateInputs()
[all...]
H A Dllvm_ir_constructor.h164 void EncodeSaveStateInputs(ArenaVector<llvm::Value *> *vals, SaveStateInst *ss);

Completed in 25 milliseconds