Home
last modified time | relevance | path

Searched refs:prop_desc (Results 1 – 15 of 15) sorted by relevance

/third_party/jerryscript/tests/unit-core/
Dtest-api-property.c28 jerry_property_descriptor_t prop_desc; in main() local
29 jerry_init_property_descriptor_fields (&prop_desc); in main()
30 TEST_ASSERT (prop_desc.is_value_defined == false); in main()
31 TEST_ASSERT (jerry_value_is_undefined (prop_desc.value)); in main()
32 TEST_ASSERT (prop_desc.is_writable_defined == false); in main()
33 TEST_ASSERT (prop_desc.is_writable == false); in main()
34 TEST_ASSERT (prop_desc.is_enumerable_defined == false); in main()
35 TEST_ASSERT (prop_desc.is_enumerable == false); in main()
36 TEST_ASSERT (prop_desc.is_configurable_defined == false); in main()
37 TEST_ASSERT (prop_desc.is_configurable == false); in main()
[all …]
Dtest-symbol.c89 jerry_property_descriptor_t prop_desc; in main() local
90 TEST_ASSERT (jerry_get_own_property_descriptor (object, symbol_2, &prop_desc)); in main()
91 TEST_ASSERT (prop_desc.is_value_defined == true); in main()
92 TEST_ASSERT (value_2 == prop_desc.value); in main()
93 TEST_ASSERT (jerry_get_number_value (value_2) == jerry_get_number_value (prop_desc.value)); in main()
94 TEST_ASSERT (prop_desc.is_writable == true); in main()
95 TEST_ASSERT (prop_desc.is_enumerable == true); in main()
96 TEST_ASSERT (prop_desc.is_configurable == true); in main()
97 TEST_ASSERT (prop_desc.is_get_defined == false); in main()
98 TEST_ASSERT (jerry_value_is_undefined (prop_desc.getter)); in main()
[all …]
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-conversion.c562 ecma_property_descriptor_t prop_desc = ecma_make_empty_property_descriptor (); in ecma_op_from_property_descriptor() local
564 prop_desc.flags = (ECMA_PROP_IS_VALUE_DEFINED in ecma_op_from_property_descriptor()
576 JERRY_ASSERT ((prop_desc.flags & (ECMA_PROP_IS_VALUE_DEFINED | ECMA_PROP_IS_WRITABLE_DEFINED)) in ecma_op_from_property_descriptor()
580 prop_desc.value = src_prop_desc_p->value; in ecma_op_from_property_descriptor()
584 &prop_desc); in ecma_op_from_property_descriptor()
588 prop_desc.value = ecma_make_boolean_value (src_prop_desc_p->flags & ECMA_PROP_IS_WRITABLE); in ecma_op_from_property_descriptor()
592 &prop_desc); in ecma_op_from_property_descriptor()
606 prop_desc.value = ECMA_VALUE_UNDEFINED; in ecma_op_from_property_descriptor()
610 prop_desc.value = ecma_make_object_value (src_prop_desc_p->get_p); in ecma_op_from_property_descriptor()
615 &prop_desc); in ecma_op_from_property_descriptor()
[all …]
Decma-objects-arguments.c141 ecma_property_descriptor_t prop_desc = ecma_make_empty_property_descriptor (); in ecma_op_create_arguments_object() local
174 prop_desc = ecma_make_empty_property_descriptor (); in ecma_op_create_arguments_object()
176 prop_desc.flags = (ECMA_PROP_IS_GET_DEFINED in ecma_op_create_arguments_object()
181 prop_desc.set_p = thrower_p; in ecma_op_create_arguments_object()
182 prop_desc.get_p = thrower_p; in ecma_op_create_arguments_object()
186 &prop_desc); in ecma_op_create_arguments_object()
192 &prop_desc); in ecma_op_create_arguments_object()
Decma-objects.c1164 ecma_property_descriptor_t prop_desc; in ecma_op_object_put_apply_receiver() local
1168 &prop_desc); in ecma_op_object_put_apply_receiver()
1182 if (prop_desc.flags & (ECMA_PROP_IS_GET_DEFINED | ECMA_PROP_IS_SET_DEFINED) in ecma_op_object_put_apply_receiver()
1183 || !(prop_desc.flags & ECMA_PROP_IS_WRITABLE)) in ecma_op_object_put_apply_receiver()
1190 JERRY_ASSERT (prop_desc.flags & ECMA_PROP_IS_VALUE_DEFINED); in ecma_op_object_put_apply_receiver()
1191 ecma_free_value (prop_desc.value); in ecma_op_object_put_apply_receiver()
1192 prop_desc.value = ecma_copy_value (value); in ecma_op_object_put_apply_receiver()
1195 result = ecma_op_object_define_own_property (receiver_obj_p, property_name_p, &prop_desc); in ecma_op_object_put_apply_receiver()
1198 ecma_free_property_descriptor (&prop_desc); in ecma_op_object_put_apply_receiver()
Decma-array-object.c1163 ecma_property_descriptor_t prop_desc; in ecma_op_array_object_define_own_property() local
1165 prop_desc = *property_desc_p; in ecma_op_array_object_define_own_property()
1166 prop_desc.flags &= (uint16_t) ~ECMA_PROP_IS_THROW; in ecma_op_array_object_define_own_property()
1170 &prop_desc); in ecma_op_array_object_define_own_property()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-object.c379 ecma_property_descriptor_t prop_desc; in ecma_builtin_object_set_integrity_level() local
380 …a_value_t status = ecma_op_object_get_own_property_descriptor (obj_p, property_name_p, &prop_desc); in ecma_builtin_object_set_integrity_level()
394 prop_desc.flags &= (uint16_t) ~ECMA_PROP_IS_CONFIGURABLE; in ecma_builtin_object_set_integrity_level()
395 prop_desc.flags |= ECMA_PROP_IS_THROW; in ecma_builtin_object_set_integrity_level()
400 &prop_desc); in ecma_builtin_object_set_integrity_level()
402 ecma_free_property_descriptor (&prop_desc); in ecma_builtin_object_set_integrity_level()
422 ecma_property_descriptor_t prop_desc; in ecma_builtin_object_set_integrity_level() local
423 …a_value_t status = ecma_op_object_get_own_property_descriptor (obj_p, property_name_p, &prop_desc); in ecma_builtin_object_set_integrity_level()
438 if ((prop_desc.flags & (ECMA_PROP_IS_WRITABLE_DEFINED | ECMA_PROP_IS_WRITABLE)) in ecma_builtin_object_set_integrity_level()
441 prop_desc.flags &= (uint16_t) ~ECMA_PROP_IS_WRITABLE; in ecma_builtin_object_set_integrity_level()
[all …]
Decma-builtin-object-prototype.c153 ecma_property_descriptor_t prop_desc; in ecma_builtin_object_prototype_object_has_own_property() local
155 …ma_value_t status = ecma_proxy_object_get_own_property_descriptor (obj_p, prop_name_p, &prop_desc); in ecma_builtin_object_prototype_object_has_own_property()
159 ecma_free_property_descriptor (&prop_desc); in ecma_builtin_object_prototype_object_has_own_property()
212 ecma_property_descriptor_t prop_desc; in ecma_builtin_object_prototype_object_property_is_enumerable() local
213 ecma_value_t status = ecma_op_object_get_own_property_descriptor (obj_p, prop_name_p, &prop_desc); in ecma_builtin_object_prototype_object_property_is_enumerable()
220 bool is_enumerable = (prop_desc.flags & ECMA_PROP_IS_ENUMERABLE); in ecma_builtin_object_prototype_object_property_is_enumerable()
222 ecma_free_property_descriptor (&prop_desc); in ecma_builtin_object_prototype_object_property_is_enumerable()
Decma-builtin-reflect.c272 ecma_property_descriptor_t prop_desc; in ecma_builtin_reflect_dispatch_routine() local
273 ecma_value_t conv_result = ecma_op_to_property_descriptor (arguments_list[2], &prop_desc); in ecma_builtin_reflect_dispatch_routine()
283 &prop_desc); in ecma_builtin_reflect_dispatch_routine()
286 ecma_free_property_descriptor (&prop_desc); in ecma_builtin_reflect_dispatch_routine()
Decma-builtin-function-prototype.c317 ecma_property_descriptor_t prop_desc; in ecma_builtin_function_prototype_object_bind() local
320 &prop_desc); in ecma_builtin_function_prototype_object_bind()
331 ecma_free_property_descriptor (&prop_desc); in ecma_builtin_function_prototype_object_bind()
Decma-builtin-helpers.c825 ecma_property_descriptor_t prop_desc; in ecma_builtin_helper_def_prop() local
827 prop_desc.flags = (uint16_t) (ECMA_NAME_DATA_PROPERTY_DESCRIPTOR_BITS | opts); in ecma_builtin_helper_def_prop()
829 prop_desc.value = value; in ecma_builtin_helper_def_prop()
833 &prop_desc); in ecma_builtin_helper_def_prop()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-method-register.c46 jerry_property_descriptor_t prop_desc; in freeze_property() local
47 jerry_init_property_descriptor_fields (&prop_desc); in freeze_property()
48 prop_desc.is_configurable_defined = true; in freeze_property()
49 prop_desc.is_configurable = false; in freeze_property()
52 jerry_value_t return_value = jerry_define_own_property (target_obj, prop_name, &prop_desc); in freeze_property()
57 jerry_free_property_descriptor_fields (&prop_desc); in freeze_property()
/third_party/jerryscript/jerry-core/api/
Djerry.c2152 ecma_property_descriptor_t prop_desc; in jerry_has_own_property() local
2154 …ma_value_t status = ecma_proxy_object_get_own_property_descriptor (obj_p, prop_name_p, &prop_desc); in jerry_has_own_property()
2158 ecma_free_property_descriptor (&prop_desc); in jerry_has_own_property()
2610 ecma_property_descriptor_t prop_desc = ecma_make_empty_property_descriptor (); in jerry_define_own_property() local
2636 prop_desc.value = prop_desc_p->value; in jerry_define_own_property()
2658 prop_desc.get_p = ecma_get_object_from_value (getter); in jerry_define_own_property()
2678 prop_desc.set_p = ecma_get_object_from_value (setter); in jerry_define_own_property()
2686 prop_desc.flags |= (uint16_t) (flags | ECMA_PROP_IS_THROW); in jerry_define_own_property()
2690 &prop_desc); in jerry_define_own_property()
2712 ecma_property_descriptor_t prop_desc; in jerry_get_own_property_descriptor() local
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers.c1179 ecma_property_descriptor_t prop_desc; in ecma_make_empty_property_descriptor() local
1181 prop_desc.flags = 0; in ecma_make_empty_property_descriptor()
1182 prop_desc.value = ECMA_VALUE_UNDEFINED; in ecma_make_empty_property_descriptor()
1183 prop_desc.get_p = NULL; in ecma_make_empty_property_descriptor()
1184 prop_desc.set_p = NULL; in ecma_make_empty_property_descriptor()
1186 return prop_desc; in ecma_make_empty_property_descriptor()
/third_party/jerryscript/docs/
D02.API-REFERENCE.md5667 jerry_property_descriptor_t prop_desc;
5668 jerry_init_property_descriptor_fields (&prop_desc);
5670 ... // usage of prop_desc
5672 jerry_free_property_descriptor_fields (&prop_desc);
5728 jerry_property_descriptor_t prop_desc;
5729 jerry_init_property_descriptor_fields (&prop_desc);
5740 prop_desc.is_value_defined = true;
5743 prop_desc.value = value_to_set;
5747 jerry_value_t return_value = jerry_define_own_property (global_obj_val, prop_name, &prop_desc);
5758 jerry_free_property_descriptor_fields (&prop_desc);
[all …]