Home
last modified time | relevance | path

Searched refs:filter (Results 1 - 25 of 51) sorted by relevance

123

/arkcompiler/ets_runtime/test/moduletest/arrayFilterCase/
H A DarrayFilterCase.js18 const result = words.filter((word) => word.length > 6);
23 const modifiedWords = wordss.filter((word, index, arr) => {
31 const appendedWords = words1.filter((word, index, arr) => {
37 const deleteWords = words2.filter((word, index, arr) => {
50 print(Array.prototype.filter.call(arrayLike, (x) => x <= "b"));
54 return arr.filter((el) => el.toLowerCase().includes(query.toLowerCase()));
71 print(array.filter(isPrime)); // [2, 3, 5, 7, 11, 13]
74 function filter(){
75 return array1.filter(v => v>0 );
78 var narr = filter();
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/array_js_suites/
H A Dtest_filter.js38 let filter = arr.filter(fnTrue);
39 let filter1 = arr.filter(fn1True);
40 ASSERT_EQ(filter.at(0), arr.at(0));
48 let filterFalse = arr.filter(fnFalse);
49 let filter1False = arr.filter(fn1False);
H A Dtest_filter_array.js38 let filter = arr.filterArray(fnTrue);
40 ASSERT_EQ(filter[0], arr.at(0));
/arkcompiler/ets_runtime/ecmascript/
H A Dfilter_helper.h39 static bool IgnoreKeyByFilter(T &desc, uint32_t filter) in IgnoreKeyByFilter() argument
41 if (filter == NATIVE_DEFAULT) { in IgnoreKeyByFilter()
44 if ((filter & NATIVE_WRITABLE) && !desc.IsWritable()) { in IgnoreKeyByFilter()
47 if ((filter & NATIVE_ENUMERABLE) && !desc.IsEnumerable()) { in IgnoreKeyByFilter()
50 if ((filter & NATIVE_CONFIGURABLE) && !desc.IsConfigurable()) { in IgnoreKeyByFilter()
H A Dlayout_info.cpp62 TaggedArray *keyArray, const JSHandle<JSObject> object, uint32_t filter) in GetAllKeysByFilter()
72 if (key.IsString() && !(filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter()
77 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
90 if (key.IsSymbol() && !(filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter()
92 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
61 GetAllKeysByFilter(const JSThread *thread, uint32_t numberOfProps, uint32_t &keyArrayEffectivelength, TaggedArray *keyArray, const JSHandle<JSObject> object, uint32_t filter) GetAllKeysByFilter() argument
H A Dglobal_dictionary-inl.h125 uint32_t &keyArrayEffectivelength, TaggedArray *keyArray, uint32_t filter) const in GetAllKeysByFilter()
136 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
140 if (key.IsString() && (filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter()
143 if (key.IsSymbol() && (filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter()
H A Dglobal_dictionary.h79 uint32_t &keyArrayEffectivelength, TaggedArray *keyArray, uint32_t filter) const;
H A Dtagged_dictionary.cpp101 TaggedArray *keyArray, uint32_t filter) const in GetAllKeysByFilter()
109 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
113 if (key.IsString() && (filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter()
116 if (key.IsSymbol() && (filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter()
320 uint32_t filter) in GetAllKeysByFilter()
334 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
318 GetAllKeysByFilter(const JSThread *thread, const JSHandle<NumberDictionary> &obj, uint32_t &keyArrayEffectivelength, const JSHandle<TaggedArray> &keyArray, uint32_t filter) GetAllKeysByFilter() argument
/arkcompiler/ets_runtime/test/moduletest/asmstackoverflow/
H A Dasmstackoverflow.js226 arr.filter(bar);
241 arr.filter(bar);
256 arr.filter(bar);
271 arr.filter(bar);
286 arr.filter(bar);
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/
H A Doptions_test_lists.py42 "filter": self.filter,
98 @value(yaml_path="test-lists.filter", cli_name="filter")
99 def filter(self) -> str: member in TestListsOptions
125 f'--filter="{self.filter}"' if self.filter != TestListsOptions.__DEFAULT_FILTER else '',
/arkcompiler/ets_runtime/test/fuzztest/objectgetinformation_fuzzer/
H A Dobjectgetinformation_fuzzer.cpp42 uint32_t filter = 0; in ObjectGetAllPropertyNamesFuzzTest() local
47 if (memcpy_s(&filter, maxByteLen2, data, size) != EOK) { in ObjectGetAllPropertyNamesFuzzTest()
54 object->GetAllPropertyNames(vm, filter); in ObjectGetAllPropertyNamesFuzzTest()
/arkcompiler/runtime_core/scripts/
H A Dmemdump.py37 It is possible to filter and sort data (run the script with -h option)
87 def filter(self, space, stacktrace): member in Filter
88 """Checks that space and stacktrace matches filter"""
157 '--filter',
189 if not space_filter.filter(space, stacktrace):
227 allocs = get_allocs(args, Filter(space_filter, args.filter))
/arkcompiler/runtime_core/static_core/scripts/
H A Dmemdump.py37 It is possible to filter and sort data (run the script with -h option)
87 def filter(self, space, stacktrace): member in Filter
88 """Checks that space and stacktrace matches filter"""
157 '--filter',
189 if not space_filter.filter(space, stacktrace):
227 allocs = get_allocs(args, Filter(space_filter, args.filter))
/arkcompiler/ets_runtime/test/moduletest/typedarrayfilter/
H A Dtypedarrayfilter.js18 * @tc.desc:test TypedArray.filter
25 obj.filter(obj);
/arkcompiler/runtime_core/isa/
H A Disapi.rb209 filter = []
212 filter << p
215 filter << 'acc_write' if acc_write?
216 filter << 'acc_read' if acc_read?
217 filter << 'acc_none' if acc_none?
218 return filter
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dot_operator/sts_to_js/
H A Dcheck_call_chaining.js26 const resChaining = Obj.arr.reverse().map(i => i + jsInt).filter(i => i > jsInt).sort().reduce((a, b) => a - b);
/arkcompiler/ets_runtime/test/moduletest/throwerror/
H A Dthrowerror.js25 ([1,2]).filter(f1);
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
H A Darrayfind.js58 .filter((num) => num > 0)
/arkcompiler/ets_runtime/tools/ap_file_viewer/src/ap/component/sheet/
H A DTabPaneApSummary.js63 filterData(filter) {
65 if (filter === '') {
68 this.apData = this.apDataSource.filter((item) => {
71 return value !== undefined && value !== null && value.toString().toLowerCase().includes(filter);
/arkcompiler/ets_frontend/es2panda/test/
H A Drunner.py105 '--filter', '-f', action='store', dest='filter',
106 default="*", help='test filter regexp')
469 files = fnmatch.filter(files, self.test_root + '**' + self.args.filter)
486 files = fnmatch.filter(files, self.test_root + '**' + self.args.filter)
556 files = fnmatch.filter(files, ts_suite_dir + '**' + self.args.filter)
598 files = fnmatch.filter(file
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/
H A Dtest_this.py115 unk_bp = next(filter(lambda b: b.label == "unknown", walker.meta.breakpoints))
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
H A Dparse_define.py51 res["values"] = list(filter(None, res["values"]))
/arkcompiler/ets_runtime/test/moduletest/array/
H A Darray.js125 v3.filter(Float32Array)
356 // Test Array.prototype.filter when callbackFn is not callable
358 [].filter(1);
408 new MyObserveArrray().filter(() => {
787 v23.filter(Array);
1156 const evenNumbers = numbers.filter(num => num % 2 === 0);
1159 const greaterThanTwo = numbers.filter(num => num > 2);
1162 const lessThanTen = numbers.filter(num => num < 10);
1165 const divisibleByThree = numbers.filter(num => num % 3 === 0);
1169 const longWords = words.filter(wor
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Drunner_base.py329 if self.config.test_lists.filter != "*" and self.config.test_lists.groups.chapters:
332 "Incorrect configuration: specify either filter or chapter options"
337 test_files.extend(fnmatch.filter(
339 path.normpath(path.join(directory, self.config.test_lists.filter))
/arkcompiler/runtime_core/static_core/verification/util/
H A Dlazy.h137 auto Filter(F fetcher, L filter)
139 return [fetcher, filter]() mutable -> decltype(fetcher()) {
141 if (filter(*val)) {

Completed in 14 milliseconds

123