/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_queue_test.cpp | 83 JSHandle<JSFunction> newTarget(thread, InitializeQueueConstructor()); in CreateJSAPIQueue() local 85 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIQueue() 86 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIQueue() 101 JSHandle<JSFunction> newTarget(thread, InitializeQueueConstructor()); in HWTEST_F_L0() local 104 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0() 105 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in HWTEST_F_L0() 115 JSTaggedValue funcProto = newTarget->GetFunctionPrototype(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/allocatearraybuffer/ |
D | allocatearraybuffer.js | 22 var newTarget = function() {}.bind(null); function 23 var arrayBuffer = Reflect.construct(ArrayBuffer, [16], newTarget);
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_stubs.cpp | 39 … GateRef newTarget = TaggedArgument(static_cast<size_t>(BuiltinsArgs::NEWTARGET)); \ 43 … GenerateCircuitImpl(glue, nativeCode, func, newTarget, thisValue, numArgs); \ 46 GateRef newTarget, GateRef thisValue, GateRef numArgs) 54 … GateRef newTarget = TaggedArgument(static_cast<size_t>(BuiltinsArgs::NEWTARGET)); \ 57 … GenerateCircuitImpl(glue, nativeCode, func, newTarget, thisValue, numArgs); \ 60 GateRef newTarget, GateRef thisValue, GateRef numArgs) 85 … GateRef numArgs, GateRef func, GateRef newTarget, const char* comment) in CallSlowPath() argument 102 auto args = { nativeCode, glue, runtimeCallInfoArgs, func, newTarget, thisValue }; in CallSlowPath() 112 auto args = { nativeCode, glue, runtimeCallInfoArgs, func, newTarget, thisValue, arg0 }; in CallSlowPath() 123 … auto args = { nativeCode, glue, runtimeCallInfoArgs, func, newTarget, thisValue, arg0, arg1 }; in CallSlowPath() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_weak_ref.cpp | 29 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in WeakRefConstructor() local 32 if (newTarget->IsUndefined()) { in WeakRefConstructor() 42 …le<JSObject> obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarget); in WeakRefConstructor()
|
D | builtins_boolean.cpp | 35 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in BooleanConstructor() local 36 if (newTarget->IsUndefined()) { in BooleanConstructor() 43 JSHandle<JSObject> result = factory->NewJSObjectByConstructor(ctor, newTarget); in BooleanConstructor()
|
D | builtins_cjs_require.cpp | 34 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in CjsRequireConstructor() local 35 if (!newTarget->IsUndefined()) { in CjsRequireConstructor()
|
D | builtins_collator.cpp | 39 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in CollatorConstructor() local 40 if (newTarget->IsUndefined()) { in CollatorConstructor() 41 newTarget = constructor; in CollatorConstructor() 51 …bject> newObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarget); in CollatorConstructor()
|
D | builtins_number_format.cpp | 41 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in NumberFormatConstructor() local 42 if (newTarget->IsUndefined()) { in NumberFormatConstructor() 43 newTarget = constructor; in NumberFormatConstructor() 51 …bject> newObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarget); in NumberFormatConstructor() 71 if (newTarget->IsUndefined() && thisValue->IsJSObject() && isInstanceOf) { in NumberFormatConstructor()
|
D | builtins_finalization_registry.cpp | 31 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in FinalizationRegistryConstructor() local 34 if (newTarget->IsUndefined()) { in FinalizationRegistryConstructor() 45 …le<JSObject> obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarget); in FinalizationRegistryConstructor()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | interpreter.cpp | 40 …, JSHandle<JSTaggedValue> func, JSHandle<JSTaggedValue> thisObj, JSHandle<JSTaggedValue> newTarget, in NewRuntimeCallInfo() argument 53 *(--newSp) = newTarget.GetTaggedType(); in NewRuntimeCallInfo() 73 JSTaggedValue newTarget = info->GetNewTargetValue(); in ReBuildRuntimeCallInfo() local 97 *(--currentSp) = newTarget.GetRawData(); in ReBuildRuntimeCallInfo()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | invoke_cache.cpp | 23 JSTaggedValue newTarget, JSTaggedValue initialHClass) in SetMonoConstuctCacheSlot() argument 26 if (UNLIKELY(!newTarget.IsClassConstructor())) { in SetMonoConstuctCacheSlot() 30 profileTypeInfo->Set(thread, slotId, newTarget); in SetMonoConstuctCacheSlot() 80 … JSTaggedValue ctor, JSTaggedValue newTarget, uint16_t firstArgIdx, uint16_t length) in Construct() argument 89 JSHandle<JSFunction> newTgt(thread, newTarget); in Construct() 99 JSTaggedValue polyCache = CheckPolyInvokeCache(firstValue, newTarget); in Construct()
|
D | invoke_cache.h | 29 JSTaggedValue newTarget, JSTaggedValue initialHClass); 38 … JSTaggedValue ctor, JSTaggedValue newTarget, uint16_t firstArgIdx,
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_number_format_test.cpp | 69 JSHandle<JSFunction> newTarget(env->GetNumberFormatFunction()); in HWTEST_F_L0() local 72 … ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 8); in HWTEST_F_L0() 73 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0() 91 JSHandle<JSFunction> newTarget(env->GetNumberFormatFunction()); in BuiltinsFormatTest() local 93 …ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 8); in BuiltinsFormatTest() 94 ecmaRuntimeCallInfo1->SetFunction(newTarget.GetTaggedValue()); in BuiltinsFormatTest() 104 …ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 4); in BuiltinsFormatTest() 257 JSHandle<JSFunction> newTarget(env->GetNumberFormatFunction()); in NumberFormatCreateTest() local 259 … ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 8); in NumberFormatCreateTest() 260 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in NumberFormatCreateTest()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapconstructor_fuzzer/ |
D | containerstreemapconstructor_fuzzer.cpp | 70 JSHandle<JSFunction> newTarget(thread, InitializeTreeMapConstructor(thread)); in CreateJSAPITreeMap() local 72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPITreeMap() 73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPITreeMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmap_fuzzer/ |
D | containerslightweightmap_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor(thread)); in CreateJSAPILightWeightMap() local 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetgetindexof_fuzzer/ |
D | containerslightweightsetgetindexof_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread)); in CreateJSAPILightWeightSet() local 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetclear_fuzzer/ |
D | containerslightweightsetclear_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread)); in CreateJSAPILightWeightSet() local 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreemapget_fuzzer/ |
D | containerstreemapget_fuzzer.cpp | 70 JSHandle<JSFunction> newTarget(thread, InitializeTreeMapConstructor(thread)); in CreateJSAPITreeMap() local 72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPITreeMap() 73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPITreeMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetvalues_fuzzer/ |
D | containerslightweightsetvalues_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread)); in CreateJSAPILightWeightSet() local 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containersstack_fuzzer/ |
D | containersstack_fuzzer.cpp | 70 JSHandle<JSFunction> newTarget(thread, InitializeStackConstructor(thread)); in CreateJSAPIStack() local 72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIStack() 73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIStack()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslistadd_fuzzer/ |
D | containerslistadd_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeContainersList(thread)); in CreateJSAPIList() local 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIList() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIList()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashmapset_fuzzer/ |
D | containershashmapset_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeHashMapConstructor(thread)); in CreateJSAPIHashMap() local 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIHashMap() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIHashMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containersqueue_fuzzer/ |
D | containersqueue_fuzzer.cpp | 70 JSHandle<JSFunction> newTarget(thread, InitializeQueueConstructor(thread)); in CreateJSAPIQueue() local 72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIQueue() 73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIQueue()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetadd_fuzzer/ |
D | containershashsetadd_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeHashSetConstructor(thread)); in CreateJSAPIHashSet() local 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIHashSet() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIHashSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetconstructor_fuzzer/ |
D | containerstreesetconstructor_fuzzer.cpp | 70 JSHandle<JSFunction> newTarget(thread, InitializeTreeSetConstructor(thread)); in CreateJSAPITreeSet() local 72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPITreeSet() 73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPITreeSet()
|