/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_atomics_test.cpp | 47 JSHandle<JSFunction> arrayFunc; in CreateTypedArray() local 51 arrayFunc = JSHandle<JSFunction>(env->GetBigInt64ArrayFunction()); in CreateTypedArray() 52 auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*arrayFunc), 6); in CreateTypedArray() 53 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue(*arrayFunc)); in CreateTypedArray() 63 arrayFunc = JSHandle<JSFunction>(env->GetBigUint64ArrayFunction()); in CreateTypedArray() 64 auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*arrayFunc), 6); in CreateTypedArray() 65 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue(*arrayFunc)); in CreateTypedArray() 75 arrayFunc = JSHandle<JSFunction>(env->GetInt16ArrayFunction()); in CreateTypedArray() 76 auto ecmaRuntimeCallInfo1 = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*arrayFunc), 6); in CreateTypedArray() 77 ecmaRuntimeCallInfo1->SetFunction(JSTaggedValue(*arrayFunc)); in CreateTypedArray() [all...] |
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | typed_array_helper_test.cpp | 34 JSHandle<JSFunction> arrayFunc; in CreateTypedArrayCallInfo() local 37 arrayFunc = JSHandle<JSFunction>(env->GetBigInt64ArrayFunction()); in CreateTypedArrayCallInfo() 41 arrayFunc = JSHandle<JSFunction>(env->GetBigUint64ArrayFunction()); in CreateTypedArrayCallInfo() 45 arrayFunc = JSHandle<JSFunction>(env->GetFloat32ArrayFunction()); in CreateTypedArrayCallInfo() 49 arrayFunc = JSHandle<JSFunction>(env->GetFloat64ArrayFunction()); in CreateTypedArrayCallInfo() 53 arrayFunc = JSHandle<JSFunction>(env->GetInt16ArrayFunction()); in CreateTypedArrayCallInfo() 57 arrayFunc = JSHandle<JSFunction>(env->GetInt32ArrayFunction()); in CreateTypedArrayCallInfo() 61 arrayFunc = JSHandle<JSFunction>(env->GetInt8ArrayFunction()); in CreateTypedArrayCallInfo() 65 arrayFunc = JSHandle<JSFunction>(env->GetUint16ArrayFunction()); in CreateTypedArrayCallInfo() 69 arrayFunc in CreateTypedArrayCallInfo() [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_array.cpp | 85 JSHandle<JSFunction> arrayFunc(env->GetArrayFunction()); in ArrayCreate() 86 JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(arrayFunc, newTarget); in ArrayCreate() 101 if ((newTarget.GetTaggedValue() == arrayFunc.GetTaggedValue()) && normalArrayLength != 0) { in ArrayCreate() 414 JSHandle<JSFunction> arrayFunc(env->GetArrayFunction()); in CreateArrayFromList() 415 JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(arrayFunc); in CreateArrayFromList() 436 JSHandle<JSFunction> arrayFunc(env->GetArrayFunction()); in CreateArrayFromList() 437 JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(arrayFunc, newtarget); in CreateArrayFromList()
|
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_shared_array.cpp | 101 JSHandle<JSFunction> arrayFunc(env->GetSharedArrayFunction()); in ArrayCreate() 102 JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(arrayFunc, newTarget); in ArrayCreate() 365 JSHandle<JSFunction> arrayFunc(env->GetSharedArrayFunction()); in CreateArrayFromList() 366 JSHandle<JSObject> obj = factory->NewJSObjectByConstructor(arrayFunc); in CreateArrayFromList()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | ntype_hcr_lowering.cpp | 220 JSHandle<JSFunction> arrayFunc(compilationEnv_->GetGlobalEnv()->GetArrayFunction()); in NewJSArrayLiteral() 221 JSTaggedValue protoOrHClass = arrayFunc->GetProtoOrHClass(); in NewJSArrayLiteral()
|
H A D | new_object_stub_builder.cpp | 1885 auto arrayFunc =
in LoadArrayHClassSlowPath() local 1887 ret = Load(VariableType::JS_POINTER(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET));
in LoadArrayHClassSlowPath() 1939 GateRef arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, GlobalEnv::ARRAY_FUNCTION_INDEX);
in CreateEmptyArray() local 1940 GateRef hclass = Load(VariableType::JS_POINTER(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET));
in CreateEmptyArray() 2313 GateRef arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv,
in NewFloat32ArrayObj() local 2315 GateRef hclass = Load(VariableType::JS_POINTER(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET));
in NewFloat32ArrayObj()
|
H A D | typed_hcr_lowering.cpp | 2279 GateRef arrayFunc = in LowerArrayConstructorCheck() local 2281 check = builder_.Equal(arrayFunc, newTarget); in LowerArrayConstructorCheck() 2393 GateRef arrayFunc = in LowerFloat32ArrayConstructorCheck() local 2395 GateRef check = builder_.Equal(arrayFunc, newTarget); in LowerFloat32ArrayConstructorCheck()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_typed_array_test.cpp | 1400 JSHandle<JSFunction> arrayFunc = JSHandle<JSFunction>(env->GetInt8ArrayFunction()); in HWTEST_F_L0() local 1404 TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*arrayFunc), 6); // 6 : arguments length in HWTEST_F_L0() 1405 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue(*arrayFunc)); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_array_stub_builder.cpp | 454 auto arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, in Concat() local 456 GateRef intialHClass = Load(VariableType::JS_ANY(), arrayFunc, in Concat() 2516 auto arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, GlobalEnv::ARRAY_FUNCTION_INDEX); in NewArray() local 2517 GateRef intialHClass = Load(VariableType::JS_ANY(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET)); in NewArray() 2721 auto arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, GlobalEnv::ARRAY_FUNCTION_INDEX); in From() local 2722 GateRef intialHClass = Load(VariableType::JS_ANY(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET)); in From() 4764 auto arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, GlobalEnv::ARRAY_FUNCTION_INDEX); in GenArrayConstructor() local 4765 BRANCH(Equal(arrayFunc, newTarget), &fastGetHclass, &slowPath1); in GenArrayConstructor()
|
H A D | builtins_object_stub_builder.cpp | 155 auto arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, GlobalEnv::ARRAY_FUNCTION_INDEX);
in CreateArrayFromList() local 157 GateRef intialHClass = Load(VariableType::JS_ANY(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET));
in CreateArrayFromList()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_array.cpp | 100 auto arrayFunc = thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction(); in ArrayConstructor() 101 ElementsKind newKind = newTarget.GetTaggedValue() == arrayFunc.GetTaggedValue() ? in ArrayConstructor()
|
/arkcompiler/ets_runtime/ecmascript/compiler/baseline/ |
H A D | baseline_stubs.cpp | 2634 auto arrayFunc = GetGlobalEnvValue(VariableType::JS_ANY(), glueGlobalEnv, GlobalEnv::ARRAY_FUNCTION_INDEX); in GenerateCircuit() local 2635 GateRef intialHClass = Load(VariableType::JS_ANY(), arrayFunc, IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET)); in GenerateCircuit()
|