Home
last modified time | relevance | path

Searched refs:JSHandle (Results 1 – 25 of 762) sorted by relevance

12345678910>>...31

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins.h46 …void Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread, bool lazyInit = false, bool isRe…
54JSHandle<JSFunction> NewBuiltinConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject…
59 JSHandle<JSFunction> NewBuiltinCjsCtor(const JSHandle<GlobalEnv> &env,
60 … const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc,
63JSHandle<JSFunction> NewFunction(const JSHandle<GlobalEnv> &env, const JSHandle<JSTaggedValue> &ke…
68 void SetLazyAccessor(const JSHandle<JSObject> &object, const JSHandle<JSTaggedValue> &key,
69 const JSHandle<AccessorData> &accessor) const;
71 void InitializeCtor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype,
72 const JSHandle<JSFunction> &ctor, const char *name, int length) const;
74 …void InitializeGlobalObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &globalObject…
[all …]
Dbuiltins_promise_handler.cpp38 JSHandle<GlobalEnv> env = ecmaVm->GetGlobalEnv(); in Resolve()
41JSHandle<JSPromiseReactionsFunction> resolve = JSHandle<JSPromiseReactionsFunction>::Cast(GetConst… in Resolve()
48 JSHandle<JSPromise> resolvePromise(thread, resolve->GetPromise()); in Resolve()
49 JSHandle<PromiseRecord> alreadyResolved(thread, resolve->GetAlreadyResolved()); in Resolve()
58 JSHandle<JSTaggedValue> resolution = BuiltinsBase::GetCallArg(argv, 0); in Resolve()
60 JSHandle<JSObject> resolutionError = in Resolve()
62 … JSPromise::RejectPromise(thread, resolvePromise, JSHandle<JSTaggedValue>::Cast(resolutionError)); in Resolve()
74 JSHandle<JSTaggedValue> thenKey(thread->GlobalConstants()->GetHandledPromiseThenString()); in Resolve()
75JSHandle<JSTaggedValue> thenValue = JSObject::GetProperty(thread, resolution, thenKey).GetValue(); in Resolve()
78 thenValue = JSHandle<JSTaggedValue>(thread, thread->GetException()); in Resolve()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.h194JSHandle<Method> NewMethodForNativeFunction(const void *func, FunctionKind kind = FunctionKind::NO…
199 JSHandle<ProfileTypeInfo> NewProfileTypeInfo(uint32_t length);
200 JSHandle<ConstantPool> NewConstantPool(uint32_t capacity);
201 JSHandle<Program> NewProgram();
203JSHandle<JSObject> GetJSError(const ErrorType &errorType, const char *data = nullptr, bool needChe…
205 JSHandle<JSObject> NewJSError(const ErrorType &errorType, const JSHandle<EcmaString> &message,
208 JSHandle<JSObject> NewJSAggregateError();
210 JSHandle<TransitionHandler> NewTransitionHandler();
212 JSHandle<PrototypeHandler> NewPrototypeHandler();
214 JSHandle<TransWithProtoHandler> NewTransWithProtoHandler();
[all …]
Djs_bigint.h47 static JSHandle<BigInt> CreateBigint(JSThread *thread, uint32_t size);
53 …static JSHandle<BigInt> BitwiseOp(JSThread *thread, Operate op, JSHandle<BigInt> x, JSHandle<BigIn…
54 static JSHandle<BigInt> BitwiseAND(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
55 static JSHandle<BigInt> BitwiseXOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
56 static JSHandle<BigInt> BitwiseOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y);
57 … static JSHandle<BigInt> BitwiseSubOne(JSThread *thread, JSHandle<BigInt> bigint, uint32_t maxLen);
58 static JSHandle<BigInt> BitwiseAddOne(JSThread *thread, JSHandle<BigInt> bigint);
59 static JSHandle<EcmaString> ToString(JSThread *thread, JSHandle<BigInt> bigint,
63 static JSHandle<BigInt> UnaryMinus(JSThread *thread, JSHandle<BigInt> x);
64 static JSHandle<BigInt> BitwiseNOT(JSThread *thread, JSHandle<BigInt> x);
[all …]
Djs_object.h60 …PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v) : thread_(thread), value_(v)… in PropertyDescriptor()
62 PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v, bool w, bool e, bool c) in PropertyDescriptor()
75 : PropertyDescriptor(thread, JSHandle<JSTaggedValue>(), w, e, c) in PropertyDescriptor()
79 inline JSHandle<JSTaggedValue> GetValue() const in GetValue()
82 return JSHandle<JSTaggedValue>(thread_, JSTaggedValue::Undefined()); in GetValue()
87 inline void SetValue(JSHandle<JSTaggedValue> value) in SetValue()
155 inline JSHandle<JSTaggedValue> GetGetter() const in GetGetter()
158 return JSHandle<JSTaggedValue>(thread_, JSTaggedValue::Undefined()); in GetGetter()
163 inline JSHandle<JSTaggedValue> GetSetter() const in GetSetter()
166 return JSHandle<JSTaggedValue>(thread_, JSTaggedValue::Undefined()); in GetSetter()
[all …]
Djs_async_function.cpp34 void JSAsyncFunction::AsyncFunctionAwait(JSThread *thread, const JSHandle<JSAsyncFuncObject> &async… in AsyncFunctionAwait()
35 const JSHandle<JSTaggedValue> &value) in AsyncFunctionAwait()
41 JSHandle<JSTaggedValue> asyncCtxt(thread, asyncFuncObj->GetGeneratorContext()); in AsyncFunctionAwait()
44 JSHandle<GlobalEnv> env = vm->GetGlobalEnv(); in AsyncFunctionAwait()
46 JSHandle<PromiseCapability> pcap = in AsyncFunctionAwait()
47 … JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction())); in AsyncFunctionAwait()
51 JSHandle<JSTaggedValue> resolve(thread, pcap->GetResolve()); in AsyncFunctionAwait()
52 JSHandle<JSTaggedValue> thisArg = globalConst->GetHandledUndefined(); in AsyncFunctionAwait()
54 JSHandle<JSTaggedValue> undefined = globalConst->GetHandledUndefined(); in AsyncFunctionAwait()
63 JSHandle<JSAsyncAwaitStatusFunction> fulFunc = factory->NewJSAsyncAwaitStatusFunction( in AsyncFunctionAwait()
[all …]
Djs_proxy.h29 static JSHandle<JSProxy> ProxyCreate(JSThread *thread, const JSHandle<JSTaggedValue> &target,
30 const JSHandle<JSTaggedValue> &handler);
32 static JSTaggedValue GetPrototype(JSThread *thread, const JSHandle<JSProxy> &proxy);
34 …static bool SetPrototype(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTagged…
36 static bool IsExtensible(JSThread *thread, const JSHandle<JSProxy> &proxy);
38 static bool PreventExtensions(JSThread *thread, const JSHandle<JSProxy> &proxy);
40 …static bool GetOwnProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTagg…
43 …static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JST…
46 …static bool HasProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, const JSHandle<JSTaggedV…
48 static inline OperationResult GetProperty(JSThread *thread, const JSHandle<JSProxy> &proxy, in GetProperty()
[all …]
Djs_stable_array.h28 static JSTaggedValue Push(JSHandle<JSArray> receiver, EcmaRuntimeCallInfo *argv);
29 static JSTaggedValue Pop(JSHandle<JSArray> receiver, EcmaRuntimeCallInfo *argv);
30 … static JSTaggedValue Splice(JSHandle<JSArray> receiver, EcmaRuntimeCallInfo *argv, uint32_t start,
32 static JSTaggedValue Shift(JSHandle<JSArray> receiver, EcmaRuntimeCallInfo *argv);
33 static JSTaggedValue Join(JSHandle<JSArray> receiver, EcmaRuntimeCallInfo *argv);
34 static JSTaggedValue HandleFindIndexOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
35 JSHandle<JSTaggedValue> callbackFnHandle,
36JSHandle<JSTaggedValue> thisArgHandle, uint32_t &k);
37 …static JSTaggedValue HandleFindLastIndexOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandl…
38 JSHandle<JSTaggedValue> callbackFnHandle,
[all …]
Djs_iterator.h52 …static JSTaggedValue IteratorCloseAndReturn(JSThread *thread, const JSHandle<JSTaggedValue> &iter);
54 … static JSHandle<JSTaggedValue> GetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj);
56 static JSHandle<JSTaggedValue> GetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
57 const JSHandle<JSTaggedValue> &method);
59 …static JSHandle<JSTaggedValue> GetAsyncIterator(JSThread *thread, const JSHandle<JSTaggedValue> &o…
61 … static JSHandle<JSTaggedValue> IteratorNext(JSThread *thread, const JSHandle<JSTaggedValue> &iter,
62 const JSHandle<JSTaggedValue> &value);
64 …static JSHandle<JSTaggedValue> IteratorNext(JSThread *thread, const JSHandle<AsyncIteratorRecord> …
65 const JSHandle<JSTaggedValue> &value);
67 …static JSHandle<JSTaggedValue> IteratorNext(JSThread *thread, const JSHandle<AsyncIteratorRecord> …
[all …]
Djs_array.h33 static JSHandle<JSTaggedValue> ArrayCreate(JSThread *thread, JSTaggedNumber length,
35 static JSHandle<JSTaggedValue> ArrayCreate(JSThread *thread, JSTaggedNumber length,
36 const JSHandle<JSTaggedValue> &newTarget,
38 … static JSTaggedValue ArraySpeciesCreate(JSThread *thread, const JSHandle<JSObject> &originalArray,
40 …static bool ArraySetLength(JSThread *thread, const JSHandle<JSObject> &array, const PropertyDescri…
41 …static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, const JSHandle<JS…
43 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &array, uint32_t index,
46 static bool IsLengthString(JSThread *thread, const JSHandle<JSTaggedValue> &key);
48 …static JSHandle<JSArray> CreateArrayFromList(JSThread *thread, const JSHandle<TaggedArray> &elemen…
74 …static bool PropertyKeyToArrayIndex(JSThread *thread, const JSHandle<JSTaggedValue> &key, uint32_t…
[all …]
Djs_iterator.cpp29 JSTaggedValue JSIterator::IteratorCloseAndReturn(JSThread *thread, const JSHandle<JSTaggedValue> &i… in IteratorCloseAndReturn()
34JSHandle<JSTaggedValue> record = JSHandle<JSTaggedValue>(factory->NewCompletionRecord(CompletionRe… in IteratorCloseAndReturn()
35 JSHandle<JSTaggedValue>(thread, exception))); in IteratorCloseAndReturn()
36 JSHandle<JSTaggedValue> result = JSIterator::IteratorClose(thread, iter, record); in IteratorCloseAndReturn()
44 JSHandle<JSTaggedValue> JSIterator::GetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &ob… in GetIterator()
49 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in GetIterator()
50 JSHandle<JSTaggedValue> iteratorSymbol = env->GetIteratorSymbol(); in GetIterator()
51 JSHandle<JSTaggedValue> func = JSObject::GetMethod(thread, obj, iteratorSymbol); in GetIterator()
57 JSHandle<JSTaggedValue> JSIterator::GetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &ob… in GetIterator()
58 const JSHandle<JSTaggedValue> &method) in GetIterator()
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_vector.h32 …static bool Add(JSThread *thread, const JSHandle<JSAPIVector> &vector, const JSHandle<JSTaggedValu…
34 static void Insert(JSThread *thread, const JSHandle<JSAPIVector> &vector,
35 const JSHandle<JSTaggedValue> &value, int32_t index);
37 static void SetLength(JSThread *thread, const JSHandle<JSAPIVector> &vector, uint32_t newSize);
41 …static void IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPIVector> &vector, int32_t newC…
43 static int32_t GetIndexOf(JSThread *thread, const JSHandle<JSAPIVector> &vector,
44 const JSHandle<JSTaggedValue> &obj);
46 static int32_t GetIndexFrom(JSThread *thread, const JSHandle<JSAPIVector> &vector,
47 const JSHandle<JSTaggedValue> &obj, int32_t index);
53 static int32_t GetLastIndexOf(JSThread *thread, const JSHandle<JSAPIVector> &vector,
[all …]
Djs_api_arraylist.h36 …static bool Add(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList, const JSHandle<JSTagg…
37 static void Insert(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList,
38 const JSHandle<JSTaggedValue> &value, const int &index);
39 static void Clear(JSThread *thread, const JSHandle<JSAPIArrayList> &obj);
40 static JSHandle<JSAPIArrayList> Clone(JSThread *thread, const JSHandle<JSAPIArrayList> &obj);
41 static uint32_t GetCapacity(JSThread *thread, const JSHandle<JSAPIArrayList> &obj);
42 static void IncreaseCapacityTo(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList,
44 static void TrimToCurrentLength(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList);
45 static bool IsEmpty(const JSHandle<JSAPIArrayList> &arrayList);
46 static int GetIndexOf(JSThread *thread, const JSHandle<JSAPIArrayList> &arrayList,
[all …]
Djs_api_lightweightmap.h25 JSHandle<TaggedArray> hashArray;
26 JSHandle<TaggedArray> keyArray;
46 …static void InsertValue(const JSThread *thread, const JSHandle<JSAPILightWeightMap> &lightWeightMa…
47 … int32_t index, const JSHandle<JSTaggedValue> &value, AccossorsKind kind);
48 …static void ReplaceValue(const JSThread *thread, const JSHandle<JSAPILightWeightMap> &lightWeightM…
49 … int32_t index, const JSHandle<JSTaggedValue> &value, AccossorsKind kind);
50 static void Set(JSThread *thread, const JSHandle<JSAPILightWeightMap> &lightWeightMap,
51 const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &value);
52 static JSTaggedValue Get(JSThread *thread, const JSHandle<JSAPILightWeightMap> &lightWeightMap,
53 const JSHandle<JSTaggedValue> &key);
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Djson_stringifier.h36JSHandle<JSTaggedValue> Stringify(const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedVal…
37 const JSHandle<JSTaggedValue> &gap);
44 void AddDeduplicateProp(const JSHandle<JSTaggedValue> &property);
46 …JSTaggedValue SerializeJSONProperty(const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedV…
47 …JSTaggedValue GetSerializeValue(const JSHandle<JSTaggedValue> &object, const JSHandle<JSTaggedValu…
48 … const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedValue> &replacer);
49 void SerializeObjectKey(const JSHandle<JSTaggedValue> &key, bool hasContent);
51 …bool SerializeJSONObject(const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedValue> &repl…
53 …bool SerializeJSArray(const JSHandle<JSTaggedValue> &value, const JSHandle<JSTaggedValue> &replace…
54 …bool SerializeJSProxy(const JSHandle<JSTaggedValue> &object, const JSHandle<JSTaggedValue> &replac…
[all …]
Dtyped_array_helper.h30 const JSHandle<JSTaggedValue> &constructorName,
32 static JSHandle<JSObject> AllocateTypedArray(JSThread *thread,
33 const JSHandle<JSTaggedValue> &constructorName,
34 const JSHandle<JSTaggedValue> &newTarget,
36 static JSHandle<JSObject> AllocateTypedArray(JSThread *thread,
37 const JSHandle<JSTaggedValue> &constructorName,
38 … const JSHandle<JSTaggedValue> &newTarget, uint32_t length,
40 …static JSHandle<JSObject> TypedArraySpeciesCreate(JSThread *thread, const JSHandle<JSTypedArray> &…
42 …static JSHandle<JSObject> TypedArrayCreate(JSThread *thread, const JSHandle<JSTaggedValue> &constr…
44 …static JSHandle<JSObject> TypedArrayCreateSameType(JSThread *thread, const JSHandle<JSTypedArray> …
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Djson_stringifier_test.cpp54 JSHandle<GlobalEnv> globalEnv = ecmaVM->GetGlobalEnv(); in CreateBaseJSObject()
56 JSHandle<JSTaggedValue> objectFunc(globalEnv->GetObjectFunction()); in CreateBaseJSObject()
58JSHandle<JSObject> jsObject(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc), ob… in CreateBaseJSObject()
61 JSHandle<JSTaggedValue> handleKey1(factory->NewFromASCII(&keyCStr[0])); in CreateBaseJSObject()
62 JSHandle<JSTaggedValue> handleValue1(thread, JSTaggedValue(1)); // 1 : test case in CreateBaseJSObject()
63 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), handleKey1, handleValue1); in CreateBaseJSObject()
66 JSHandle<JSTaggedValue> handleKey2(factory->NewFromASCII(str2)); in CreateBaseJSObject()
67 JSHandle<JSTaggedValue> handleValue2(thread, JSTaggedValue(3.6)); // 3.6 : test case in CreateBaseJSObject()
68 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), handleKey2, handleValue2); in CreateBaseJSObject()
71 JSHandle<JSTaggedValue> handleKey3(factory->NewFromASCII(str3)); in CreateBaseJSObject()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.h55 static JSHandle<JSTaggedValue> HostResolveImportedModule(JSThread *thread,
56 … const JSHandle<SourceTextModule> &module,
57 … const JSHandle<JSTaggedValue> &moduleRequest);
58 static JSHandle<JSTaggedValue> HostResolveImportedModuleWithMerge(JSThread *thread,
59 … const JSHandle<SourceTextModule> &module,
60 … const JSHandle<JSTaggedValue> &moduleRequest);
63 …static CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &m…
64 const JSHandle<TaggedArray> &exportStarSet);
67 …static JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &m…
68 const JSHandle<JSTaggedValue> &exportName,
[all …]
Djs_module_namespace.cpp26 JSHandle<ModuleNamespace> ModuleNamespace::ModuleNamespaceCreate(JSThread *thread, in ModuleNamespaceCreate()
27 … const JSHandle<JSTaggedValue> &module, in ModuleNamespaceCreate()
28 … const JSHandle<TaggedArray> &exports) in ModuleNamespaceCreate()
34 JSHandle<ModuleRecord> moduleRecord = JSHandle<ModuleRecord>::Cast(module); in ModuleNamespaceCreate()
40 JSHandle<ModuleNamespace> mNp = factory->NewModuleNamespace(); in ModuleNamespaceCreate()
46 JSHandle<JSArray> exportsArray = JSArray::CreateArrayFromList(thread, exports); in ModuleNamespaceCreate()
47 JSHandle<JSObject> sortedExports = JSHandle<JSObject>::Cast(exportsArray); in ModuleNamespaceCreate()
48 JSHandle<JSTaggedValue> fn = globalConst->GetHandledUndefined(); in ModuleNamespaceCreate()
54JSHandle<JSTaggedValue> toStringTag = thread->GetEcmaVM()->GetGlobalEnv()->GetToStringTagSymbol(); in ModuleNamespaceCreate()
55 JSHandle<JSTaggedValue> moduleString = globalConst->GetHandledModuleString(); in ModuleNamespaceCreate()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_list_format_test.cpp68 JSHandle<JSTaggedValue> ctor = env->GetListFormatFunction(); in HWTEST_F_L0()
69 JSHandle<JSListFormat> jsFormatter = in HWTEST_F_L0()
70JSHandle<JSListFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
91 JSHandle<JSTaggedValue> ctor = env->GetListFormatFunction(); in HWTEST_F_L0()
92 JSHandle<JSListFormat> jsFormatter = in HWTEST_F_L0()
93JSHandle<JSListFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
109 JSHandle<JSListFormat> CreateJSListFormatterTest(JSThread *thread, icu::Locale icuLocale, JSHandle<… in CreateJSListFormatterTest()
115 JSHandle<JSTaggedValue> localeCtor = env->GetLocaleFunction(); in CreateJSListFormatterTest()
116 JSHandle<JSTaggedValue> listCtor = env->GetListFormatFunction(); in CreateJSListFormatterTest()
117 JSHandle<JSLocale> locales = in CreateJSListFormatterTest()
[all …]
Djs_object_test.cpp68 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in JSObjectTestCreate()
74 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
75 JSHandle<JSObject> jsobject = in HWTEST_F_L0()
76 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
82 JSHandle<JSTaggedValue> objFunc(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
83 JSHandle<JSObject> jsobject = in HWTEST_F_L0()
84 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0()
88 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromASCII(array)); in HWTEST_F_L0()
89 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
91 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value); in HWTEST_F_L0()
[all …]
Djs_proxy_test.cpp64 JSHandle<GlobalEnv> globalEnv = ecmaVM->GetGlobalEnv(); in JSObjectTestCreate()
70 JSHandle<JSTaggedValue> hclass(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
71 JSHandle<JSTaggedValue> targetHandle( in HWTEST_F_L0()
72 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(hclass), hc… in HWTEST_F_L0()
74 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromASCII("x")); in HWTEST_F_L0()
75 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
79 JSHandle<JSTaggedValue> handlerHandle( in HWTEST_F_L0()
80 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(hclass), hc… in HWTEST_F_L0()
83 JSHandle<JSProxy> proxyHandle = JSProxy::ProxyCreate(thread, targetHandle, handlerHandle); in HWTEST_F_L0()
103 JSHandle<JSTaggedValue> hclass(thread, JSObjectTestCreate(thread)); in HWTEST_F_L0()
[all …]
Djs_finalization_registry_test.cpp66 static JSHandle<JSTaggedValue> CreateFinalizationRegistry(JSThread *thread) in CreateFinalizationRegistry()
72 JSHandle<JSFunction> finaRegFunc(env->GetBuiltinsFinalizationRegistryFunction()); in CreateFinalizationRegistry()
73 JSHandle<JSFunction> callbackFunc = factory->NewJSFunction(env, reinterpret_cast<void *>( in CreateFinalizationRegistry()
83 JSHandle<JSTaggedValue> finalizationRegistryHandle(thread, finalizationRegistry); in CreateFinalizationRegistry()
104 JSHandle<JSTaggedValue> objectFunc = env->GetObjectFunction(); in HWTEST_F_L0()
105JSHandle<JSTaggedValue> target(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objectFunc),… in HWTEST_F_L0()
106 JSHandle<JSTaggedValue> key(factory->NewFromASCII("key1")); in HWTEST_F_L0()
107 JSHandle<JSTaggedValue> value(thread, JSTaggedValue(1)); in HWTEST_F_L0()
109 JSHandle<JSTaggedValue> heldValue(thread, JSTaggedValue(100)); in HWTEST_F_L0()
110 JSHandle<JSTaggedValue> unregisterToken(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_private.h22 using InitializeFunction = JSHandle<JSTaggedValue> (*)(JSThread *);
50 …static JSHandle<JSFunction> NewContainerConstructor(JSThread *thread, const JSHandle<JSObject> &pr…
52 …static JSHandle<JSFunction> NewFunction(JSThread *thread, const JSHandle<JSTaggedValue> &key, Ecma…
55 …static void SetFrozenFunction(JSThread *thread, const JSHandle<JSObject> &obj, const char *key, Ec…
58 …static void SetFrozenConstructor(JSThread *thread, const JSHandle<JSObject> &obj, const char *keyC…
59 JSHandle<JSTaggedValue> &value);
60 …static JSHandle<JSTaggedValue> CreateGetter(JSThread *thread, EcmaEntrypoint func, const char *nam…
62 static void SetGetter(JSThread *thread, const JSHandle<JSObject> &obj,
63 … const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &getter);
64 static void SetFunctionAtSymbol(JSThread *thread, const JSHandle<GlobalEnv> &env,
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dclass_info_extractor.h47 …static void BuildClassInfoExtractorFromLiteral(JSThread *thread, JSHandle<ClassInfoExtractor> &ext…
48 const JSHandle<TaggedArray> &literal);
50 …static JSHandle<JSHClass> CreatePrototypeHClass(JSThread *thread, const JSHandle<JSTaggedValue> &b…
51 JSHandle<TaggedArray> &keys,
52 JSHandle<TaggedArray> &properties);
54 …static JSHandle<JSHClass> CreateConstructorHClass(JSThread *thread, const JSHandle<JSTaggedValue> …
55 JSHandle<TaggedArray> &keys,
56 JSHandle<TaggedArray> &properties,
57 JSHandle<Method> &method);
60 JSHandle<TaggedArray> &properties,
[all …]

12345678910>>...31