/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_arguments.cpp | 22 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 D | js_arguments.h | 25 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 D | object_factory.cpp | 904 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 D | object_factory.h | 59 class JSArguments; 346 JSHandle<JSArguments> NewJSArguments();
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_arguments_test.cpp | 41 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 D | builtins_function.cpp | 69 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 D | jsvaluerefobject_fuzzer.cpp | 84 JSHandle<JSArguments> obj = factory->NewJSArguments(); in IsArgumentsObjectFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_function_stub_builder.cpp | 94 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 D | object_xray.h | 352 JSArguments::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 2727 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 D | new_object_stub_builder.cpp | 1306 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 D | ffi_workload.cpp | 949 JSHandle<JSArguments> obj = factory->NewJSArguments(); in HWTEST_F_L0()
|