Home
last modified time | relevance | path

Searched refs:JSArguments (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_arguments.cpp22 bool JSArguments::GetOwnProperty(JSThread *thread, const JSHandle<JSArguments> &args, in GetOwnProperty()
42 bool JSArguments::DefineOwnProperty(JSThread *thread, const JSHandle<JSArguments> &args, in DefineOwnProperty()
55 OperationResult JSArguments::GetProperty(JSThread *thread, const JSHandle<JSArguments> &args, in GetProperty()
64 bool JSArguments::SetProperty(JSThread *thread, const JSHandle<JSArguments> &args, const JSHandle<JSTaggedValue> &key, in SetProperty()
72 bool JSArguments::DeleteProperty(JSThread *thread, const JSHandle<JSArguments>
[all...]
H A Djs_arguments.h25 class JSArguments : public JSObject { class
33 CAST_NO_CHECK(JSArguments);
36 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSArguments> &args, const JSHandle<JSTaggedValue> &key,
39 static bool DefineOwnProperty(JSThread *thread, const JSHandle<JSArguments> &args,
45 return GetProperty(thread, JSHandle<JSArguments>::Cast(obj), key, JSHandle<JSTaggedValue>::Cast(obj)); in GetProperty()
47 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSArguments> &args,
53 return SetProperty(thread, JSHandle<JSArguments>::Cast(obj), key, value, JSHandle<JSTaggedValue>::Cast(obj)); in SetProperty()
55 static bool SetProperty(JSThread *thread, const JSHandle<JSArguments> &args, const JSHandle<JSTaggedValue> &key,
58 static bool DeleteProperty(JSThread *thread, const JSHandle<JSArguments> &args, const JSHandle<JSTaggedValue> &key);
H A Dobject_factory.cpp904 JSHandle<JSHClass> argumentsClass = NewEcmaHClass(JSArguments::SIZE, JSType::JS_ARGUMENTS, proto); in CreateJSArguments()
907 ASSERT(JSArguments::LENGTH_INLINE_PROPERTY_INDEX == fieldOrder); in CreateJSArguments()
908 JSHandle<LayoutInfo> layoutInfoHandle = CreateLayoutInfo(JSArguments::LENGTH_OF_INLINE_PROPERTIES); in CreateJSArguments()
914 layoutInfoHandle->AddKey(thread_, JSArguments::LENGTH_INLINE_PROPERTY_INDEX, globalConst->GetLengthString(), in CreateJSArguments()
918 ASSERT(JSArguments::ITERATOR_INLINE_PROPERTY_INDEX == fieldOrder); in CreateJSArguments()
924 layoutInfoHandle->AddKey(thread_, JSArguments::ITERATOR_INLINE_PROPERTY_INDEX, in CreateJSArguments()
929 ASSERT(JSArguments::CALLER_INLINE_PROPERTY_INDEX == fieldOrder); in CreateJSArguments()
935 layoutInfoHandle->AddKey(thread_, JSArguments::CALLER_INLINE_PROPERTY_INDEX, in CreateJSArguments()
940 ASSERT(JSArguments::CALLEE_INLINE_PROPERTY_INDEX == fieldOrder); in CreateJSArguments()
946 layoutInfoHandle->AddKey(thread_, JSArguments in CreateJSArguments()
[all...]
H A Dobject_factory.h59 class JSArguments;
346 JSHandle<JSArguments> NewJSArguments();
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_arguments_test.cpp41 JSHandle<JSArguments> arg = thread->GetEcmaVM()->GetFactory()->NewJSArguments(); in HWTEST_F_L0()
49 EXPECT_TRUE(JSArguments::SetProperty(thread, arg, key, value, receiver)); in HWTEST_F_L0()
51 EXPECT_EQ(JSArguments::GetProperty(thread, jsarg, key).GetValue()->GetInt(), 1); in HWTEST_F_L0()
54 EXPECT_TRUE(JSArguments::SetProperty(thread, arg, key, value2, receiver)); in HWTEST_F_L0()
56 EXPECT_EQ(JSArguments::GetProperty(thread, jsarg, key).GetValue()->GetInt(), 2); in HWTEST_F_L0()
64 JSHandle<JSArguments> arg = thread->GetEcmaVM()->GetFactory()->NewJSArguments(); in HWTEST_F_L0()
71 JSArguments::SetProperty(thread, arg, key, value, receiver); in HWTEST_F_L0()
73 EXPECT_EQ(JSArguments::GetProperty(thread, JSHandle<JSArguments>(jsarg), key, receiver).GetValue()->GetInt(), 1); in HWTEST_F_L0()
76 JSArguments in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_function.cpp69 JSHandle<JSArguments> argList = JSHandle<JSArguments>::Cast(arrayObj); in BuildArgumentsListFast()
75 auto result = argList->GetPropertyInlinedProps(JSArguments::LENGTH_INLINE_PROPERTY_INDEX); in BuildArgumentsListFast()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefobject_fuzzer/
H A Djsvaluerefobject_fuzzer.cpp84 JSHandle<JSArguments> obj = factory->NewJSArguments(); in IsArgumentsObjectFuzzTest()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_function_stub_builder.cpp94 GateRef PropertyInlinedPropsOffset = IntPtr(JSArguments::LENGTH_INLINE_PROPERTY_INDEX); in PrototypeApply()
277 GateRef PropertyInlinedPropsOffset = IntPtr(JSArguments::LENGTH_INLINE_PROPERTY_INDEX); in BuildArgumentsListFastElements()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dobject_xray.h352 JSArguments::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h2727 JSHandle<JSArguments> obj = factory->NewJSArguments();
2730 obj->SetPropertyInlinedProps(thread, JSArguments::LENGTH_INLINE_PROPERTY_INDEX, JSTaggedValue(len));
2740 obj->SetPropertyInlinedProps(thread, JSArguments::ITERATOR_INLINE_PROPERTY_INDEX,
2745 obj->SetPropertyInlinedProps(thread, JSArguments::CALLER_INLINE_PROPERTY_INDEX, accessorCaller.GetTaggedValue());
2749 obj->SetPropertyInlinedProps(thread, JSArguments::CALLEE_INLINE_PROPERTY_INDEX, accessorCallee.GetTaggedValue());
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dnew_object_stub_builder.cpp1306 Int32(JSArguments::LENGTH_INLINE_PROPERTY_INDEX)); in NewArgumentsObj()
1311 Int32(JSArguments::ITERATOR_INLINE_PROPERTY_INDEX)); in NewArgumentsObj()
1315 Int32(JSArguments::CALLER_INLINE_PROPERTY_INDEX)); in NewArgumentsObj()
1319 Int32(JSArguments::CALLEE_INLINE_PROPERTY_INDEX)); in NewArgumentsObj()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Dffi_workload.cpp949 JSHandle<JSArguments> obj = factory->NewJSArguments(); in HWTEST_F_L0()

Completed in 33 milliseconds