Home
last modified time | relevance | path

Searched refs:JSObject (Results 1 – 25 of 562) sorted by relevance

12345678910>>...23

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_lazy_callback.h53 static JSTaggedValue Date(JSThread *thread, const JSHandle<JSObject> &obj);
54 static JSTaggedValue Set(JSThread *thread, const JSHandle<JSObject> &obj);
55 static JSTaggedValue Map(JSThread *thread, const JSHandle<JSObject> &obj);
56 static JSTaggedValue WeakMap(JSThread *thread, const JSHandle<JSObject> &obj);
57 static JSTaggedValue WeakSet(JSThread *thread, const JSHandle<JSObject> &obj);
58 static JSTaggedValue WeakRef(JSThread *thread, const JSHandle<JSObject> &obj);
59 static JSTaggedValue FinalizationRegistry(JSThread *thread, const JSHandle<JSObject> &obj);
60 static JSTaggedValue TypedArray(JSThread *thread, const JSHandle<JSObject> &obj);
61 static JSTaggedValue Int8Array(JSThread *thread, const JSHandle<JSObject> &obj);
62 static JSTaggedValue Uint8Array(JSThread *thread, const JSHandle<JSObject> &obj);
[all …]
Dbuiltins.h54 …unction> NewBuiltinConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype,
60 … const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc,
70 void SetLazyAccessor(const JSHandle<JSObject> &object, const JSHandle<JSTaggedValue> &key,
73 void InitializeCtor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype,
76 …void InitializeGlobalObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &globalObject…
80 … void InitializeObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &objFuncPrototype,
81 const JSHandle<JSObject> &objFunc);
83 void InitializeNumber(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &globalObject,
149 …JSHandle<JSFunction> NewIntlConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &…
151 void InitializeIntlCtor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype,
[all …]
Dbuiltins.cpp204 JSHandle<JSObject> sObjFuncPrototype = in InitializeSObjectAndSFunction()
221 const JSHandle<JSObject> &sObjFuncPrototype) const in InitializeSObject()
232 … SetSFunction(env, JSHandle<JSObject>(sObjectFunction), entry.GetName(), entry.GetEntrypoint(), in InitializeSObject()
236 JSHandle<JSObject> sObjFuncPrototypeObj(sObjFuncPrototype); in InitializeSObject()
295 JSHandle<JSObject> sFuncPrototypeObj(sFuncPrototype); in InitializeSFunciton()
321 …JSHandle<JSHClass> objPrototypeHClass = factory_->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT,… in Initialize()
324 JSHandle<JSObject> objFuncPrototype = factory_->NewJSObject(objPrototypeHClass); in Initialize()
329 factory_->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, objFuncPrototypeVal); in Initialize()
334 factory_->NewEcmaHClass(JSObject::SIZE, JSType::JS_GLOBAL_OBJECT, 0); in Initialize()
346 JSHandle<JSObject> globalObject = factory_->NewNonMovableJSObject(globalObjFuncClass); in Initialize()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_object-inl.h42 inline bool JSObject::IsExtensible() const in IsExtensible()
47 inline void JSObject::FillElementsWithHoles(const JSThread *thread, uint32_t start, uint32_t end) in FillElementsWithHoles()
53 JSHandle<JSObject> thisObj(thread, this); in FillElementsWithHoles()
59 inline JSHClass *JSObject::GetJSHClass() const in GetJSHClass()
64 inline uint32_t JSObject::GetNonInlinedFastPropsCapacity() const in GetNonInlinedFastPropsCapacity()
73 inline bool JSObject::IsJSGlobalObject() const in IsJSGlobalObject()
78 inline bool JSObject::IsConstructor() const in IsConstructor()
83 inline bool JSObject::IsECMAObject() const in IsECMAObject()
88 inline bool JSObject::IsJSError() const in IsJSError()
93 inline bool JSObject::IsArguments() const in IsArguments()
[all …]
Delement_accessor.h28 static JSTaggedValue Get(JSHandle<JSObject> receiver, uint32_t idx);
29 static JSTaggedValue Get(JSObject *receiver, uint32_t idx);
32 …static void Set(const JSThread *thread, JSHandle<JSObject> receiver, uint32_t idx, const JSHandle<…
36 …static void Set(const JSThread *thread, JSHandle<JSObject> receiver, uint32_t idx, const JSTaggedV…
39 static bool IsDictionaryMode(JSHandle<JSObject> receiver);
40 static bool IsDictionaryMode(JSObject *receiver);
42 static uint32_t GetElementsLength(JSHandle<JSObject> receiver);
43 static uint32_t GetElementsLength(JSObject *receiver);
Djs_object.h400 class JSObject : public ECMAObject {
413 CAST_CHECK(JSObject, IsECMAObject);
432 …static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JST…
435 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
438 static bool CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj,
441 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj,
445 …static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
448 … static JSHandle<TaggedArray> EnumerableOwnNames(JSThread *thread, const JSHandle<JSObject> &obj);
451 …c JSHandle<TaggedArray> EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject> &obj,
453 static void EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj,
[all …]
Djs_global_object.h23 class JSGlobalObject : public JSObject {
31 static constexpr size_t SIZE = JSObject::SIZE;
33 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
36 class GlobalPatch : public JSObject {
44 static constexpr size_t SIZE = JSObject::SIZE;
46 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
Djs_stable_array.h32 JSHandle<JSObject> newArrayHandle, uint32_t len);
35 static JSTaggedValue HandleFindIndexOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
38 …static JSTaggedValue HandleFindLastIndexOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandl…
41 static JSTaggedValue HandleEveryOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
44 static JSTaggedValue HandleforEachOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
51 static JSTaggedValue Filter(JSHandle<JSObject> newArrayHandle, JSHandle<JSObject> thisObjHandle,
53 static JSTaggedValue Map(JSHandle<JSObject> newArrayHandle, JSHandle<JSObject> thisObjHandle,
55 static JSTaggedValue Reverse(JSThread *thread, JSHandle<JSObject> thisObjHandle,
57 static JSTaggedValue Concat(JSThread *thread, JSHandle<JSObject> newArrayHandle,
58 JSHandle<JSObject> thisObjHandle, int64_t &k, int64_t &n);
[all …]
Djs_object.cpp89 JSHandle<TaggedArray> JSObject::GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObjec… in GrowElementsCapacity()
116 JSHandle<JSTaggedValue> JSObject::IterableToList(JSThread *thread, const JSHandle<JSTaggedValue> &i… in IterableToList()
159 bool JSObject::IsRegExp(JSThread *thread, const JSHandle<JSTaggedValue> &argument) in IsRegExp()
165 …JSHandle<JSTaggedValue> isRegexp = JSObject::GetProperty(thread, argument, matchSymbol).GetValue(); in IsRegExp()
170 JSHandle<JSObject> argumentObj = JSHandle<JSObject>::Cast(argument); in IsRegExp()
174 JSHandle<NameDictionary> JSObject::TransitionToDictionary(const JSThread *thread, const JSHandle<JS… in TransitionToDictionary()
223 void JSObject::ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj) in ElementsToDictionary()
247 inline bool JSObject::ShouldOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj) in ShouldOptimizeAsFastElements()
264 void JSObject::TryOptimizeAsFastElements(const JSThread *thread, JSHandle<JSObject> obj) in TryOptimizeAsFastElements()
289 void JSObject::OptimizeAsFastProperties(const JSThread *thread, JSHandle<JSObject> obj) in OptimizeAsFastProperties()
[all …]
Dgenerator_helper.cpp22 JSHandle<JSObject> GeneratorHelper::Next(JSThread *thread, const JSHandle<GeneratorContext> &genCon… in Next()
34 return JSHandle<JSObject>::Cast(nextValue); in Next()
37 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in Next()
41 JSHandle<JSObject> GeneratorHelper::Return(JSThread *thread, const JSHandle<GeneratorContext> &genC… in Return()
54 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in Return()
58 JSHandle<JSObject> GeneratorHelper::Throw(JSThread *thread, const JSHandle<GeneratorContext> &genCo… in Throw()
69 return JSHandle<JSObject>::Cast(throwValue); in Throw()
74 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in Throw()
Dtemplate_string.cpp30 …JSHandle<JSTaggedValue> rawStringsTag = JSObject::GetProperty(thread, templateLiteral, 0).GetValue… in GetTemplateObject()
37 …JSHandle<JSTaggedValue> cookedStringsTag = JSObject::GetProperty(thread, templateLiteral, 1).GetVa… in GetTemplateObject()
45 JSHandle<JSObject> templateObj(templateArr); in GetTemplateObject()
46 JSHandle<JSObject> rawObj(rawArr); in GetTemplateObject()
48 …JSHandle<JSTaggedValue> cookedValue = JSObject::GetProperty(thread, cookedStringsTag, i).GetValue(… in GetTemplateObject()
51 … JSHandle<JSTaggedValue> rawValue = JSObject::GetProperty(thread, rawStringsTag, i).GetValue(); in GetTemplateObject()
55 JSObject::SetIntegrityLevel(thread, rawObj, IntegrityLevel::FROZEN); in GetTemplateObject()
60 JSObject::SetIntegrityLevel(thread, templateObj, IntegrityLevel::FROZEN); in GetTemplateObject()
Dobject_operator.h27 class JSObject; variable
41 …ObjectOperator(JSThread *thread, const JSHandle<JSObject> &holder, const JSHandle<JSTaggedValue> &…
284 return LookupPropertyInlinedProps(JSHandle<JSObject>(receiver_)); in ReLookupPropertyInReceiver()
290 bool UpdateDataValue(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value,
294 JSHandle<JSObject> receiver(holder_); in WriteDataPropertyInHolder()
297 bool WriteDataProperty(const JSHandle<JSObject> &receiver, const PropertyDescriptor &desc);
298 …bool AddProperty(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value, Propert…
301 JSHandle<JSObject> obj(holder_); in AddPropertyInHolder()
333 JSHandle<JSObject> obj(holder_); in LookupPropertyInHolder()
338 JSHandle<JSObject> obj(holder_); in GlobalLookupPropertyInHolder()
[all …]
Djs_generator_object.cpp31 JSHandle<JSObject> toObj = JSTaggedValue::ToObject(thread, obj); in GeneratorValidate()
47 JSHandle<JSObject> JSGeneratorObject::GeneratorResume(JSThread *thread, const JSHandle<JSGeneratorO… in GeneratorResume()
53 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in GeneratorResume()
81 JSHandle<JSObject> result = GeneratorHelper::Next(thread, genContext, value); in GeneratorResume()
85 JSHandle<JSObject> JSGeneratorObject::GeneratorResumeAbrupt(JSThread *thread, in GeneratorResumeAbrupt()
92 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in GeneratorResumeAbrupt()
110 JSHandle<JSObject> result = JSIterator::CreateIterResultObject(thread, valueHandle, true); in GeneratorResumeAbrupt()
135 JSHandle<JSObject> result; in GeneratorResumeAbrupt()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_object_test.cpp76 JSHandle<JSObject> jsobject = in HWTEST_F_L0()
84 JSHandle<JSObject> jsobject = in HWTEST_F_L0()
92 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value); in HWTEST_F_L0()
93 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
96 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value2); in HWTEST_F_L0()
97 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
103 JSHandle<JSObject> obj = in HWTEST_F_L0()
111 …EXPECT_TRUE(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->IsUndefin… in HWTEST_F_L0()
113 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, value); in HWTEST_F_L0()
114 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(), 1… in HWTEST_F_L0()
[all …]
Djs_forin_iterator_test.cpp54 JSHandle<JSObject> nullHandle(thread, JSTaggedValue::Null()); in HWTEST_F_L0()
55 JSHandle<JSObject> grandfather = JSObject::ObjectCreate(thread, nullHandle); in HWTEST_F_L0()
58 JSHandle<JSObject> father = JSObject::ObjectCreate(thread, grandfather); in HWTEST_F_L0()
60 JSHandle<JSObject> son = JSObject::ObjectCreate(thread, father); in HWTEST_F_L0()
69 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(grandfather), key3, key3Value); in HWTEST_F_L0()
70 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(father), key2, key2Value); in HWTEST_F_L0()
72 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), key1, key1Value); in HWTEST_F_L0()
73 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), key2, key1Value); in HWTEST_F_L0()
74 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(son), key3, key1Value); in HWTEST_F_L0()
76 …JSHandle<JSForInIterator> it = JSObject::EnumerateObjectProperties(thread, JSHandle<JSTaggedValue>… in HWTEST_F_L0()
Djs_hclass_test.cpp100 objectClass = factory->NewEcmaHClass(JSObject::SIZE - 1, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0()
104 objectClass = factory->NewEcmaHClass(JSObject::SIZE + 1, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0()
108 objectClass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0()
138 …JSHandle<JSHClass> objectClass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, nullHan… in HWTEST_F_L0()
170 …JSHandle<JSObject> jsObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objF… in HWTEST_F_L0()
180 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), objKey1, objValue1); in HWTEST_F_L0()
181 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), objKey2, objValue2); in HWTEST_F_L0()
182 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), objKey3, objValue3); in HWTEST_F_L0()
202 …JSHandle<JSHClass> hclass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, objectFuncPr… in CreateJSHClass()
231 JSHandle<JSObject> childObj = factory->NewJSObject(childClass); in HWTEST_F_L0()
[all …]
Dobject_operator_third_test.cpp63 [[maybe_unused]] JSHandle<JSObject> &jsObject, in TestBoolSetter()
90 …JSHandle<JSObject> handleObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc),… in HWTEST_F_L0()
93 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handleObject), newKey, newKey); in HWTEST_F_L0()
123 JSHandle<JSObject> handleGlobalObject(globalObj); in HWTEST_F_L0()
156 …JSHandle<JSObject> handleObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc),… in HWTEST_F_L0()
159 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handleObject), newKey, newKey); in HWTEST_F_L0()
161 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handleObject), handleKey, handleValue); in HWTEST_F_L0()
171 JSObject::DeleteProperty(thread, (handleObject), handleKey); in HWTEST_F_L0()
197 …EXPECT_TRUE(objectOperator1.AddProperty(JSHandle<JSObject>(handleArrObj), handleValue, handleAttr)… in HWTEST_F_L0()
200 …JSHandle<JSObject> handleObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc),… in HWTEST_F_L0()
[all …]
Djs_date_time_format_first_test.cpp67 void SetDateOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetDateOptionsTest()
84 JSObject::SetProperty(thread, optionsObj, weekdayKey, weekdayValue); in SetDateOptionsTest()
85 JSObject::SetProperty(thread, optionsObj, yearKey, yearValue); in SetDateOptionsTest()
86 JSObject::SetProperty(thread, optionsObj, monthKey, monthValue); in SetDateOptionsTest()
87 JSObject::SetProperty(thread, optionsObj, dayKey, dayValue); in SetDateOptionsTest()
90 void SetTimeOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetTimeOptionsTest()
110 JSObject::SetProperty(thread, optionsObj, dayPeriodKey, dayPeriodValue); in SetTimeOptionsTest()
111 JSObject::SetProperty(thread, optionsObj, hourKey, hourValue); in SetTimeOptionsTest()
112 JSObject::SetProperty(thread, optionsObj, minuteKey, minuteValue); in SetTimeOptionsTest()
113 JSObject::SetProperty(thread, optionsObj, secondKey, secondValue); in SetTimeOptionsTest()
[all …]
Djs_list_format_test.cpp110 …mat> CreateJSListFormatterTest(JSThread *thread, icu::Locale icuLocale, JSHandle<JSObject> options) in CreateJSListFormatterTest()
130 void SetFormatterOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetFormatterOptionsTest()
142 JSObject::SetProperty(thread, optionsObj, localeMatcherKey, localeMatcherValue); in SetFormatterOptionsTest()
143 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in SetFormatterOptionsTest()
144 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in SetFormatterOptionsTest()
154 …JSHandle<JSObject> object = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun… in HWTEST_F_L0()
191 …JSHandle<JSObject> object = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun… in HWTEST_F_L0()
199 JSHandle<JSObject> valueObj = JSHandle<JSObject>::Cast(factory->NewJSArray()); in HWTEST_F_L0()
206 JSObject::SetProperty(thread, valueObj, key0, value0); in HWTEST_F_L0()
207 JSObject::SetProperty(thread, valueObj, key1, value1); in HWTEST_F_L0()
[all …]
Ddump_test.cpp282 static JSHandle<JSObject> NewJSObject(JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv>… in NewJSObject()
286 …JSHandle<JSObject> jsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(jsFunc1), jsFunc… in NewJSObject()
419 JSHandle<JSObject> object##ClassName = factory->NewJSObjectWithInit(class##ClassName); \ in HWTEST_F_L0()
438 CHECK_DUMP_FIELDS(ECMAObject::SIZE, JSObject::SIZE, 2U); in HWTEST_F_L0()
439 JSHandle<JSObject> jsObj = NewJSObject(thread, factory, globalEnv); in HWTEST_F_L0()
444 CHECK_DUMP_FIELDS(JSObject::SIZE, JSRealm::SIZE, 2U); in HWTEST_F_L0()
458 CHECK_DUMP_FIELDS(JSObject::SIZE, JSFunctionBase::SIZE, 2U); in HWTEST_F_L0()
472 JSHandle<JSObject> proxyRevocFunc = factory->NewJSObjectWithInit(proxyRevocClass); in HWTEST_F_L0()
480 … JSHandle<JSObject> promiseReactFunc = factory->NewJSObjectWithInit(promiseReactClass); in HWTEST_F_L0()
488 JSHandle<JSObject> promiseExeFunc = factory->NewJSObjectWithInit(promiseExeClass); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.h34 static JSHandle<JSObject> AllocateTypedArray(JSThread *thread,
38 static JSHandle<JSObject> AllocateTypedArray(JSThread *thread,
42 …static JSHandle<JSObject> TypedArraySpeciesCreate(JSThread *thread, const JSHandle<JSTypedArray> &…
44 …static JSHandle<JSObject> TypedArrayCreate(JSThread *thread, const JSHandle<JSTaggedValue> &constr…
46 …static JSHandle<JSObject> TypedArrayCreateSameType(JSThread *thread, const JSHandle<JSTypedArray> …
79 …ic JSTaggedValue CreateFromOrdinaryObject(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj,
81 …static JSTaggedValue CreateFromTypedArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj,
83 …static JSTaggedValue CreateFromArrayBuffer(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &ob…
85 …static JSHandle<JSObject> AllocateTypedArrayBuffer(JSThread *thread, const JSHandle<JSObject> &obj,
87 …ic JSTaggedValue FastCopyElementFromArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj,
Dtyped_array_helper.cpp67 … JSHandle<JSObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, in TypedArrayConstructor()
73 …JSHandle<JSObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, … in TypedArrayConstructor()
87 …ypedArrayHelper::FastCopyElementFromArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj, in FastCopyElementFromArray()
95 JSHandle<JSObject> argObj(argArray); in FastCopyElementFromArray()
108 return JSHandle<JSObject>::Cast(targetObj).GetTaggedValue(); in FastCopyElementFromArray()
112 …ypedArrayHelper::CreateFromOrdinaryObject(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj, in CreateFromOrdinaryObject()
121 JSHandle<JSObject> object(objectArg); in CreateFromOrdinaryObject()
125 JSObject::GetMethod(thread, JSHandle<JSTaggedValue>::Cast(object), iteratorSymbol); in CreateFromOrdinaryObject()
205 …ue TypedArrayHelper::CreateFromTypedArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj, in CreateFromTypedArray()
255JSObject::SpeciesConstructor(thread, JSHandle<JSObject>(srcData), env->GetArrayBufferFunction()); in CreateFromTypedArray()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_reflect_test.cpp82 JSTaggedValue testA = JSObject::GetProperty(thread, thisValue, in TestReflectApply()
84 JSTaggedValue testB = JSObject::GetProperty(thread, thisValue, in TestReflectApply()
101 JSHandle<JSObject> thisArgument = in HWTEST_F_L0()
103 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArgument), in HWTEST_F_L0()
106 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArgument), in HWTEST_F_L0()
110 JSHandle<JSObject> argumentsList(JSArray::ArrayCreate(thread, JSTaggedNumber(2))); in HWTEST_F_L0()
128 JSObject::DeleteProperty(thread, (thisArgument), in HWTEST_F_L0()
130 JSObject::DeleteProperty(thread, (thisArgument), in HWTEST_F_L0()
145 JSHandle<JSObject> argumentsList(JSArray::ArrayCreate(thread, JSTaggedNumber(1))); in HWTEST_F_L0()
174 JSHandle<JSObject> target = in HWTEST_F_L0()
[all …]
Dbuiltins_function_test.cpp76 JSTaggedValue testA = JSObject::GetProperty(thread, thisValue, in TestFunctionApplyAndCall()
78 JSTaggedValue testB = JSObject::GetProperty(thread, thisValue, in TestFunctionApplyAndCall()
95 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject()); in HWTEST_F_L0()
96 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
99 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
113 JSObject::DeleteProperty(thread, (thisArg), in HWTEST_F_L0()
115 JSObject::DeleteProperty(thread, (thisArg), in HWTEST_F_L0()
130 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject()); in HWTEST_F_L0()
131 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
134 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
[all …]
Dbuiltins_proxy_test.cpp60 JSHandle<JSObject> BuiltinsTestProxyCreate(JSThread *thread) in BuiltinsTestProxyCreate()
67 … JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in BuiltinsTestProxyCreate()
74 JSHandle<JSObject> target = BuiltinsTestProxyCreate(thread); in HWTEST_F_L0()
75 JSHandle<JSObject> handler = BuiltinsTestProxyCreate(thread); in HWTEST_F_L0()
94 JSHandle<JSObject> target = BuiltinsTestProxyCreate(thread); in HWTEST_F_L0()
95 JSHandle<JSObject> handler = BuiltinsTestProxyCreate(thread); in HWTEST_F_L0()
102 JSObject::DefineOwnProperty(thread, handler, key, desc); in HWTEST_F_L0()
114 JSHandle<JSObject> resultHandle(thread, result); in HWTEST_F_L0()
120 JSHandle<TaggedArray> keys = JSObject::GetOwnPropertyKeys(thread, resultHandle); in HWTEST_F_L0()
135 JSObject::GetOwnProperty(thread, resultHandle, revokeKey, descRes); in HWTEST_F_L0()

12345678910>>...23