/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_stubs.cpp | 56 GateRef newTarget = TaggedArgument(static_cast<size_t>(BuiltinsArgs::NEWTARGET)); \
60 GenerateCircuitImpl(glue, nativeCode, func, newTarget, thisValue, numArgs); \
63 GateRef newTarget, GateRef thisValue, GateRef numArgs)
72 GateRef newTarget = TaggedArgument(static_cast<size_t>(BuiltinsArgs::NEWTARGET)); \
76 GenerateCircuitImpl(glue, nativeCode, func, newTarget, thisValue, numArgs); \
79 GateRef newTarget, GateRef thisValue, GateRef numArgs)
87 GateRef newTarget = TaggedArgument(static_cast<size_t>(BuiltinsArgs::NEWTARGET)); \
90 GenerateCircuitImpl(glue, nativeCode, func, newTarget, thisValue, numArgs); \
93 GateRef newTarget, GateRef thisValue, GateRef numArgs)
184 GateRef numArgs, GateRef func, GateRef newTarget)
in CallSlowPath() 183 CallSlowPath(GateRef nativeCode, GateRef glue, GateRef thisValue, GateRef numArgs, GateRef func, GateRef newTarget) CallSlowPath() argument [all...] |
H A D | builtins_proxy_stub_builder.cpp | 23 void BuiltinsProxyStubBuilder::GenProxyConstructor(GateRef nativeCode, GateRef func, GateRef newTarget)
in GenProxyConstructor() argument 35 BRANCH(TaggedIsUndefined(newTarget), &slowPath, &newTargetNotUndefined);
in GenProxyConstructor()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | interpreter.cpp | 27 // | newTarget | | 38 JSThread *thread, JSTaggedType func, JSTaggedType thisObj, JSTaggedType newTarget, in NewRuntimeCallInfoBase() 52 *(--newSp) = newTarget; in NewRuntimeCallInfoBase() 69 JSThread *thread, JSTaggedValue func, JSTaggedValue thisObj, JSTaggedValue newTarget, in NewRuntimeCallInfo() 72 return NewRuntimeCallInfoBase(thread, func.GetRawData(), thisObj.GetRawData(), newTarget.GetRawData(), in NewRuntimeCallInfo() 78 JSHandle<JSTaggedValue> newTarget, uint32_t numArgs, StackCheck needCheckStack) in NewRuntimeCallInfo() 80 return NewRuntimeCallInfoBase(thread, func.GetTaggedType(), thisObj.GetTaggedType(), newTarget.GetTaggedType(), in NewRuntimeCallInfo() 88 JSTaggedValue newTarget = info->GetNewTargetValue(); in ReBuildRuntimeCallInfo() local 113 *(--currentSp) = newTarget.GetRawData(); in ReBuildRuntimeCallInfo() 37 NewRuntimeCallInfoBase( JSThread *thread, JSTaggedType func, JSTaggedType thisObj, JSTaggedType newTarget, uint32_t numArgs, StackCheck needCheckStack) NewRuntimeCallInfoBase() argument 68 NewRuntimeCallInfo( JSThread *thread, JSTaggedValue func, JSTaggedValue thisObj, JSTaggedValue newTarget, uint32_t numArgs, StackCheck needCheckStack) NewRuntimeCallInfo() argument 76 NewRuntimeCallInfo( JSThread *thread, JSHandle<JSTaggedValue> func, JSHandle<JSTaggedValue> thisObj, JSHandle<JSTaggedValue> newTarget, uint32_t numArgs, StackCheck needCheckStack) NewRuntimeCallInfo() argument
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
H A D | containers_queue_test.cpp | 83 JSHandle<JSFunction> newTarget(thread, InitializeQueueConstructor()); in CreateJSAPIQueue() 85 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIQueue() 86 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIQueue() 101 JSHandle<JSFunction> newTarget(thread, InitializeQueueConstructor()); in HWTEST_F_L0() 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/ecmascript/ic/ |
H A D | invoke_cache.cpp | 24 JSTaggedValue newTarget, JSTaggedValue initialHClass) in SetMonoConstuctCacheSlot() 27 if (UNLIKELY(!newTarget.IsClassConstructor())) { in SetMonoConstuctCacheSlot() 31 profileTypeInfo->Set(thread, slotId, newTarget); in SetMonoConstuctCacheSlot() 49 JSHandle<TaggedArray> newArray = factory->NewTaggedArray(length * step); // 2: newTarget and hclass in SetPolyConstuctCacheSlot() 81 JSTaggedValue ctor, JSTaggedValue newTarget, uint16_t firstArgIdx, uint16_t length) in Construct() 90 JSHandle<JSFunction> newTgt(thread, newTarget); in Construct() 100 JSTaggedValue polyCache = CheckPolyInvokeCache(firstValue, newTarget); in Construct() 23 SetMonoConstuctCacheSlot(JSThread *thread, ProfileTypeInfo *profileTypeInfo, uint32_t slotId, JSTaggedValue newTarget, JSTaggedValue initialHClass) SetMonoConstuctCacheSlot() argument 80 Construct(JSThread *thread, JSTaggedValue firstValue, JSTaggedValue secondValue, JSTaggedValue ctor, JSTaggedValue newTarget, uint16_t firstArgIdx, uint16_t length) Construct() argument
|
H A D | invoke_cache.h | 29 JSTaggedValue newTarget, JSTaggedValue initialHClass); 38 JSTaggedValue ctor, JSTaggedValue newTarget, uint16_t firstArgIdx,
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | cfgo.cpp | 188 BB *newTarget = sucBB.GetPrev(); in ClearCurBBAndResetTargetBB() local 189 DEBUG_ASSERT(newTarget != nullptr, "get prev bb failed in ChainingPattern::ClearCurBBAndResetTargetBB"); in ClearCurBBAndResetTargetBB() 190 Insn *last1 = newTarget->GetLastMachineInsn(); in ClearCurBBAndResetTargetBB() 191 if (newTarget->GetKind() == BB::kBBGoto) { in ClearCurBBAndResetTargetBB() 193 for (br = newTarget->GetLastMachineInsn(); in ClearCurBBAndResetTargetBB() 194 newTarget->GetFirstInsn() != nullptr && br != newTarget->GetFirstInsn()->GetPrev(); br = br->GetPrev()) { in ClearCurBBAndResetTargetBB() 208 if (!DoSameThing(*newTarget, *last1, curBB, *brInsn->GetPreviousMachineInsn())) { in ClearCurBBAndResetTargetBB() 218 LabelIdx tgtLabIdx = newTarget->GetLabIdx(); in ClearCurBBAndResetTargetBB() 219 if (newTarget in ClearCurBBAndResetTargetBB() [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_boolean.cpp | 31 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in BooleanConstructor() local 32 if (newTarget->IsUndefined()) { in BooleanConstructor() 39 JSHandle<JSObject> result = factory->NewJSObjectByConstructor(ctor, newTarget); in BooleanConstructor()
|
H A D | builtins_weak_ref.cpp | 26 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in WeakRefConstructor() local 29 if (newTarget->IsUndefined()) { in WeakRefConstructor() 39 JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarget); in WeakRefConstructor()
|
H A D | builtins_collator.cpp | 34 // 1. If NewTarget is undefined, let newTarget be the active function object, else let newTarget be NewTarget. in CollatorConstructor() 36 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in CollatorConstructor() local 37 if (newTarget->IsUndefined()) { in CollatorConstructor() 38 newTarget = constructor; in CollatorConstructor() 47 // 5. Let collator be ? OrdinaryCreateFromConstructor(newTarget, "%CollatorPrototype%", internalSlotsList). in CollatorConstructor() 48 JSHandle<JSObject> newObject = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), newTarget); in CollatorConstructor()
|
H A D | builtins_cjs_require.cpp | 29 JSHandle<JSTaggedValue> newTarget = GetNewTarget(argv); in CjsRequireConstructor() local 30 if (!newTarget->IsUndefined()) { in CjsRequireConstructor() 31 THROW_TYPE_ERROR_AND_RETURN(thread, "newTarget is undefined", JSTaggedValue::Exception()); in CjsRequireConstructor()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_number_format_test.cpp | 30 // new DateTimeFormat(newTarget is undefined) 35 JSHandle<JSFunction> newTarget(env->GetNumberFormatFunction()); in HWTEST_F_L0() 38 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 8); in HWTEST_F_L0() 39 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0() 56 JSHandle<JSFunction> newTarget(env->GetNumberFormatFunction()); in BuiltinsFormatTest() 58 auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 8); in BuiltinsFormatTest() 59 ecmaRuntimeCallInfo1->SetFunction(newTarget.GetTaggedValue()); in BuiltinsFormatTest() 69 auto ecmaRuntimeCallInfo2 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 4); in BuiltinsFormatTest() 215 JSHandle<JSFunction> newTarget(env->GetNumberFormatFunction()); in NumberFormatCreateTest() 217 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), in NumberFormatCreateTest() [all...] |
H A D | builtins_set_test.cpp | 61 JSHandle<JSFunction> newTarget(env->GetBuiltinsSetFunction()); in CreateBuiltinsSet() 63 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 4); in CreateBuiltinsSet() 64 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateBuiltinsSet() 110 JSHandle<JSFunction> newTarget(env->GetBuiltinsSetFunction()); in HWTEST_F_L0() 132 ecmaRuntimeCallInfo1->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0() 135 ecmaRuntimeCallInfo1->SetNewTarget(newTarget.GetTaggedValue()); in HWTEST_F_L0() 285 JSHandle<JSFunction> newTarget(env->GetBuiltinsSetFunction()); in HWTEST_F_L0() 288 JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(newTarget), speciesSymbol).GetValue().GetTaggedValue(); in HWTEST_F_L0() 290 EXPECT_EQ(value, newTarget.GetTaggedValue()); in HWTEST_F_L0()
|
H A D | builtins_weak_map_test.cpp | 58 JSHandle<JSFunction> newTarget(env->GetBuiltinsWeakMapFunction()); in CreateBuiltinsWeakMap() 60 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, newTarget.GetTaggedValue(), 4); in CreateBuiltinsWeakMap() 61 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateBuiltinsWeakMap() 77 JSHandle<JSFunction> newTarget(env->GetBuiltinsWeakMapFunction()); in HWTEST_F_L0() 91 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0() 94 ecmaRuntimeCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in HWTEST_F_L0()
|
H A D | builtins_weak_set_test.cpp | 56 JSHandle<JSFunction> newTarget(env->GetBuiltinsWeakSetFunction()); in CreateBuiltinsWeakSet() 59 auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*newTarget), 4); in CreateBuiltinsWeakSet() 60 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateBuiltinsWeakSet() 75 JSHandle<JSFunction> newTarget(env->GetBuiltinsWeakSetFunction()); in HWTEST_F_L0() 86 ecmaRuntimeCallInfo->SetFunction(newTarget.GetTaggedValue()); in HWTEST_F_L0() 89 ecmaRuntimeCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/allocatearraybuffer/ |
H A D | allocatearraybuffer.js | 22 var newTarget = function() {}.bind(null); function 23 var arrayBuffer = Reflect.construct(ArrayBuffer, [16], newTarget);
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefislightweightmapandset_fuzzer/ |
H A D | jsvaluerefislightweightmapandset_fuzzer.cpp | 128 JSHandle<JSFunction> newTarget(thread, result1); in ConstructobjectLightWeightMap() 130 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in ConstructobjectLightWeightMap() 131 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in ConstructobjectLightWeightMap() 154 JSHandle<JSFunction> newTarget(thread, result1); in ConstructobjectLightWeightSet() 156 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in ConstructobjectLightWeightSet() 157 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in ConstructobjectLightWeightSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containershashsetforeach_fuzzer/ |
H A D | containershashsetforeach_fuzzer.cpp | 70 JSHandle<JSFunction> newTarget(thread, InitializeHashSetConstructor(thread)); in CreateJSAPIHashSet() 72 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPIHashSet() 73 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPIHashSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmapforeach_fuzzer/ |
H A D | containerslightweightmapforeach_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor(thread)); in CreateJSAPILightWeightMap() 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmapentries_fuzzer/ |
H A D | containerslightweightmapentries_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor(thread)); in CreateJSAPILightWeightMap() 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmapisempty_fuzzer/ |
H A D | containerslightweightmapisempty_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor(thread)); in CreateJSAPILightWeightMap() 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmaphasall_fuzzer/ |
H A D | containerslightweightmaphasall_fuzzer.cpp | 71 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightMapConstructor(thread)); in CreateJSAPILightWeightMap() 73 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap() 74 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightMap()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetentries_fuzzer/ |
H A D | containerslightweightsetentries_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread)); in CreateJSAPILightWeightSet() 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsethas_fuzzer/ |
H A D | containerslightweightsethas_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread)); in CreateJSAPILightWeightSet() 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet()
|
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightsetvalues_fuzzer/ |
H A D | containerslightweightsetvalues_fuzzer.cpp | 69 JSHandle<JSFunction> newTarget(thread, InitializeLightWeightSetConstructor(thread)); in CreateJSAPILightWeightSet() 71 objCallInfo->SetFunction(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet() 72 objCallInfo->SetNewTarget(newTarget.GetTaggedValue()); in CreateJSAPILightWeightSet()
|