Home
last modified time | relevance | path

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

12345678910>>...21

/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,
68 void SetLazyAccessor(const JSHandle<JSObject> &object, const JSHandle<JSTaggedValue> &key,
71 void InitializeCtor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype,
74 …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 …]
/arkcompiler/ets_runtime/ecmascript/
Djs_object-inl.h39 inline bool JSObject::IsExtensible() const in IsExtensible()
44 inline void JSObject::FillElementsWithHoles(const JSThread *thread, uint32_t start, uint32_t end) in FillElementsWithHoles()
56 inline JSHClass *JSObject::GetJSHClass() const in GetJSHClass()
61 inline bool JSObject::IsJSGlobalObject() const in IsJSGlobalObject()
66 inline bool JSObject::IsConstructor() const in IsConstructor()
71 inline bool JSObject::IsECMAObject() const in IsECMAObject()
76 inline bool JSObject::IsJSError() const in IsJSError()
81 inline bool JSObject::IsArguments() const in IsArguments()
86 inline bool JSObject::IsDate() const in IsDate()
91 inline bool JSObject::IsJSArray() const in IsJSArray()
[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_object.h363 class JSObject : public ECMAObject {
373 CAST_CHECK(JSObject, IsECMAObject);
387 …static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JST…
390 static bool CreateDataProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index,
393 static bool CreateMethodProperty(JSThread *thread, const JSHandle<JSObject> &obj,
396 static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj,
399 …static bool CreateDataPropertyOrThrow(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t in…
402 … static JSHandle<TaggedArray> EnumerableOwnNames(JSThread *thread, const JSHandle<JSObject> &obj);
405 …c JSHandle<TaggedArray> EnumerableOwnPropertyNames(JSThread *thread, const JSHandle<JSObject> &obj,
407 static void EnumerableOwnPropertyNamesHelper(JSThread *thread, const JSHandle<JSObject> &obj,
[all …]
Djs_stable_array.h34 static JSTaggedValue HandleFindIndexOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
37 …static JSTaggedValue HandleFindLastIndexOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandl…
40 static JSTaggedValue HandleEveryOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
43 static JSTaggedValue HandleforEachOfStable(JSThread *thread, JSHandle<JSObject> thisObjHandle,
48 static JSTaggedValue Filter(JSHandle<JSObject> newArrayHandle, JSHandle<JSObject> thisObjHandle,
50 static JSTaggedValue Map(JSHandle<JSObject> newArrayHandle, JSHandle<JSObject> thisObjHandle,
52 static JSTaggedValue Reverse(JSThread *thread, JSHandle<JSObject> thisObjHandle,
54 static JSTaggedValue Concat(JSThread *thread, JSHandle<JSObject> newArrayHandle,
55 JSHandle<JSObject> thisObjHandle, int64_t &k, int64_t &n);
65 static JSTaggedValue Reduce(JSThread *thread, JSHandle<JSObject> thisObjHandle,
Djs_array.h27 class JSArray : public JSObject {
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,
60 static constexpr size_t LENGTH_OFFSET = JSObject::SIZE;
64 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
76 static JSTaggedValue LengthGetter(JSThread *thread, const JSHandle<JSObject> &self);
78 …static bool LengthSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTagged…
93 …static void Sort(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &f…
[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()
Dobject_operator.h26 class JSObject; variable
40 …ObjectOperator(JSThread *thread, const JSHandle<JSObject> &holder, const JSHandle<JSTaggedValue> &…
254 return LookupPropertyInlinedProps(JSHandle<JSObject>(receiver_)); in ReLookupPropertyInReceiver()
260 JSTaggedValue ConvertOrTransitionWithRep(const JSHandle<JSObject> &receiver,
262 bool UpdateDataValue(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value,
266 JSHandle<JSObject> receiver(holder_); in WriteDataPropertyInHolder()
269 bool WriteDataProperty(const JSHandle<JSObject> &receiver, const PropertyDescriptor &desc);
270 …bool AddProperty(const JSHandle<JSObject> &receiver, const JSHandle<JSTaggedValue> &value, Propert…
273 JSHandle<JSObject> obj(holder_); in AddPropertyInHolder()
305 JSHandle<JSObject> obj(holder_); in LookupPropertyInHolder()
[all …]
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()
Djs_object.cpp74 JSHandle<TaggedArray> JSObject::GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObjec… in GrowElementsCapacity()
87 JSHandle<JSTaggedValue> JSObject::IterableToList(JSThread *thread, const JSHandle<JSTaggedValue> &i… in IterableToList()
130 bool JSObject::IsRegExp(JSThread *thread, const JSHandle<JSTaggedValue> &argument) in IsRegExp()
136 …JSHandle<JSTaggedValue> isRegexp = JSObject::GetProperty(thread, argument, matchSymbol).GetValue(); in IsRegExp()
141 JSHandle<JSObject> argumentObj = JSHandle<JSObject>::Cast(argument); in IsRegExp()
145 JSHandle<NameDictionary> JSObject::TransitionToDictionary(const JSThread *thread, const JSHandle<JS… in TransitionToDictionary()
199 void JSObject::ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj) in ElementsToDictionary()
223 bool JSObject::IsArrayLengthWritable(JSThread *thread, const JSHandle<JSObject> &receiver) in IsArrayLengthWritable()
236 bool JSObject::AddElementInternal(JSThread *thread, const JSHandle<JSObject> &receiver, uint32_t in… in AddElementInternal()
270 JSObject::ElementsToDictionary(thread, receiver); in AddElementInternal()
[all …]
Djs_weak_container.h22 class JSWeakMap : public JSObject {
45 static constexpr size_t LINKED_MAP_OFFSET = JSObject::SIZE;
48 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_MAP_OFFSET, SIZE)
52 class JSWeakSet : public JSObject {
69 static constexpr size_t LINKED_SET_OFFSET = JSObject::SIZE;
72 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_SET_OFFSET, SIZE)
Djs_generator_object.cpp30 JSHandle<JSObject> toObj = JSTaggedValue::ToObject(thread, obj); in GeneratorValidate()
46 JSHandle<JSObject> JSGeneratorObject::GeneratorResume(JSThread *thread, const JSHandle<JSGeneratorO… in GeneratorResume()
52 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in GeneratorResume()
80 JSHandle<JSObject> result = GeneratorHelper::Next(thread, genContext, value); in GeneratorResume()
84 JSHandle<JSObject> JSGeneratorObject::GeneratorResumeAbrupt(JSThread *thread, in GeneratorResumeAbrupt()
91 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSObject, thread); in GeneratorResumeAbrupt()
109 JSHandle<JSObject> result = JSIterator::CreateIterResultObject(thread, valueHandle, true); in GeneratorResumeAbrupt()
134 JSHandle<JSObject> result; in GeneratorResumeAbrupt()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_object_test.cpp75 JSHandle<JSObject> jsobject = in HWTEST_F_L0()
83 JSHandle<JSObject> jsobject = in HWTEST_F_L0()
91 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value); in HWTEST_F_L0()
92 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
95 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key, value2); in HWTEST_F_L0()
96 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsobject), key).GetValue()->GetInt… in HWTEST_F_L0()
102 JSHandle<JSObject> obj = in HWTEST_F_L0()
110 …EXPECT_TRUE(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->IsUndefin… in HWTEST_F_L0()
112 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj), key, value); in HWTEST_F_L0()
113 …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()
Djs_hclass_test.cpp99 objectClass = factory->NewEcmaHClass(JSObject::SIZE - 1, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0()
103 objectClass = factory->NewEcmaHClass(JSObject::SIZE + 1, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0()
107 objectClass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0()
135 …JSHandle<JSHClass> objectClass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, nullHan… in HWTEST_F_L0()
167 …JSHandle<JSObject> jsObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objF… in HWTEST_F_L0()
177 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), objKey1, objValue1); in HWTEST_F_L0()
178 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), objKey2, objValue2); in HWTEST_F_L0()
179 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(jsObject), objKey3, objValue3); in HWTEST_F_L0()
199 …JSHandle<JSHClass> hclass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, objectFuncPr… in CreateJSHClass()
228 JSHandle<JSObject> childObj = factory->NewJSObject(childClass); in HWTEST_F_L0()
[all …]
Djs_list_format_test.cpp109 …mat> CreateJSListFormatterTest(JSThread *thread, icu::Locale icuLocale, JSHandle<JSObject> options) in CreateJSListFormatterTest()
129 void SetFormatterOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetFormatterOptionsTest()
141 JSObject::SetProperty(thread, optionsObj, localeMatcherKey, localeMatcherValue); in SetFormatterOptionsTest()
142 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in SetFormatterOptionsTest()
143 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in SetFormatterOptionsTest()
153 …JSHandle<JSObject> object = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun… in HWTEST_F_L0()
190 …JSHandle<JSObject> object = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun… in HWTEST_F_L0()
198 JSHandle<JSObject> valueObj = JSHandle<JSObject>::Cast(factory->NewJSArray()); in HWTEST_F_L0()
205 JSObject::SetProperty(thread, valueObj, key0, value0); in HWTEST_F_L0()
206 JSObject::SetProperty(thread, valueObj, key1, value1); in HWTEST_F_L0()
[all …]
Ddump_test.cpp281 static JSHandle<JSObject> NewJSObject(JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv>… in NewJSObject()
285 …JSHandle<JSObject> jsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(jsFunc1), jsFunc… in NewJSObject()
407 JSHandle<JSObject> object##ClassName = factory->NewJSObjectWithInit(class##ClassName); \ in HWTEST_F_L0()
424 CHECK_DUMP_FIELDS(ECMAObject::SIZE, JSObject::SIZE, 2U); in HWTEST_F_L0()
425 JSHandle<JSObject> jsObj = NewJSObject(thread, factory, globalEnv); in HWTEST_F_L0()
430 CHECK_DUMP_FIELDS(JSObject::SIZE, JSRealm::SIZE, 2U); in HWTEST_F_L0()
444 CHECK_DUMP_FIELDS(JSObject::SIZE, JSFunctionBase::SIZE, 1U); in HWTEST_F_L0()
457 JSHandle<JSObject> proxyRevocFunc = factory->NewJSObjectWithInit(proxyRevocClass); in HWTEST_F_L0()
465 … JSHandle<JSObject> promiseReactFunc = factory->NewJSObjectWithInit(promiseReactClass); in HWTEST_F_L0()
473 JSHandle<JSObject> promiseExeFunc = factory->NewJSObjectWithInit(promiseExeClass); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.h32 static JSHandle<JSObject> AllocateTypedArray(JSThread *thread,
36 static JSHandle<JSObject> AllocateTypedArray(JSThread *thread,
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> …
60 …ic JSTaggedValue CreateFromOrdinaryObject(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj,
62 …static JSTaggedValue CreateFromTypedArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj,
64 …static JSTaggedValue CreateFromArrayBuffer(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &ob…
66 …static JSHandle<JSObject> AllocateTypedArrayBuffer(JSThread *thread, const JSHandle<JSObject> &obj,
68 …ic JSTaggedValue FastCopyElementFromArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj,
Dtyped_array_helper.cpp66 … JSHandle<JSObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, in TypedArrayConstructor()
72 …JSHandle<JSObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, … in TypedArrayConstructor()
86 …ypedArrayHelper::FastCopyElementFromArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj, in FastCopyElementFromArray()
106 return JSHandle<JSObject>::Cast(targetObj).GetTaggedValue(); in FastCopyElementFromArray()
110 …ypedArrayHelper::CreateFromOrdinaryObject(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj, in CreateFromOrdinaryObject()
119 JSHandle<JSObject> object(objectArg); in CreateFromOrdinaryObject()
123 JSObject::GetMethod(thread, JSHandle<JSTaggedValue>::Cast(object), iteratorSymbol); in CreateFromOrdinaryObject()
173 … JSTaggedValue::ToLength(thread, JSObject::GetProperty(thread, objectArg, lengthKey).GetValue()); in CreateFromOrdinaryObject()
192 JSHandle<JSTaggedValue> kValue = JSObject::GetProperty(thread, objectArg, kKey).GetValue(); in CreateFromOrdinaryObject()
203 …ue TypedArrayHelper::CreateFromTypedArray(EcmaRuntimeCallInfo *argv, const JSHandle<JSObject> &obj, 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()
Dbuiltins_number_format_test.cpp86 static JSTaggedValue BuiltinsFormatTest(JSThread *thread, JSHandle<JSObject> &options, in BuiltinsFormatTest()
114 JSHandle<JSObject> jsObject(thread, jsArray); in BuiltinsFormatTest()
143 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0()
144 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
171 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0()
172 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
173 JSObject::SetProperty(thread, optionsObj, currencyKey, currencyValue); in HWTEST_F_L0()
174 JSObject::SetProperty(thread, optionsObj, currencyDisplayKey, currencyDisplayValue); in HWTEST_F_L0()
175 JSObject::SetProperty(thread, optionsObj, currencySignDisplayKey, currencySignDisplayValue); in HWTEST_F_L0()
198 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Derror_helper_test.cpp59 …JSHandle<JSObject> errorObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(errorFunc), e… in HWTEST_F_L0()
60 JSHandle<JSObject> evalErrorObj = in HWTEST_F_L0()
62 JSHandle<JSObject> typeErrorObj = in HWTEST_F_L0()
64 JSHandle<JSObject> rangeErrorObj = in HWTEST_F_L0()
108 JSHandle<JSObject> uriErrorObj = in HWTEST_F_L0()
110 JSHandle<JSObject> oomErrorObj = in HWTEST_F_L0()
112 JSHandle<JSObject> syntaxErrorObj = in HWTEST_F_L0()
114 JSHandle<JSObject> referenceErrorObj = in HWTEST_F_L0()
116 JSHandle<JSObject> aggregateErrorObj = in HWTEST_F_L0()
177 …JSHandle<JSTaggedValue> errorMsgValue(JSObject::GetProperty(thread, errorResult, msgKey).GetValue(… in HWTEST_F_L0()
[all …]

12345678910>>...21