Home
last modified time | relevance | path

Searched refs:IsWritable (Results 1 – 23 of 23) sorted by relevance

/ark/js_runtime/ecmascript/
Djs_proxy.cpp345 if (resultDesc.HasWritable() && !resultDesc.IsWritable() && targetDesc.IsWritable()) { in GetOwnProperty()
350 if (resultDesc.HasWritable() && !resultDesc.IsWritable() && targetDesc.IsWritable()) { in GetOwnProperty()
429 … if (targetDesc.IsDataDescriptor() && !targetDesc.IsConfigurable() && targetDesc.IsWritable() && in DefineOwnProperty()
430 desc.HasWritable() && !desc.IsWritable()) { in DefineOwnProperty()
435 … if (targetDesc.IsDataDescriptor() && !targetDesc.IsConfigurable() && targetDesc.IsWritable() && in DefineOwnProperty()
436 desc.HasWritable() && !desc.IsWritable()) { in DefineOwnProperty()
545 … if (targetDesc.IsDataDescriptor() && !targetDesc.IsConfigurable() && !targetDesc.IsWritable()) { in GetProperty()
609 … if (targetDesc.IsDataDescriptor() && !targetDesc.IsConfigurable() && !targetDesc.IsWritable()) { in SetProperty()
Dobject_operator.cpp209 desc.SetWritable(IsWritable()); in ToPropertyDescriptor()
216 desc.SetWritable(IsWritable()); in ToPropertyDescriptor()
458 if (desc.HasWritable() && attr.IsWritable() != desc.IsWritable()) { in WriteDataProperty()
459 attr.SetWritable(desc.IsWritable()); in WriteDataProperty()
Dobject_operator.h142 inline bool IsWritable() const in IsWritable() function
144 return GetAttr().IsWritable(); in IsWritable()
Djs_object.cpp39 SetWritable(desc.IsWritable()); in PropertyAttributes()
177 return attr.IsWritable(); in IsArrayLengthWritable()
181 return op.GetAttr().IsWritable(); in IsArrayLengthWritable()
532 if (!op->IsWritable()) { in SetProperty()
562 if (!existDesc.IsWritable()) { in SetProperty()
586 if (!op->IsWritable()) { in SetProperty()
896 (!desc.HasWritable() || (current.IsWritable() == desc.IsWritable())) && in ValidateAndApplyPropertyDescriptor()
941 if (!current.IsWritable() && desc.HasWritable() && desc.IsWritable()) { in ValidateAndApplyPropertyDescriptor()
945 if (!current.IsWritable()) { in ValidateAndApplyPropertyDescriptor()
1265 …f (level == IntegrityLevel::FROZEN && currentDesc.IsDataDescriptor() && currentDesc.IsWritable()) { in TestIntegrityLevel()
[all …]
Djs_arguments.cpp97 if (desc.HasWritable() && !desc.IsWritable()) { in DefineOwnProperty()
Djs_array.cpp257 if (!oldLenDesc.IsWritable() || in ArraySetLength()
267 if (!newLenDesc.HasWritable() || newLenDesc.IsWritable()) { in ArraySetLength()
Dproperty_attributes.h181 inline bool IsWritable() const in IsWritable() function
Djs_typed_array.cpp186 if (desc.HasWritable() && !desc.IsWritable()) { in DefineOwnProperty()
Djs_object.h97 inline bool IsWritable() const in IsWritable() function
Djs_serializer.cpp695 bool isWritable = desc.IsWritable(); in WriteDesc()
Ddump.cpp381 if (attr.IsWritable()) { in DumpAttr()
/ark/js_runtime/ecmascript/interpreter/
Dfast_runtime_stub-inl.h239 return attr.IsWritable(); in ShouldCallSetter()
482 if (UNLIKELY(!attr.IsWritable())) { in SetPropertyByName()
505 if (UNLIKELY(!attr.IsWritable())) { in SetPropertyByName()
841 if (attr.IsWritable()) { in SetElement()
903 if (UNLIKELY(!JSObject::Cast(receiver)->IsExtensible() || !attr.IsWritable())) { in SetPropertyByName()
916 if (attr.IsWritable()) { in SetPropertyByName()
1046 if (attr.IsWritable()) { in SetGlobalOwnProperty()
1101 ASSERT(!attr.IsAccessor() && attr.IsWritable()); in SetOwnPropertyByName()
1137 ASSERT(!attr.IsAccessor() && attr.IsWritable()); in SetOwnElement()
/ark/js_runtime/ecmascript/tests/
Djs_object_test.cpp250 EXPECT_EQ(true, desc.IsWritable()); in HWTEST_F_L0()
275 EXPECT_EQ(true, desc.IsWritable()); in HWTEST_F_L0()
297 EXPECT_EQ(true, descRes1.IsWritable()); in HWTEST_F_L0()
308 EXPECT_EQ(false, descRes2.IsWritable()); in HWTEST_F_L0()
322 EXPECT_EQ(false, descRes3.IsWritable()); in HWTEST_F_L0()
529 EXPECT_EQ(true, desc1.IsWritable()); in HWTEST_F_L0()
554 EXPECT_EQ(false, desc1.IsWritable()); in HWTEST_F_L0()
Djs_serializer_test.cpp173 EXPECT_TRUE(desc3.IsWritable()); in DescriptionTest()
178 EXPECT_FALSE(desc4.IsWritable()); in DescriptionTest()
Djs_typed_array_test.cpp1245 EXPECT_TRUE(descTo1.IsWritable() && descTo1.IsEnumerable() && descTo1.IsConfigurable()); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_object_test.cpp241 EXPECT_TRUE(!descRes.IsWritable()); in HWTEST_F_L0()
288 EXPECT_TRUE(!descRes.IsWritable()); in HWTEST_F_L0()
306 JSHandle<JSTaggedValue> writable(thread, JSTaggedValue(desc.IsWritable())); in HWTEST_F_L0()
Dbuiltins_reflect_test.cpp216 ASSERT_EQ(descRuler.IsWritable(), true); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/compiler/
Dstub.cpp849 result = IsWritable(attr); in ShouldCallSetter()
2530 Branch(IsWritable(attr), &writable, &notWritable); in SetPropertyByName()
2607 Branch(IsWritable(attr1), &writable1, &notWritable1); in SetPropertyByName()
2767 Branch(IsWritable(attr), &writable, &notWritable); in SetPropertyByNameWithOwn()
2845 Branch(IsWritable(attr1), &writable1, &notWritable1); in SetPropertyByNameWithOwn()
Dstub.h642 inline GateRef IsWritable(GateRef attr);
Dstub-inl.h1280 GateRef Stub::IsWritable(GateRef attr) in IsWritable() function
/ark/js_runtime/ecmascript/napi/
Djsnapi.cpp776 …PropertyDescriptor desc(thread, attribute.IsWritable(), attribute.IsEnumerable(), attribute.IsConf… in SetAccessorProperty()
824 property.SetWritable(desc.IsWritable()); in GetOwnProperty()
870 …PropertyDescriptor desc(thread, attribute.IsWritable(), attribute.IsEnumerable(), attribute.IsConf… in DefineProperty()
/ark/js_runtime/ecmascript/napi/include/
Djsnapi.h430 bool IsWritable() const in IsWritable() function
/ark/js_runtime/ecmascript/tooling/base/
Dpt_types.cpp713 debuggerProperty->writable_ = property.IsWritable(); in FromProperty()