Home
last modified time | relevance | path

Searched refs:newTarget (Results 1 – 25 of 258) sorted by relevance

1234567891011

/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_queue_test.cpp83 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/
Dallocatearraybuffer.js22 var newTarget = function() {}.bind(null); function
23 var arrayBuffer = Reflect.construct(ArrayBuffer, [16], newTarget);
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_stubs.cpp39 … 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/
Dbuiltins_weak_ref.cpp29 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()
Dbuiltins_boolean.cpp35 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in BooleanConstructor() local
36 if (newTarget->IsUndefined()) { in BooleanConstructor()
43 JSHandle<JSObject> result = factory->NewJSObjectByConstructor(ctor, newTarget); in BooleanConstructor()
Dbuiltins_cjs_require.cpp34 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in CjsRequireConstructor() local
35 if (!newTarget->IsUndefined()) { in CjsRequireConstructor()
Dbuiltins_collator.cpp39 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()
Dbuiltins_number_format.cpp41 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()
Dbuiltins_finalization_registry.cpp31 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/
Dinterpreter.cpp40 …, 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/
Dinvoke_cache.cpp23 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()
Dinvoke_cache.h29 JSTaggedValue newTarget, JSTaggedValue initialHClass);
38 … JSTaggedValue ctor, JSTaggedValue newTarget, uint16_t firstArgIdx,
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_number_format_test.cpp69 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/
Dcontainerstreemapconstructor_fuzzer.cpp70 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/
Dcontainerslightweightmap_fuzzer.cpp71 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/
Dcontainerslightweightsetgetindexof_fuzzer.cpp69 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/
Dcontainerslightweightsetclear_fuzzer.cpp69 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/
Dcontainerstreemapget_fuzzer.cpp70 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/
Dcontainerslightweightsetvalues_fuzzer.cpp69 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/
Dcontainersstack_fuzzer.cpp70 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/
Dcontainerslistadd_fuzzer.cpp71 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/
Dcontainershashmapset_fuzzer.cpp69 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/
Dcontainersqueue_fuzzer.cpp70 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/
Dcontainershashsetadd_fuzzer.cpp71 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/
Dcontainerstreesetconstructor_fuzzer.cpp70 JSHandle<JSFunction> newTarget(thread, InitializeTreeSetConstructor(thread)); in CreateJSAPITreeSet() local
72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPITreeSet()
73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPITreeSet()

1234567891011