Home
last modified time | relevance | path

Searched refs:values (Results 1 - 25 of 139) sorted by relevance

123456

/arkcompiler/runtime_core/libpandabase/tests/
H A Dsmall_vector_test.cpp51 std::array values = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; in TestVectorGrow() local
55 vector.push_back(values[0]); in TestVectorGrow()
60 vector.push_back(values[1]); in TestVectorGrow()
61 vector.push_back(values[2]); in TestVectorGrow()
62 vector.push_back(values[3]); in TestVectorGrow()
67 vector.push_back(values[4]); in TestVectorGrow()
72 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5, vector.begin())); in TestVectorGrow()
74 std::copy(values.begin() + 5, values in TestVectorGrow()
97 std::array values = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; TestVectorFind() local
134 std::array values = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; TestVectorResize() local
260 std::array values = {Item(1, 1.2), Item(2, 2.3), Item(3, 3.4)}; TEST_F() local
311 std::array values = {Item(1, 1.2), Item(2, 2.3), Item(3, 3.4)}; TEST_F() local
336 std::array values = {0, 1, 2, 3, 4, 5, 6, 7}; TEST_F() local
371 std::array values = {0, 1, 2, 3, 4, 5, 6, 7}; TEST_F() local
408 std::array values = {0, 1, 2, 3, 4, 5, 6, 7}; TEST_F() local
436 std::array values = {0, 1, 2, 3, 4, 5, 6, 7}; TEST_F() local
[all...]
H A Dbit_table_test.cpp130 std::array<std::array<uint32_t, 10>, 5> values = { in TEST_F() local
138 builder.Emplace(CreateEntry<decltype(builder)>(values[0])); in TEST_F()
139 builder.Emplace(CreateEntry<decltype(builder)>(values[1])); in TEST_F()
140 builder.Emplace(CreateEntry<decltype(builder)>(values[2])); in TEST_F()
141 builder.Emplace(CreateEntry<decltype(builder)>(values[3])); in TEST_F()
142 builder.Emplace(CreateEntry<decltype(builder)>(values[4])); in TEST_F()
156 ASSERT_EQ(row.Get(i), values[row_index][i]); in TEST_F()
229 void InitRangesTest(std::array<std::array<uint32_t, 2>, 10> &values, BitTable<TestAccessor> &table) in InitRangesTest() argument
235 for (auto &v : values) { in InitRangesTest()
252 std::array<std::array<uint32_t, 2>, 10> values in TEST_F() local
293 std::array<std::array<uint32_t, 2>, 10> values = { TEST_F() local
333 std::array<std::array<uint32_t, 2>, 10> values = { TEST_F() local
372 std::array<Entry, 3> values = {Entry {1}, Entry {2}, Entry {3}}; TEST_F() local
[all...]
H A Dbit_vector_test.cpp102 std::vector<bool> values = {false, true, false, true, false, true, false, true, false, true}; in HWTEST_F() local
104 std::copy(values.begin(), values.end(), std::back_inserter(vec1)); in HWTEST_F()
106 std::copy(values.begin(), values.end(), std::back_inserter(vec2)); in HWTEST_F()
241 std::vector<bool> values = {false, true, false, true, false, true, false, true, false, true}; in TestModification() local
253 std::copy(values.begin(), values.end(), std::back_inserter(vector)); in TestModification()
276 // Push 1000 values with `true` in odd and `false` in even indexes in TestModification()
278 std::copy(values in TestModification()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dsmall_vector_test.cpp56 std::array values = {10U, 20U, 30U, 40U, 50U, 60U, 70U, 80U, 90U, 100U}; in TestVectorGrow() local
60 vector.push_back(values[0U]); in TestVectorGrow()
65 vector.push_back(values[1U]); in TestVectorGrow()
66 vector.push_back(values[2U]); in TestVectorGrow()
67 vector.push_back(values[3U]); in TestVectorGrow()
72 vector.push_back(values[4U]); in TestVectorGrow()
77 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5U, vector.begin())); in TestVectorGrow()
79 std::copy(values.begin() + 5U, values in TestVectorGrow()
124 std::array values = {10U, 20U, 30U, 40U, 50U, 60U, 70U, 80U, 90U, 100U}; TestVectorIteration() local
265 std::array values = {Item(1U, 1.2L), Item(2U, 2.3L), Item(3U, 3.4L)}; TEST_F() local
316 std::array values = {Item(1U, 1.2L), Item(2U, 2.3L), Item(3U, 3.4L)}; TEST_F() local
341 std::array values = {0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U}; TEST_F() local
404 std::array values = {0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U}; TEST_F() local
[all...]
H A Dbit_table_test.cpp135 std::array<std::array<uint32_t, 10U>, 5U> values = { in TEST_F() local
143 builder.Emplace(CreateEntry<decltype(builder)>(values[0U])); in TEST_F()
144 builder.Emplace(CreateEntry<decltype(builder)>(values[1U])); in TEST_F()
145 builder.Emplace(CreateEntry<decltype(builder)>(values[2U])); in TEST_F()
146 builder.Emplace(CreateEntry<decltype(builder)>(values[3U])); in TEST_F()
147 builder.Emplace(CreateEntry<decltype(builder)>(values[4U])); in TEST_F()
161 ASSERT_EQ(row.Get(i), values[rowIndex][i]); in TEST_F()
234 void GetRange(BitTable<TestAccessor> table, std::array<std::array<uint32_t, 2U>, 10U> values) in GetRange() argument
237 ASSERT_EQ(range[0U].GetField0(), values[9U][0U]); in GetRange()
238 ASSERT_EQ(range[0U].GetField1(), values[ in GetRange()
265 GetReversedRange(BitTable<TestAccessor> table, std::array<std::array<uint32_t, 2U>, 10U> values) GetReversedRange() argument
301 std::array<std::array<uint32_t, 2U>, 10U> values = { TEST_F() local
333 std::array<std::array<uint32_t, 2U>, 10U> values = { TEST_F() local
384 std::array<Entry, 3U> values = {Entry {1U}, Entry {2U}, Entry {3U}}; TEST_F() local
[all...]
H A Dbit_vector_test.cpp109 std::vector<bool> values = {false, true, false, true, false, true, false, true, false, true}; in TEST_F() local
111 std::copy(values.begin(), values.end(), std::back_inserter(vec1)); in TEST_F()
113 std::copy(values.begin(), values.end(), std::back_inserter(vec2)); in TEST_F()
245 std::vector<bool> values = {false, true, false, true, false, true, false, true, false, true}; in TestModification() local
257 std::copy(values.begin(), values.end(), std::back_inserter(vector)); in TestModification()
280 // Push 1000 values with `true` in odd and `false` in even indexes in TestModification()
282 std::copy(values in TestModification()
[all...]
/arkcompiler/ets_runtime/test/moduletest/arrayValuesCase/
H A DarrayValuesCase.js25 const iterator1 = array1.values();
36 for (const entry of Array.prototype.values.call(arrayLike)) {
39 for (const element of [, "a"].values()) {
43 const iterator = arr.values();
48 const values = array.values();
49 for (const letter of values) {
55 for (const letter of values) {
60 const values1 = arr1.values();
/arkcompiler/runtime_core/static_core/scripts/
H A Dcompiler_bisect.py32 and this script will set it to different values and run your script to find minimal subsets
170 def __init__(self, values):
171 self.all_values = set(values)
172 self.values = list(values)
176 return self.all_values - set(self.values)
190 return run(self.opts.compiled.values, self.opts.inline.neg_values,
191 self.opts.passes.values, verbose=verbose).returncode != 0
197 old_values = opt.values
198 opt.values
[all...]
H A Dmemdump.py100 if value not in SPACES.values():
154 help='Report only allocations for the specific space. Possible values: {}'.
155 format(', '.join(SPACES.values())))
228 allocs = allocs.values()
/arkcompiler/runtime_core/gn/build/
H A Dcmake_configure_file.py28 "values", help="words to match, format: KEY=VALUE or KEY=", nargs='*')
36 values = {}
37 for value in args.values:
39 if key in values:
41 values[key] = val.replace('\\n', '\n')
49 if key in values:
50 return values[key]
69 if var not in values:
/arkcompiler/runtime_core/static_core/gn/build/
H A Dcmake_configure_file.py29 "values", help="words to match, format: KEY=VALUE or KEY=", nargs='*')
37 values = {}
38 for value in args.values:
40 if key in values:
42 values[key] = val.replace('\\n', '\n')
50 if key in values:
51 return values[key]
70 if var not in values:
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dgenerate.py169 def write_config(bench_dir: Path, values: TemplateVars):
171 f.write(json.dumps(values.config))
175 values: TemplateVars, ext: str):
176 script = src_full.parent.joinpath(values.generator)
177 cmd = f'{script} {bench_dir} bench_{values.bench_name}{ext}'
182 def emit_bench_variant(values: TemplateVars,
189 values.bench_name, values.fixture)
191 bench_dir = outdir.joinpath(src.rel, f'bu_{values.bench_name}')
193 values
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/ets_proxy/
H A Dcheck_access_primitives.js28 function testAccessors(tname, ...values) {
29 function testAccessorsOf(o, tname, ...values) {
30 for (let v of values) {
37 testAccessorsOf(pa, tname, ...values);
38 testAccessorsOf(pas, tname, ...values);
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_lightweightset.cpp182 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); in GetValueAt() local
183 return values->Get(index); in GetValueAt()
192 TaggedArray *values = TaggedArray::Cast(GetHashes().GetTaggedObject()); in GetHashAt() local
193 return values->Get(index); in GetHashAt()
274 JSTaggedValue values = srcHashes->Get(i); in Equal() local
275 if (compareValue.IsNumber() && values.IsNumber()) { in Equal()
276 result = JSTaggedValue::SameValueNumberic(compareValue, values); in Equal()
278 if (compareValue.IsString() && values.IsString()) { in Equal()
281 EcmaString::Cast(values.GetTaggedObject())); in Equal()
416 JSMutableHandle<JSTaggedValue> values(threa
[all...]
H A Djs_api_plain_array.cpp71 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); in AdjustForward() local
73 AdjustArray(thread, values, index + forwardSize, index, false); in AdjustForward()
153 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); in Clear() local
157 values->Set(thread, index, JSTaggedValue::Hole()); in Clear()
322 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); in Get() local
323 return values->Get(index); in Get()
412 JSTaggedValue JSAPIPlainArray::TryFastGetIndexOfValue(TaggedArray *values, JSTaggedValue value) in TryFastGetIndexOfValue() argument
416 JSTaggedValue currVal = values->Get(i); in TryFastGetIndexOfValue()
426 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); in GetIndexOfValue() local
428 return TryFastGetIndexOfValue(values, valu in GetIndexOfValue()
471 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); GetValueAt() local
483 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); Remove() local
496 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); RemoveAt() local
517 TaggedArray *values = TaggedArray::Cast(GetValues().GetTaggedObject()); SetValueAt() local
[all...]
/arkcompiler/ets_frontend/ets2panda/public/
H A Denums.rb68 node_type_enum_flags.concat(macros.values&.map { |x| x[0] })
70 node_type_enum_flags.concat(macros.values&.map { |x| x[0..1] }&.flatten)
72 scope_type_enum_flags.concat(macros.values&.map { |x| x[0] })
78 scope_type_enum_flags.concat(macros.values&.map { |x| x[0] })
/arkcompiler/ets_runtime/test/aottest/asyncgeneratorrest/
H A Dasyncgeneratorrest.js16 var values = [34, 56]; variable
17 var f = async function*([...x] = values) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/ts_to_sts/
H A Dgeneric_call_params.js95 function applyFunctionGenericArray(values, func) {
96 let result = values[0];
97 for (let i = 1; i < values.length; i++) {
98 result = func(result, values[i]);
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dcontainers_lightweightmap_stub_builder.h46 GateRef values = Load(VariableType::JS_POINTER(), obj, valuesOffset); in GetValue() local
47 return GetValueFromTaggedArray(values, index); in GetValue()
H A Dcontainers_lightweightset_stub_builder.h44 GateRef values = Load(VariableType::JS_POINTER(), obj, valuesOffset); in GetValue() local
45 return GetValueFromTaggedArray(values, index); in GetValue()
/arkcompiler/runtime_core/assembler/
H A Dasm_metadata.rb48 (defined? flags) && flags.any? || enum? && values.any? { |v| v.flags && v.flags.any? }
110 a.values.each do |v|
118 body << "#{indent * 2} R\"('. Should be one of #{a.values.map(&:value)})\", Error::Type::INVALID_VALUE);"
162 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
197 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
243 use_value = attributes.any? { |a| a.enum? && a.values.any? { |v| v.flags && v.flags.any? } }
/arkcompiler/runtime_core/static_core/assembler/
H A Dasm_metadata.rb48 (defined? flags) && flags.any? || enum? && values.any? { |v| v.flags && v.flags.any? }
110 a.values.each do |v|
118 body << "#{indent * 2} R\"('. Should be one of #{a.values.map(&:value)})\", Error::Type::INVALID_VALUE);"
162 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
197 a.values.select { |v| v.flags && v.flags.any? }.each do |v|
243 use_value = attributes.any? { |a| a.enum? && a.values.any? { |v| v.flags && v.flags.any? } }
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_array_test.cpp112 JSHandle<TaggedArray> values(factory->NewTaggedArray(5)); in HWTEST_F_L0()
114 values->Set(thread, i, JSTaggedValue(i)); in HWTEST_F_L0()
116 JSHandle<JSObject> array(JSArray::CreateArrayFromList(thread, values)); in HWTEST_F_L0()
133 JSHandle<TaggedArray> values(factory->NewTaggedArray(5)); in HWTEST_F_L0()
135 values->Set(thread, i, JSTaggedValue(i)); in HWTEST_F_L0()
137 JSHandle<JSObject> array(JSArray::CreateArrayFromList(thread, values)); in HWTEST_F_L0()
171 JSHandle<TaggedArray> values(factory->NewTaggedArray(5)); in HWTEST_F_L0()
174 values->Set(thread, i, JSTaggedValue(i)); in HWTEST_F_L0()
176 JSHandle<JSArray> array(JSArray::CreateArrayFromList(thread, values)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Djsnapi_third_tests.cpp958 Local<JSValueRef> values[1100]; in HWTEST_F_L0() local
965 values[j] = StringRef::NewFromUtf8(vm_, strVal.c_str()); in HWTEST_F_L0()
966 attributes[j] = PropertyAttribute(values[j], true, true, true); in HWTEST_F_L0()
971 EXPECT_TRUE(values[j]->IsStrictEquals(vm_, value1)); in HWTEST_F_L0()
1001 Local<JSValueRef> values[] = { in HWTEST_F_L0() local
1005 PropertyAttribute(values[0], true, true, true), in HWTEST_F_L0()
1021 Local<JSValueRef> values[] = { in HWTEST_F_L0() local
1027 PropertyAttribute(values[0], true, true, true), in HWTEST_F_L0()
1028 PropertyAttribute(values[1], true, true, true), in HWTEST_F_L0()
1029 PropertyAttribute(values[ in HWTEST_F_L0()
1042 Local<JSValueRef> values[1100]; HWTEST_F_L0() local
1083 Local<JSValueRef> values[] = { HWTEST_F_L0() local
1100 Local<JSValueRef> values[] = { HWTEST_F_L0() local
1159 Local<JSValueRef> values[] = { HWTEST_F_L0() local
1183 Local<JSValueRef> values[] = { HWTEST_F_L0() local
[all...]
/arkcompiler/runtime_core/scripts/
H A Dmemdump.py100 if value not in SPACES.values():
154 help='Report only allocations for the specific space. Possible values: {}'.
155 format(', '.join(SPACES.values())))
228 allocs = allocs.values()

Completed in 11 milliseconds

123456