Home
last modified time | relevance | path

Searched refs:WeakRef (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_weak_ref.cpp24 BUILTINS_API_TRACE(thread, WeakRef, Constructor); in WeakRefConstructor()
37 // 3. Let weakRef be ? OrdinaryCreateFromConstructor(NewTarget, "%WeakRef.prototype%", « [[WeakRefTarget]] »). in WeakRefConstructor()
54 BUILTINS_API_TRACE(thread, WeakRef, Deref); in Deref()
H A Dbuiltins_lazy_callback.h60 static JSTaggedValue WeakRef(JSThread *thread, const JSHandle<JSObject> &obj);
H A Dbuiltins_lazy_callback.cpp95 JSTaggedValue BuiltinsLazyCallback::WeakRef(JSThread *thread, const JSHandle<JSObject> &obj) in WeakRef() function in panda::ecmascript::builtins::BuiltinsLazyCallback
102 ResetLazyInternalAttr(thread, obj, "WeakRef"); in WeakRef()
H A Dbuiltins.cpp1605 // WeakRef.prototype in InitializeWeakRef()
1608 // WeakRef.prototype_or_hclass in InitializeWeakRef()
1611 // WeakRef() = new Function() in InitializeWeakRef()
1613 env, weakRefFuncPrototype, BuiltinsWeakRef::WeakRefConstructor, "WeakRef", FunctionLength::ONE)); in InitializeWeakRef()
1620 // WeakRef.prototype.deref() in InitializeWeakRef()
1624 SetStringTagSymbol(env, weakRefFuncPrototype, "WeakRef"); in InitializeWeakRef()
1633 JSHandle<JSTaggedValue> key(factory_->NewFromUtf8ReadOnly("WeakRef")); in LazyInitializeWeakRef()
1634 auto accessor = factory_->NewInternalAccessor(nullptr, reinterpret_cast<void *>(BuiltinsLazyCallback::WeakRef)); in LazyInitializeWeakRef()
/arkcompiler/toolchain/tooling/test/testcases/js/
H A Dmodule_variable.js120 export var weakref0 = new WeakRef(obj0);
153 var weakref1 = new WeakRef(obj1);
203 var weakref2 = new WeakRef(obj2);
H A Dvariable_second.js47 var weakref0 = new WeakRef(obj0);
H A Dwatch_variable.js50 var weakref0 = new WeakRef(obj0);
H A Dvariable_first.js47 var weakref0 = new WeakRef(obj0);
/arkcompiler/ets_runtime/ecmascript/
H A Druntime_call_id.h948 V(WeakRef, Constructor) \
949 V(WeakRef, Deref) \
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtagged_value_test.cpp86 HWTEST_F_L0(JSTaggedValueTest, WeakRef) in HWTEST_F_L0()

Completed in 16 milliseconds