/arkcompiler/ets_runtime/ecmascript/ |
H A D | global_env_constants.cpp | 58 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in Init() local 67 InitSharedRootsClasses(factory); in Init() 68 InitSharedMiscellanious(thread, factory); in Init() 69 InitSharedStrings(factory); in Init() 72 InitMiscellanious(thread, factory); in Init() 73 InitRootsClasses(factory); in Init() 91 void GlobalEnvConstants::InitSharedStrings(ObjectFactory *factory) in InitSharedStrings() argument 94 SetConstant(ConstantIndex::Index, factory->NewFromASCIIReadOnly(Token)); in InitSharedStrings() 99 void GlobalEnvConstants::InitSharedRootsClasses(ObjectFactory *factory) in InitSharedRootsClasses() argument 102 JSHClass *hClass = *factory in InitSharedRootsClasses() 246 InitSharedMiscellanious(JSThread *thread, ObjectFactory *factory) InitSharedMiscellanious() argument 280 InitRootsClassesPartOne(JSHClass *hClass, ObjectFactory *factory) InitRootsClassesPartOne() argument 314 InitRootsClassesPartTwo(JSHClass *hClass, ObjectFactory *factory) InitRootsClassesPartTwo() argument 348 InitRootsClasses(ObjectFactory *factory) InitRootsClasses() argument 365 InitMiscellanious(JSThread *thread, ObjectFactory *factory) InitMiscellanious() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | shared_object_factory_test.cpp | 36 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0() local 37 JSHandle<ModuleNamespace> np = factory->NewSModuleNamespace(); in HWTEST_F_L0() 46 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0() local 47 JSHandle<EcmaString> request = factory->NewFromASCII("request"); in HWTEST_F_L0() 48 JSHandle<EcmaString> importName = factory->NewFromASCII("importName"); in HWTEST_F_L0() 49 JSHandle<EcmaString> localName = factory->NewFromASCII("localName"); in HWTEST_F_L0() 51 JSHandle<ImportEntry> entry = factory->NewSImportEntry(JSHandle<JSTaggedValue>::Cast(request), in HWTEST_F_L0() 57 JSHandle<JSTaggedValue>::Cast(factory->NewFromASCII("request"))->GetRawData()); in HWTEST_F_L0() 62 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0() local 64 factory in HWTEST_F_L0() 74 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 89 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 99 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 109 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 116 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 125 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 133 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 143 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 158 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 169 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 177 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | dump_test.cpp | 209 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 210 JSHandle<JSTaggedValue> obj(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 221 static JSHandle<JSMap> NewJSMap(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) in NewJSMap() argument 223 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap() 224 JSHandle<JSMap> jsMap = JSHandle<JSMap>::Cast(factory->NewJSObjectWithInit(mapClass)); in NewJSMap() 230 static JSHandle<JSSharedMap> NewJSSharedMap(JSThread *thread, ObjectFactory *factory) in NewJSSharedMap() argument 235 JSHandle<JSHClass> mapClass = factory->NewSEcmaHClass(JSSharedMap::SIZE, 0, in NewJSSharedMap() 237 JSHandle<JSSharedMap> jsMap = JSHandle<JSSharedMap>::Cast(factory->NewJSObjectWithInit(mapClass)); in NewJSSharedMap() 245 static JSHandle<JSSet> NewJSSet(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) in NewJSSet() argument 247 JSHandle<JSHClass> setClass = factory in NewJSSet() 254 NewJSSharedSet(JSThread *thread, ObjectFactory *factory) NewJSSharedSet() argument 269 NewJSAPIHashMap(JSThread *thread, ObjectFactory *factory) NewJSAPIHashMap() argument 280 NewJSAPIHashSet(JSThread *thread, ObjectFactory *factory) NewJSAPIHashSet() argument 291 NewJSAPITreeMap(JSThread *thread, ObjectFactory *factory) NewJSAPITreeMap() argument 302 NewJSAPITreeSet(JSThread *thread, ObjectFactory *factory) NewJSAPITreeSet() argument 313 NewJSAPIPlainArray(JSThread *thread, ObjectFactory *factory) NewJSAPIPlainArray() argument 329 NewJSAPIList(JSThread *thread, ObjectFactory *factory) NewJSAPIList() argument 340 NewJSAPILinkedList(JSThread *thread, ObjectFactory *factory) NewJSAPILinkedList() argument 351 NewJSObject(JSThread *thread, ObjectFactory *factory, JSHandle<GlobalEnv> globalEnv) NewJSObject() argument 359 NewJSAPIArrayList(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIArrayList() argument 369 NewJSAPIStack(ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIStack() argument 377 NewJSRegExp(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSRegExp() argument 390 NewJSAPILightWeightMap(JSThread *thread, ObjectFactory *factory) NewJSAPILightWeightMap() argument 411 NewJSAPILightWeightSet(JSThread *thread, ObjectFactory *factory) NewJSAPILightWeightSet() argument 429 NewJSAPIQueue(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIQueue() argument 441 NewJSAPIDeque(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIDeque() argument 452 NewJSAPIVector(ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIVector() argument 463 auto factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | ecma_container_common.h | 71 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateArrayList() local 75 factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreateArrayList() 76 JSHandle<TaggedArray> taggedArray = factory->NewTaggedArray(JSAPIArrayList::DEFAULT_CAPACITY_LENGTH); in CreateArrayList() 83 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreatePlainArray() local 87 factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreatePlainArray() 88 JSHandle<JSTaggedValue> keyArray = JSHandle<JSTaggedValue>(factory->NewTaggedArray(g_defaultSize)); in CreatePlainArray() 89 JSHandle<JSTaggedValue> valueArray = JSHandle<JSTaggedValue>(factory->NewTaggedArray(g_defaultSize)); in CreatePlainArray() 97 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateJSApiDeque() local 100 JSHandle<JSAPIDeque> deque(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), constructor)); in CreateJSApiDeque() 101 JSHandle<TaggedArray> newElements = factory in CreateJSApiDeque() 108 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateHashMap() local 120 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateHashSet() local 132 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateLightWeightMap() local 149 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateLightWeightSet() local 164 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateLinkedList() local 177 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateList() local 188 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateQueue() local 202 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateJSApiStack() local 213 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateTreeMap() local [all...] |
H A D | js_symbol_test.cpp | 28 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 29 JSHandle<JSSymbol> normallSymbol = factory->NewJSSymbol(); in HWTEST_F_L0() 33 JSHandle<JSSymbol> privateSymbol = factory->NewPrivateSymbol(); in HWTEST_F_L0() 38 JSHandle<JSTaggedValue> symbolName(factory->NewFromASCII("hello world")); in HWTEST_F_L0() 39 JSHandle<JSSymbol> privateNameSymbol = factory->NewPrivateNameSymbol(symbolName); in HWTEST_F_L0() 44 JSHandle<JSSymbol> wellKnowSymbol = factory->NewWellKnownSymbol(symbolName); in HWTEST_F_L0() 52 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 53 JSHandle<JSTaggedValue> helloWord(factory->NewFromASCII("hello world")); in HWTEST_F_L0() 54 JSHandle<JSTaggedValue> hiWord(factory->NewFromASCII("hi world")); in HWTEST_F_L0() 56 JSHandle<JSTaggedValue> helloWord1SymbolVal(factory in HWTEST_F_L0() [all...] |
H A D | layout_info_test.cpp | 28 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 30 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 39 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 43 JSHandle<JSTaggedValue> key(factory->NewFromASCII("key")); in HWTEST_F_L0() 44 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 54 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 58 JSHandle<JSTaggedValue> key1(factory->NewFromASCII("hello")); in HWTEST_F_L0() 59 JSHandle<JSTaggedValue> key2(factory->NewFromASCII("world")); in HWTEST_F_L0() 60 JSHandle<LayoutInfo> layoutInfoHandle = factory->CreateLayoutInfo(infoLength); in HWTEST_F_L0() 74 ObjectFactory *factory in HWTEST_F_L0() local 116 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); GetAllKeysCommon() local [all...] |
H A D | accessor_data_test.cpp | 36 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 40 factory->NewEcmaHClass(JSObject::SIZE, JSType::ACCESSOR_DATA, nullHandle); in HWTEST_F_L0() 41 TaggedObject *accObject = factory->NewObject(accClassHandle); in HWTEST_F_L0() 49 factory->NewEcmaHClass(JSObject::SIZE, JSType::INTERNAL_ACCESSOR, nullHandle); in HWTEST_F_L0() 50 TaggedObject *internalAccObject = factory->NewObject(internalAccClassHandle); in HWTEST_F_L0() 66 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 67 JSHandle<AccessorData> accHandle = factory->NewAccessorData(); in HWTEST_F_L0() 72 JSHandle<AccessorData> internalAccHancle = factory->NewInternalAccessor(setter, getter); in HWTEST_F_L0() 76 JSHandle<JSHClass> accClass = factory->NewEcmaHClass(JSObject::SIZE, JSType::ACCESSOR_DATA, nullHandle); in HWTEST_F_L0() 77 TaggedObject *accObject = factory in HWTEST_F_L0() 101 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 154 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 193 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 213 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | js_hclass_test.cpp | 35 ObjectFactory *factory = vm->GetFactory(); in HWTEST_F_L0() local 39 factory->NewEcmaHClass(TaggedArray::SIZE, JSType::TAGGED_ARRAY, nullHandle); in HWTEST_F_L0() 55 ObjectFactory *factory = vm->GetFactory(); in HWTEST_F_L0() local 58 JSHandle<JSHClass> objectClass = factory->NewEcmaHClass(TaggedArray::SIZE, JSType::TAGGED_ARRAY, nullHandle); in HWTEST_F_L0() 68 string = factory->AllocTreeStringObject(); in HWTEST_F_L0() 72 objectClass = factory->NewEcmaHClass(MachineCode::SIZE, JSType::MACHINE_CODE_OBJECT, nullHandle); in HWTEST_F_L0() 80 objectClass = factory->NewEcmaHClass(JSObject::SIZE - 1, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0() 84 objectClass = factory->NewEcmaHClass(JSObject::SIZE + 1, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0() 88 objectClass = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, nullHandle); in HWTEST_F_L0() 96 ObjectFactory *factory in HWTEST_F_L0() local 115 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 146 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 182 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); CreateJSHClass() local 191 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 226 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 254 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 288 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 324 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 359 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 405 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 425 ObjectFactory *factory = vm->GetFactory(); HWTEST_F_L0() local 438 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | js_sendable_arraybuffer_test.cpp | 36 auto factory = vm->GetFactory(); in HWTEST_F_L0() local 41 JSHandle<JSNativePointer> toNativePointer = factory->NewJSNativePointer(toBuffer, nullptr, nullptr); in HWTEST_F_L0() 49 factory->NewJSNativePointer(formBuffer, nullptr, reinterpret_cast<void *>(data)); in HWTEST_F_L0() 98 auto factory = vm->GetFactory(); in HWTEST_F_L0() local 101 const JSHandle<JSSendableArrayBuffer> arrBuf = factory->NewJSSendableArrayBuffer(5); in HWTEST_F_L0() 102 factory->NewJSSendableArrayBufferData(arrBuf, 5); in HWTEST_F_L0() 117 auto factory = vm->GetFactory(); in HWTEST_F_L0() local 120 const JSHandle<JSSendableArrayBuffer> arrBuf = factory->NewJSSendableArrayBuffer(5); in HWTEST_F_L0() 121 factory->NewJSSendableArrayBufferData(arrBuf, 5); in HWTEST_F_L0() 136 auto factory in HWTEST_F_L0() local 160 auto factory = vm->GetFactory(); HWTEST_F_L0() local 184 auto factory = vm->GetFactory(); HWTEST_F_L0() local 201 auto factory = vm->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | symbol_table_test.cpp | 63 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 65 JSHandle<EcmaString> symbolTableString = factory->NewFromASCII("name"); in HWTEST_F_L0() 88 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 90 JSHandle<JSTaggedValue> jsObJect(factory->NewEmptyJSObject()); in HWTEST_F_L0() 95 JSHandle<EcmaString> nameStringUtf8Obj1 = factory->NewFromUtf8(utf8ArrayName1, utf8ArrayNameLen1); in HWTEST_F_L0() 100 JSHandle<EcmaString> nameStringUtf8Obj2 = factory->NewFromUtf8(utf8ArrayName2, utf8ArrayNameLen2); in HWTEST_F_L0() 114 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 118 JSHandle<EcmaString> nameStringUtf16Obj1 = factory->NewFromUtf16(utf16ArrayName1, utf16ArrayNameLen1); in HWTEST_F_L0() 123 JSHandle<EcmaString> nameStringUtf16Obj2 = factory->NewFromUtf16(utf16ArrayName2, utf16ArrayNameLen2); in HWTEST_F_L0() 154 ObjectFactory *factory in HWTEST_F_L0() local 190 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 218 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | js_displaynames_test.cpp | 38 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 43 JSHandle<JSDisplayNames>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0() 80 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetOptionProperties() local 87 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII(displayOptions["style"].c_str())); in SetOptionProperties() 88 JSHandle<JSTaggedValue> typeValue(factory->NewFromASCII(displayOptions["type"].c_str())); in SetOptionProperties() 89 JSHandle<JSTaggedValue> fallBackValue(factory->NewFromASCII(displayOptions["fallback"].c_str())); in SetOptionProperties() 104 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 109 JSHandle<JSDisplayNames>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0() 111 JSHandle<JSObject> displayOptions = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() 112 JSHandle<JSTaggedValue> localeStr(factory in HWTEST_F_L0() 147 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 193 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | linked_hash_table_test.cpp | 57 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 65 JSHandle<EcmaString> stringKey1 = factory->NewFromASCII(keyArray); in HWTEST_F_L0() 67 JSHandle<JSTaggedValue> value1(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 70 JSHandle<EcmaString> stringKey2 = factory->NewFromASCII(key2Array); in HWTEST_F_L0() 72 JSHandle<JSTaggedValue> value2(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 98 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 106 JSHandle<EcmaString> stringKey1 = factory->NewFromASCII(keyArray); in HWTEST_F_L0() 108 JSHandle<JSTaggedValue> value1(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 111 JSHandle<EcmaString> stringKey2 = factory->NewFromASCII(key2Array); in HWTEST_F_L0() 113 JSHandle<JSTaggedValue> value2(factory in HWTEST_F_L0() 136 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 167 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 199 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 231 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | js_handle_test.cpp | 31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 36 auto string1 = factory->NewFromASCII("test1"); in HWTEST_F_L0() 44 factory->NewFromASCII("test1"), in HWTEST_F_L0() 51 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in GlobalHandleCommon() local 55 auto string1 = factory->NewFromUtf8(test.c_str()); in GlobalHandleCommon() 69 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 74 factory->NewFromUtf8(test.c_str()), in HWTEST_F_L0() 83 factory->NewFromUtf8(test.c_str()), in HWTEST_F_L0() 100 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 107 auto string1 = factory in HWTEST_F_L0() 136 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 166 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_lazy_test.cpp | 35 ObjectFactory *factory = ecmaVM->GetFactory(); in HWTEST_F_L0() local 36 JSHandle<JSTaggedValue> key(factory->NewFromUtf8("Date")); in HWTEST_F_L0() 48 ObjectFactory *factory = ecmaVM->GetFactory(); in HWTEST_F_L0() local 49 JSHandle<JSTaggedValue> key(factory->NewFromUtf8("Date")); in HWTEST_F_L0() 51 JSHandle<JSTaggedValue> value(factory->NewFromUtf8("Value")); in HWTEST_F_L0() 65 ObjectFactory *factory = ecmaVM->GetFactory(); in HWTEST_F_L0() local 66 JSHandle<JSTaggedValue> key(factory->NewFromUtf8("now")); in HWTEST_F_L0() 74 ObjectFactory *factory = ecmaVM->GetFactory(); in HWTEST_F_L0() local 75 auto key = factory->NewFromUtf8("Date"); in HWTEST_F_L0() 87 ObjectFactory *factory in HWTEST_F_L0() local 98 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 111 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 122 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 135 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 146 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 159 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 170 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 183 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 194 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 207 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 217 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 230 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 240 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 253 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 263 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 276 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 286 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 299 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 309 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 322 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local 332 ObjectFactory *factory = ecmaVM->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | builtins_string_test.cpp | 148 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 151 JSHandle<EcmaString> string2 = factory->NewFromASCII("ABC"); in HWTEST_F_L0() 163 JSHandle<EcmaString> test = factory->NewFromASCII("ABC"); in HWTEST_F_L0() 171 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 182 JSHandle<EcmaString> test = factory->NewFromASCII("ABC"); in HWTEST_F_L0() 189 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 199 JSHandle<EcmaString> test = factory->NewFromASCII("ABC"); in HWTEST_F_L0() 206 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 207 JSHandle<EcmaString> thisVal = factory->NewFromASCII("abcabcabc"); in HWTEST_F_L0() 214 JSHandle<EcmaString> test = factory in HWTEST_F_L0() 221 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 236 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 251 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 263 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 276 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 288 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 306 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 319 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 332 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 345 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 357 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 370 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 383 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 396 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 409 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 422 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 435 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 448 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 461 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 474 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 487 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 501 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 519 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 537 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 555 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 573 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 591 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 609 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 632 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 666 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 686 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 705 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 725 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 744 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 764 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 784 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 804 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 827 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 850 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 870 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 894 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 934 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 990 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1039 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1092 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1113 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1138 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1157 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1176 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 1192 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | builtins_list_format_first_test.cpp | 34 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 38 JSHandle<JSTaggedValue> localesString(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() 68 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 69 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() 70 JSHandle<JSTaggedValue> typeValue(factory->NewFromASCII("conjunction")); // the default value in HWTEST_F_L0() 74 JSHandle<JSTaggedValue> listValue(factory->NewFromASCII("Motorcycle")); in HWTEST_F_L0() 93 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CommonTest() local 101 JSHandle<JSTaggedValue> listValue(factory->NewFromStdString(strValues[i])); in CommonTest() 115 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 116 JSHandle<JSTaggedValue> locale(factory in HWTEST_F_L0() 126 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 137 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 149 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | builtins_errors_test.cpp | 59 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0() local 61 JSHandle<JSObject> handleObj = factory->GetJSError(ErrorType::TYPE_ERROR); in HWTEST_F_L0() 62 JSHandle<JSTaggedValue> msgKey(factory->NewFromASCII("message")); in HWTEST_F_L0() 71 JSHandle<EcmaString>(msgValue), factory->NewFromASCII("")), 0); in HWTEST_F_L0() 75 factory->NewFromASCII("TypeError"), JSHandle<EcmaString>(nameValue)), 0); in HWTEST_F_L0() 85 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0() local 87 JSHandle<JSObject> handleObj = factory->GetJSError(ErrorType::TYPE_ERROR, "I am type error"); in HWTEST_F_L0() 88 JSHandle<JSTaggedValue> msgKey(factory->NewFromASCII("message")); in HWTEST_F_L0() 93 factory->NewFromASCII("I am type error"), JSHandle<EcmaString>(msgValue)), 0); in HWTEST_F_L0() 97 factory in HWTEST_F_L0() 107 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 141 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 177 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 202 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 232 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 265 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 301 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 328 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 359 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 392 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 426 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 450 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 479 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 512 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 547 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 571 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 600 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 633 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 668 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 693 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 724 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 757 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 792 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 817 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 847 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 880 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 915 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 938 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local 968 ObjectFactory *factory = instance->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | builtins_number_format_test.cpp | 33 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 37 JSHandle<JSTaggedValue> localesString(factory->NewFromASCII("en-US")); in HWTEST_F_L0() 91 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 97 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII("decimal")); in HWTEST_F_L0() 98 JSHandle<JSTaggedValue> localeString(factory->NewFromASCII("en-US")); in HWTEST_F_L0() 101 JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() 112 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 122 JSHandle<JSTaggedValue> styleValue(factory->NewFromASCII("currency")); in HWTEST_F_L0() 123 JSHandle<JSTaggedValue> currencyValue(factory->NewFromASCII("USD")); in HWTEST_F_L0() 124 JSHandle<JSTaggedValue> currencyDisplayValue(factory in HWTEST_F_L0() 143 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 168 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 193 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 231 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 270 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | builtins_bigint_test.cpp | 92 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
in HWTEST_F_L0() local 93 JSHandle<JSTaggedValue> numericValue(factory->NewFromASCII("456"));
in HWTEST_F_L0() 103 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
in HWTEST_F_L0() local 104 JSHandle<JSTaggedValue> numericValue(factory->NewFromASCII("9223372036854775807"));
in HWTEST_F_L0() 112 JSHandle<EcmaString> str = factory->NewFromASCII("9223372036854775807");
in HWTEST_F_L0() 119 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
in HWTEST_F_L0() local 120 JSHandle<JSTaggedValue> numericValue(factory->NewFromASCII("9223372036854775808"));
in HWTEST_F_L0() 128 JSHandle<EcmaString> str = factory->NewFromASCII("-9223372036854775808");
in HWTEST_F_L0() 135 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
in HWTEST_F_L0() local 136 JSHandle<JSTaggedValue> numericValue(factory in HWTEST_F_L0() 151 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 168 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 189 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 217 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 235 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 253 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 272 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 291 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 307 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 363 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 412 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | builtins_function_test.cpp | 44 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestFunctionApplyAndCall() local 53 JSHandle<JSTaggedValue>(factory->NewFromASCII("test_builtins_function_a"))).GetValue().GetTaggedValue(); in TestFunctionApplyAndCall() 55 JSHandle<JSTaggedValue>(factory->NewFromASCII("test_builtins_function_b"))).GetValue().GetTaggedValue(); in TestFunctionApplyAndCall() 101 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 103 JSHandle<JSFunction> func = factory->NewJSFunction(env, reinterpret_cast<void *>(TestFunctionApplyAndCall)); in HWTEST_F_L0() 108 JSHandle<JSTaggedValue>(factory->NewFromASCII("test_builtins_function_a")), in HWTEST_F_L0() 111 JSHandle<JSTaggedValue>(factory->NewFromASCII("test_builtins_function_b")), in HWTEST_F_L0() 120 JSHandle<JSTaggedValue>(factory->NewFromASCII("test_builtins_function_a"))); in HWTEST_F_L0() 122 JSHandle<JSTaggedValue>(factory->NewFromASCII("test_builtins_function_b"))); in HWTEST_F_L0() 130 ObjectFactory *factory in HWTEST_F_L0() local 168 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 209 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 259 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 310 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 339 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 403 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | number_helper_test.cpp | 60 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 63 JSHandle<EcmaString> resultStr = factory->NewFromASCII("100101"); in HWTEST_F_L0() 68 resultStr = factory->NewFromASCII("-1101"); in HWTEST_F_L0() 73 resultStr = factory->NewFromASCII("211"); in HWTEST_F_L0() 78 resultStr = factory->NewFromASCII("122"); in HWTEST_F_L0() 83 resultStr = factory->NewFromASCII("-1104332401304422434310320000"); in HWTEST_F_L0() 89 resultStr = factory->NewFromASCII("101"); in HWTEST_F_L0() 94 resultStr = factory->NewFromASCII("52"); in HWTEST_F_L0() 99 resultStr = factory->NewFromASCII("11"); in HWTEST_F_L0() 106 ObjectFactory *factory in HWTEST_F_L0() local 144 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 477 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 527 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 572 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 686 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 731 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 796 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
H A D | ason_test.cpp | 97 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 100 JSHandle<JSTaggedValue> handleMsg2(factory->NewFromASCII("1234")); in HWTEST_F_L0() 105 JSHandle<JSTaggedValue> handleMsg3(factory->NewFromASCII("true")); in HWTEST_F_L0() 110 JSHandle<JSTaggedValue> handleMsg4(factory->NewFromASCII("false")); in HWTEST_F_L0() 115 JSHandle<JSTaggedValue> handleMsg5(factory->NewFromASCII("trus")); in HWTEST_F_L0() 123 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 129 JSHandle<JSTaggedValue> handleMsg2(factory->NewFromUtf16(&array1Utf16[0], array1Utf16Len)); in HWTEST_F_L0() 136 JSHandle<JSTaggedValue> handleMsg3(factory->NewFromUtf16(&array2Utf16[0], array2Utf16Len)); in HWTEST_F_L0() 143 JSHandle<JSTaggedValue> handleMsg4(factory->NewFromUtf16(&array3Utf16[0], array3Utf16Len)); in HWTEST_F_L0() 152 ObjectFactory *factory in HWTEST_F_L0() local 165 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 176 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 194 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 204 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 217 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 228 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 239 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 250 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 265 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 276 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 297 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 328 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 357 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 385 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 404 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 423 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
H A D | ic_runtime_test.cpp | 56 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 62 JSHandle<JSTaggedValue> handleReceiver(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 63 JSHandle<JSTaggedValue> handleKeyWithElement(factory->NewFromASCII("2")); in HWTEST_F_L0() 64 JSHandle<JSTaggedValue> handleKeyWithString(factory->NewFromASCII("key")); in HWTEST_F_L0() 65 JSHandle<JSTaggedValue> handleStoreArray(factory->NewTaggedArray(2)); in HWTEST_F_L0() 68 JSHandle<ProfileTypeInfo> handleProfileTypeInfo = factory->NewProfileTypeInfo(arrayLength); in HWTEST_F_L0() 98 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 104 JSHandle<JSTaggedValue> handleReceiver(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 105 JSHandle<JSTaggedValue> handleKeyWithElement(factory->NewFromASCII("2")); in HWTEST_F_L0() 106 JSHandle<JSTaggedValue> handleKeyWithString(factory in HWTEST_F_L0() 147 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 164 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 192 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/jobs/tests/ |
H A D | pending_job_test.cpp | 64 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 67 JSHandle<TaggedArray> handleArgv = factory->NewTaggedArray(0); in HWTEST_F_L0() 68 JSHandle<JSFunction> handleFunc = factory->NewJSFunction(env); in HWTEST_F_L0() 70 JSHandle<JSTaggedValue> handlePendingJobVal(factory->NewPendingJob(handleFunc, handleArgv)); in HWTEST_F_L0() 88 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 91 JSHandle<TaggedArray> handleArgv1 = factory->NewTaggedArray(0); in HWTEST_F_L0() 92 JSHandle<JSFunction> handleFunc = factory->NewJSFunction(env); in HWTEST_F_L0() 94 JSHandle<JSTaggedValue> handlePendingJobVal(factory->NewPendingJob(handleFunc, handleArgv1)); in HWTEST_F_L0() 99 JSHandle<TaggedArray> handleArgv2 = factory->NewTaggedArray(1); in HWTEST_F_L0() 119 ObjectFactory *factory in HWTEST_F_L0() local 154 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 190 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 215 auto factory = argv->GetThread()->GetEcmaVM()->GetFactory(); TestPromiseOnResolved() local 236 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local 284 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/require/tests/ |
H A D | js_cjs_manager_test.cpp | 61 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 64 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0() 66 JSHandle<CjsExports> exports = factory->NewCjsExports(); in HWTEST_F_L0() 67 JSHandle<JSTaggedValue> fileName(factory->NewFromUtf8("ark/js_runtime/test.js")); in HWTEST_F_L0() 68 JSHandle<JSTaggedValue> dirName(factory->NewFromUtf8("ark/js_runtime")); in HWTEST_F_L0() 88 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() local 92 JSHandle<CjsModule> module1 = factory->NewCjsModule(); in HWTEST_F_L0() 94 JSHandle<CjsExports> exports = factory->NewCjsExports(); in HWTEST_F_L0() 95 JSHandle<JSTaggedValue> fileName(factory->NewFromUtf8("ark/js_runtime/test.js")); in HWTEST_F_L0() 96 JSHandle<JSTaggedValue> dirName(factory in HWTEST_F_L0() [all...] |