Home
last modified time | relevance | path

Searched refs:JSAPILightWeightSet (Results 1 – 25 of 34) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_lightweightset.cpp29 bool JSAPILightWeightSet::Add(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj, in Add()
40 index ^= JSAPILightWeightSet::HASH_REBELLION; in Add()
61 JSTaggedValue JSAPILightWeightSet::Get(const uint32_t index) in Get()
67 JSHandle<TaggedArray> JSAPILightWeightSet::CreateSlot(const JSThread *thread, const uint32_t capaci… in CreateSlot()
78 int32_t JSAPILightWeightSet::GetHashIndex(const JSHandle<JSTaggedValue> &value, int32_t size) in GetHashIndex()
107 int32_t JSAPILightWeightSet::BinarySearchHashes(uint32_t hash, int32_t size) in BinarySearchHashes()
127 bool JSAPILightWeightSet::AddAll(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj, in AddAll()
131 JSHandle<JSAPILightWeightSet> srcLightWeightSet = JSHandle<JSAPILightWeightSet>::Cast(value); in AddAll()
138 changed |= JSAPILightWeightSet::Add(thread, obj, element); in AddAll()
143 void JSAPILightWeightSet::EnsureCapacity(const JSThread *thread, const JSHandle<JSAPILightWeightSet in EnsureCapacity()
[all …]
Djs_api_lightweightset.h23 class JSAPILightWeightSet : public JSObject {
27 static JSAPILightWeightSet *Cast(TaggedObject *object) in Cast()
30 return static_cast<JSAPILightWeightSet *>(object); in Cast()
32 …static bool Add(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj, const JSHandle<JSTagge…
34 static void EnsureCapacity(const JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj,
36 …static void SizeCopy(const JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj, uint32_t ca…
38 static bool AddAll(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj,
40 static bool Equal(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj,
42 …static void IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj, int32_t…
43 static JSTaggedValue ToString(JSThread *thread, const JSHandle<JSAPILightWeightSet> &obj);
[all …]
Djs_api_lightweightset_iterator.cpp52 length = JSHandle<JSAPILightWeightSet>(lightWeightSet)->GetLength(); in Next()
61 …thread, TaggedArray::Cast(JSHandle<JSAPILightWeightSet>(lightWeightSet)->GetValues().GetTaggedObje… in Next()
67 … TaggedArray::Cast(JSHandle<JSAPILightWeightSet>(lightWeightSet)->GetHashes().GetTaggedObject()); in Next()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_lightweightset_test.cpp61 JSAPILightWeightSet *CreateLightWeightSet() in CreateLightWeightSet()
81 JSHandle<JSAPILightWeightSet> lightweightSet = in CreateLightWeightSet()
82 …JSHandle<JSAPILightWeightSet>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constru… in CreateLightWeightSet()
95 JSAPILightWeightSet *lightweightSet = CreateLightWeightSet(); in HWTEST_F_L0()
102 JSHandle<JSAPILightWeightSet> lws(thread, CreateLightWeightSet()); in HWTEST_F_L0()
103 JSHandle<JSAPILightWeightSet> srcLws(thread, CreateLightWeightSet()); in HWTEST_F_L0()
104 JSHandle<JSAPILightWeightSet> destLws(thread, CreateLightWeightSet()); in HWTEST_F_L0()
110 …bool result = JSAPILightWeightSet::Add(thread, lws, JSHandle<JSTaggedValue>(thread, JSTaggedValue(… in HWTEST_F_L0()
116 JSAPILightWeightSet::IncreaseCapacityTo(thread, lws, static_cast<int32_t>(tmp)); in HWTEST_F_L0()
121 JSAPILightWeightSet::IncreaseCapacityTo(thread, lws, 0); in HWTEST_F_L0()
[all …]
Djs_api_lightweightset_iterator_test.cpp61 JSAPILightWeightSet *CreateLightWeightSet() in CreateLightWeightSet()
81 JSHandle<JSAPILightWeightSet> lightweightSet = in CreateLightWeightSet()
82 …JSHandle<JSAPILightWeightSet>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constru… in CreateLightWeightSet()
102 JSHandle<JSAPILightWeightSet> jsLightWeightSet(thread, CreateLightWeightSet()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_lightweightset.cpp44 JSHandle<JSAPILightWeightSet> lightweightSet = JSHandle<JSAPILightWeightSet>::Cast(obj); in LightWeightSetConstructor()
47 JSAPILightWeightSet::CreateSlot(thread, JSAPILightWeightSet::DEFAULT_CAPACITY_LENGTH); in LightWeightSetConstructor()
49 JSAPILightWeightSet::CreateSlot(thread, JSAPILightWeightSet::DEFAULT_CAPACITY_LENGTH); in LightWeightSetConstructor()
72 bool flag = JSAPILightWeightSet::Add(thread, JSHandle<JSAPILightWeightSet>::Cast(self), value); in Add()
107 …return JSTaggedValue(JSAPILightWeightSet::AddAll(thread, JSHandle<JSAPILightWeightSet>::Cast(self)… in AddAll()
126 JSAPILightWeightSet *set = JSAPILightWeightSet::Cast(self->GetTaggedObject()); in IsEmpty()
156 JSAPILightWeightSet *set = JSAPILightWeightSet::Cast(self->GetTaggedObject()); in GetValueAt()
189 JSAPILightWeightSet *set = JSAPILightWeightSet::Cast(self->GetTaggedObject()); in HasAll()
210 JSAPILightWeightSet *set = JSAPILightWeightSet::Cast(self->GetTaggedObject()); in Has()
231 JSAPILightWeightSet *set = JSAPILightWeightSet::Cast(self->GetTaggedObject()); in HasHash()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_lightweightset_stub_builder.h33 return Load(VariableType::INT32(), obj, IntPtr(JSAPILightWeightSet::LENGTH_OFFSET)); in GetSize()
43 GateRef valuesOffset = IntPtr(JSAPILightWeightSet::VALUES_OFFSET); in GetValue()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetforeach_fuzzer/
Dcontainerslightweightsetforeach_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
98 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
99 JSHandle<JSAPILightWeightSet> lws = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetaddall_fuzzer/
Dcontainerslightweightsetaddall_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
98 JSHandle<JSAPILightWeightSet> lws = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsethasall_fuzzer/
Dcontainerslightweightsethasall_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
98 JSHandle<JSAPILightWeightSet> lws = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_lightweightset_test.cpp67 JSHandle<JSAPILightWeightSet> jSAPILightWeightSet(GetThis(argv)); in TestForEachFunc()
68 JSAPILightWeightSet::Add(thread, jSAPILightWeightSet, value); in TestForEachFunc()
94 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet() in CreateJSAPILightWeightSet()
106 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
126 JSHandle<JSAPILightWeightSet> mapHandle(thread, result); in HWTEST_F_L0()
141 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(); in HWTEST_F_L0()
182 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(); in HWTEST_F_L0()
199 JSHandle<JSAPILightWeightSet> lws = CreateJSAPILightWeightSet(); in HWTEST_F_L0()
235 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(); in HWTEST_F_L0()
252 JSHandle<JSAPILightWeightSet> lws = CreateJSAPILightWeightSet(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetgetindexof_fuzzer/
Dcontainerslightweightsetgetindexof_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetclear_fuzzer/
Dcontainerslightweightsetclear_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetvalues_fuzzer/
Dcontainerslightweightsetvalues_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetgetiteratorobj_fuzzer/
Dcontainerslightweightsetgetiteratorobj_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetgetvalueat_fuzzer/
Dcontainerslightweightsetgetvalueat_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsethashash_fuzzer/
Dcontainerslightweightsethashash_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetgetsize_fuzzer/
Dcontainerslightweightsetgetsize_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsettoarray_fuzzer/
Dcontainerslightweightsettoarray_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetentries_fuzzer/
Dcontainerslightweightsetentries_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetisempty_fuzzer/
Dcontainerslightweightsetisempty_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsethas_fuzzer/
Dcontainerslightweightsethas_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetremove_fuzzer/
Dcontainerslightweightsetremove_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsettostring_fuzzer/
Dcontainerslightweightsettostring_fuzzer.cpp67 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
75 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
97 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightset_fuzzer/
Dcontainerslightweightset_fuzzer.cpp69 JSHandle<JSAPILightWeightSet> CreateJSAPILightWeightSet(JSThread *thread) in CreateJSAPILightWeightSet()
77 JSHandle<JSAPILightWeightSet> map(thread, result); in CreateJSAPILightWeightSet()
100 JSHandle<JSAPILightWeightSet> lightWeightSet = CreateJSAPILightWeightSet(thread); in ContainersLightWeightSetFuzzTest()

12