/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_weak_set_test.cpp | 37 using JSWeakSet = ecmascript::JSWeakSet; 53 JSWeakSet *CreateBuiltinsWeakSet(JSThread *thread) in CreateBuiltinsWeakSet() 67 JSWeakSet *jsWeakSet = JSWeakSet::Cast(reinterpret_cast<TaggedObject *>(result.GetRawData())); in CreateBuiltinsWeakSet() 76 JSHandle<JSWeakSet> weakSet(thread, CreateBuiltinsWeakSet(thread)); in HWTEST_F_L0() 95 JSHandle<JSWeakSet> weakSetResult(thread, in HWTEST_F_L0() 96 JSWeakSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0() 103 JSHandle<JSWeakSet> weakSet(thread, CreateBuiltinsWeakSet(thread)); in HWTEST_F_L0() 110 JSWeakSet *jsWeakSe in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/test/fuzztest/weaksetref_fuzzer/ |
H A D | weaksetref_fuzzer.cpp | 46 JSHandle<JSWeakSet> weakSet = JSHandle<JSWeakSet>::Cast(obj); in WeakSetRefGetSizeFuzzTest() 52 JSWeakSet::Add(thread, weakSet, value); in WeakSetRefGetSizeFuzzTest() 74 JSHandle<JSWeakSet> weakSet = JSHandle<JSWeakSet>::Cast(obj); in WeakSetRefGetTotalElementsFuzzTest() 80 JSWeakSet::Add(thread, weakSet, value); in WeakSetRefGetTotalElementsFuzzTest() 102 JSHandle<JSWeakSet> weakSet = JSHandle<JSWeakSet>::Cast(obj); in WeakSetRefGetValueFuzzTest() 108 JSWeakSet::Add(thread, weakSet, value); in WeakSetRefGetValueFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_weak_container.h | 52 class JSWeakSet : public JSObject { class 54 static JSWeakSet *Cast(TaggedObject *object) in Cast() 57 return static_cast<JSWeakSet *>(object); in Cast() 59 static bool Delete(JSThread *thread, const JSHandle<JSWeakSet> &set, const JSHandle<JSTaggedValue> &value); 61 static void Add(JSThread *thread, const JSHandle<JSWeakSet> &set, const JSHandle<JSTaggedValue> &value);
|
H A D | js_weak_container.cpp | 76 void JSWeakSet::Add(JSThread *thread, const JSHandle<JSWeakSet> &weakSet, const JSHandle<JSTaggedValue> &value) in Add() 79 THROW_TYPE_ERROR(thread, "the value must be Key of JSWeakSet"); in Add() 87 bool JSWeakSet::Delete(JSThread *thread, const JSHandle<JSWeakSet> &weakSet, const JSHandle<JSTaggedValue> &value) in Delete() 100 bool JSWeakSet::Has(JSThread *thread, JSTaggedValue value) const in Has() 105 int JSWeakSet::GetSize() const in GetSize() 110 JSTaggedValue JSWeakSet::GetValue(int entry) const in GetValue()
|
H A D | dump.cpp | 783 JSWeakSet::Cast(obj)->Dump(os); in DumpObject() 2156 void JSWeakSet::Dump(std::ostream &os) const in Dump() 4036 JSWeakSet::Cast(obj)->DumpForSnapshot(vec); in DumpObject() 5010 void JSWeakSet::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
|
H A D | object_factory.cpp | 1411 JSWeakSet::Cast(*obj)->SetLinkedSet(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_weak_set.cpp | 42 JSHandle<JSWeakSet> weakSet = JSHandle<JSWeakSet>::Cast(obj); in WeakSetConstructor() 112 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakSet", JSTaggedValue::Exception()); in Add() 121 JSHandle<JSWeakSet> weakSet(self); in Add() 122 JSWeakSet::Add(thread, weakSet, value); in Add() 136 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakSet", JSTaggedValue::Exception()); in Delete() 139 JSHandle<JSWeakSet> weakSet(self); in Delete() 145 return GetTaggedBoolean(JSWeakSet::Delete(thread, weakSet, value)); in Delete() 158 THROW_TYPE_ERROR_AND_RETURN(thread, "obj is not JSWeakSet", JSTaggedValue::Exception()); in Has() 160 JSWeakSet *jsWeakSe in Has() [all...] |
H A D | builtins.cpp | 1547 factory_->NewEcmaHClass(JSWeakSet::SIZE, JSType::JS_WEAK_SET, weakSetFuncPrototypeValue); in InitializeWeakSet()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | dump_test.cpp | 694 CHECK_DUMP_FIELDS(JSObject::SIZE, JSWeakSet::SIZE, 1U); in HWTEST_F_L0() 695 JSHandle<JSHClass> weakSetClass = factory->NewEcmaHClass(JSWeakSet::SIZE, JSType::JS_WEAK_SET, proto); in HWTEST_F_L0() 696 JSHandle<JSWeakSet> jsWeakSet = JSHandle<JSWeakSet>::Cast(factory->NewJSObjectWithInit(weakSetClass)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
H A D | heap_dump_test.cpp | 258 JSHandle<JSWeakSet> NewJSWeakSet() in NewJSWeakSet() 262 JSHandle<JSObject> jsWeakSetObject = NewObject(JSWeakSet::SIZE, JSType::JS_WEAK_SET, proto); in NewJSWeakSet() 263 JSHandle<JSWeakSet> jsWeakSet = JSHandle<JSWeakSet>::Cast(jsWeakSetObject); in NewJSWeakSet()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
H A D | jsnapi_second_tests.cpp | 834 JSHandle<JSWeakSet> weakSet = in HWTEST_F_L0() 835 JSHandle<JSWeakSet>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in HWTEST_F_L0() 843 JSWeakSet::Add(thread, weakSet, value); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi.cpp | 133 using ecmascript::JSWeakSet;
|
H A D | jsnapi_expo.cpp | 127 using ecmascript::JSWeakSet; 6249 JSHandle<JSWeakSet> weakSet(JSNApiHelper::ToJSHandle(this)); in GetSize() 6257 JSHandle<JSWeakSet> weakSet(JSNApiHelper::ToJSHandle(this)); in GetTotalElements() 6266 JSHandle<JSWeakSet> weakSet(JSNApiHelper::ToJSHandle(this)); in GetValue() 6279 JSHandle<JSWeakSet> weakSet = in New() 6280 JSHandle<JSWeakSet>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in New() 6291 JSHandle<JSWeakSet> weakSet(JSNApiHelper::ToJSHandle(this)); in Add() 6293 JSWeakSet::Add(vm->GetJSThread(), weakSet, JSNApiHelper::ToJSHandle(value)); in Add()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | object_xray.h | 290 JSWeakSet::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|