Home
last modified time | relevance | path

Searched refs:property_p (Results 1 – 19 of 19) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers.c418 ecma_property_t *property_p = first_property_p->types + 0; in ecma_create_property() local
420 JERRY_ASSERT (ECMA_PROPERTY_VALUE_PTR (property_p) == first_property_pair_p->values + 0); in ecma_create_property()
424 *out_prop_p = property_p; in ecma_create_property()
483 ecma_property_t *property_p = first_property_pair_p->header.types + 1; in ecma_create_property() local
485 JERRY_ASSERT (ECMA_PROPERTY_VALUE_PTR (property_p) == first_property_pair_p->values + 1); in ecma_create_property()
489 *out_prop_p = property_p; in ecma_create_property()
588 ecma_property_t *property_p = NULL; in ecma_find_named_property() local
591 property_p = ecma_lcache_lookup (obj_p, name_p); in ecma_find_named_property()
592 if (property_p != NULL) in ecma_find_named_property()
594 return property_p; in ecma_find_named_property()
[all …]
Decma-helpers-external-pointers.c48 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_create_native_pointer_property() local
50 bool is_new = (property_p == NULL); in ecma_create_native_pointer_property()
54 if (property_p == NULL) in ecma_create_native_pointer_property()
57 … ecma_create_named_data_property (obj_p, name_p, ECMA_PROPERTY_CONFIGURABLE_WRITABLE, &property_p); in ecma_create_native_pointer_property()
59 ECMA_CONVERT_DATA_PROPERTY_TO_INTERNAL_PROPERTY (property_p); in ecma_create_native_pointer_property()
67 ecma_property_value_t *value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_create_native_pointer_property()
125 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_get_native_pointer_value() local
127 if (property_p == NULL) in ecma_get_native_pointer_value()
132 ecma_property_value_t *value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_get_native_pointer_value()
173 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_delete_native_pointer_property() local
[all …]
Decma-property-hashmap.c204 ecma_property_header_t *property_p = ECMA_GET_NON_NULL_POINTER (ecma_property_header_t, in ecma_property_hashmap_free() local
207 JERRY_ASSERT (property_p->types[0] == ECMA_PROPERTY_TYPE_HASHMAP); in ecma_property_hashmap_free()
209 ecma_property_hashmap_t *hashmap_p = (ecma_property_hashmap_t *) property_p; in ecma_property_hashmap_free()
211 object_p->u1.property_list_cp = property_p->next_property_cp; in ecma_property_hashmap_free()
300 ecma_property_t *property_p) /**< property */ in ecma_property_hashmap_delete() argument
315 uint32_t entry_index = ecma_string_get_property_name_hash (*property_p, name_cp); in ecma_property_hashmap_delete()
342 if ((property_pair_p->header.types + offset) == property_p) in ecma_property_hashmap_delete()
442 ecma_property_t *property_p = property_pair_p->header.types + offset; in ecma_property_hashmap_find() local
444 JERRY_ASSERT (ECMA_PROPERTY_IS_NAMED_PROPERTY (*property_p)); in ecma_property_hashmap_find()
447 && ECMA_PROPERTY_GET_NAME_TYPE (*property_p) == prop_name_type) in ecma_property_hashmap_find()
[all …]
Decma-globals.h430 #define ECMA_CONVERT_DATA_PROPERTY_TO_INTERNAL_PROPERTY(property_p) \ argument
431 …*(property_p) = (uint8_t) (*(property_p) + (ECMA_PROPERTY_TYPE_INTERNAL - ECMA_PROPERTY_TYPE_NAMED…
436 #define ECMA_CONVERT_INTERNAL_PROPERTY_TO_DATA_PROPERTY(property_p) \ argument
437 …*(property_p) = (uint8_t) (*(property_p) - (ECMA_PROPERTY_TYPE_INTERNAL - ECMA_PROPERTY_TYPE_NAMED…
581 #define ECMA_PROPERTY_VALUE_ADD_OFFSET(property_p) \ argument
582 ((uintptr_t) ((((uint8_t *) (property_p)) + (sizeof (ecma_property_value_t) * 2 - 1))))
587 #define ECMA_PROPERTY_VALUE_DATA_PTR(property_p) \ argument
588 (ECMA_PROPERTY_VALUE_ADD_OFFSET (property_p) & ~(sizeof (ecma_property_value_t) - 1))
594 #define ECMA_PROPERTY_VALUE_PTR(property_p) \ argument
595 ((ecma_property_value_t *) ECMA_PROPERTY_VALUE_DATA_PTR (property_p))
[all …]
Decma-helpers.h451 …ecma_free_property (ecma_object_t *object_p, jmem_cpointer_t name_cp, ecma_property_t *property_p);
465 void ecma_set_property_writable_attr (ecma_property_t *property_p, bool is_writable);
467 void ecma_set_property_enumerable_attr (ecma_property_t *property_p, bool is_enumerable);
469 void ecma_set_property_configurable_attr (ecma_property_t *property_p, bool is_configurable);
472 bool ecma_is_property_lcached (ecma_property_t *property_p);
473 void ecma_set_property_lcached (ecma_property_t *property_p, bool is_lcached);
Decma-gc.c786 ecma_gc_free_native_pointer (ecma_property_t *property_p) /**< property */ in ecma_gc_free_native_pointer() argument
788 JERRY_ASSERT (property_p != NULL); in ecma_gc_free_native_pointer()
790 ecma_property_value_t *value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_gc_free_native_pointer()
970 ecma_property_t *property_p = (ecma_property_t *) (prop_iter_p->types + i); in ecma_gc_free_properties() local
973 if (ECMA_PROPERTY_GET_NAME_TYPE (*property_p) == ECMA_DIRECT_STRING_MAGIC) in ecma_gc_free_properties()
978 ecma_gc_free_native_pointer (property_p); in ecma_gc_free_properties()
984 … ECMA_PROPERTY_VALUE_PTR (property_p)->value); in ecma_gc_free_properties()
1004 ecma_free_property (object_p, name_cp, property_p); in ecma_gc_free_properties()
Decma-property-hashmap.h73 ecma_property_t *property_p);
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-get-put-value.c60 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_get_value_lex_env_base() local
62 if (property_p != NULL) in ecma_op_get_value_lex_env_base()
65 ecma_property_value_t *property_value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_op_get_value_lex_env_base()
214 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_put_value_lex_env_base() local
216 if (property_p != NULL) in ecma_op_put_value_lex_env_base()
218 if (ecma_is_property_writable (*property_p)) in ecma_op_put_value_lex_env_base()
220 ecma_property_value_t *property_value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_op_put_value_lex_env_base()
233 else if (ecma_is_property_enumerable (*property_p)) in ecma_op_put_value_lex_env_base()
Decma-reference.c280 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_resolve_reference_value() local
282 if (property_p != NULL) in ecma_op_resolve_reference_value()
284 ecma_property_value_t *property_value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_op_resolve_reference_value()
309 ecma_property_t *property_p = ecma_lcache_lookup (binding_obj_p, name_p); in ecma_op_resolve_reference_value() local
311 if (property_p != NULL) in ecma_op_resolve_reference_value()
313 ecma_property_value_t *prop_value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_op_resolve_reference_value()
315 if (ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA) in ecma_op_resolve_reference_value()
320 JERRY_ASSERT (ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDACCESSOR); in ecma_op_resolve_reference_value()
Decma-objects.c242 ecma_property_t *property_p = ecma_find_named_property (object_p, property_name_p); in ecma_op_object_get_own_property() local
244 if (property_p == NULL) in ecma_op_object_get_own_property()
250 property_p = ecma_builtin_routine_try_to_instantiate_property (object_p, property_name_p); in ecma_op_object_get_own_property()
254 property_p = ecma_builtin_try_to_instantiate_property (object_p, property_name_p); in ecma_op_object_get_own_property()
288 property_p = ecma_op_function_try_to_lazy_instantiate_property (object_p, property_name_p); in ecma_op_object_get_own_property()
292property_p = ecma_op_external_function_try_to_lazy_instantiate_property (object_p, property_name_p… in ecma_op_object_get_own_property()
296property_p = ecma_op_bound_function_try_to_lazy_instantiate_property (object_p, property_name_p); in ecma_op_object_get_own_property()
299 if (property_p == NULL) in ecma_op_object_get_own_property()
331 ECMA_PROPERTY_VALUE_PTR (property_p), in ecma_op_object_get_own_property()
341 ((ecma_extended_property_ref_t *) property_ref_p)->property_p = property_p; in ecma_op_object_get_own_property()
[all …]
Decma-lex-env.c138 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_has_binding() local
140 return ecma_make_boolean_value (property_p != NULL); in ecma_op_has_binding()
233 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_set_mutable_binding() local
235 JERRY_ASSERT (property_p != NULL in ecma_op_set_mutable_binding()
236 && ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA); in ecma_op_set_mutable_binding()
238 if (ecma_is_property_writable (*property_p)) in ecma_op_set_mutable_binding()
240 … ecma_named_data_property_assign_value (lex_env_p, ECMA_PROPERTY_VALUE_PTR (property_p), value); in ecma_op_set_mutable_binding()
243 else if (ecma_is_property_enumerable (*property_p)) in ecma_op_set_mutable_binding()
Decma-container-object.c703 ecma_property_t *property_p = ecma_find_named_property (key_p, weak_refs_string_p); in ecma_op_container_set_weak() local
706 if (property_p == NULL) in ecma_op_container_set_weak()
711 &property_p); in ecma_op_container_set_weak()
712 ECMA_CONVERT_DATA_PROPERTY_TO_INTERNAL_PROPERTY (property_p); in ecma_op_container_set_weak()
718 …ECMA_GET_INTERNAL_VALUE_POINTER (ecma_collection_t, (ECMA_PROPERTY_VALUE_PTR (property_p)->value)); in ecma_op_container_set_weak()
983 ecma_property_t *property_p = ecma_find_named_property (object_p, weak_refs_string_p); in ecma_op_container_unref_weak() local
984 JERRY_ASSERT (property_p != NULL); in ecma_op_container_unref_weak()
987 … ECMA_PROPERTY_VALUE_PTR (property_p)->value); in ecma_op_container_unref_weak()
1066 ecma_property_t *property_p = ecma_find_named_property (iter_obj_p, prop_name_p); in ecma_op_iterator_get_index() local
1067 ecma_property_value_t *value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in ecma_op_iterator_get_index()
[all …]
Decma-objects-general.c403 …ecma_extended_property_ref_t ext_property_ref = { .property_ref.value_p = NULL, .property_p = NULL… in ecma_op_general_object_define_own_property()
580 ecma_property_t prop_flags = *(ext_property_ref.property_p); in ecma_op_general_object_define_own_property()
583 *(ext_property_ref.property_p) = prop_flags; in ecma_op_general_object_define_own_property()
589 …JERRY_ASSERT (ECMA_PROPERTY_GET_TYPE (*ext_property_ref.property_p) == ECMA_PROPERTY_TYPE_NAMEDDAT… in ecma_op_general_object_define_own_property()
600 …ecma_set_property_writable_attr (ext_property_ref.property_p, (property_desc_p->flags & ECMA_PROP_… in ecma_op_general_object_define_own_property()
605 …JERRY_ASSERT (ECMA_PROPERTY_GET_TYPE (*ext_property_ref.property_p) == ECMA_PROPERTY_TYPE_NAMEDACC… in ecma_op_general_object_define_own_property()
624 ecma_set_property_enumerable_attr (ext_property_ref.property_p, in ecma_op_general_object_define_own_property()
630 ecma_set_property_configurable_attr (ext_property_ref.property_p, in ecma_op_general_object_define_own_property()
Decma-promise-object.c174 ecma_property_t *property_p = ecma_find_named_property (resolver_p, str_already_resolved_p); in ecma_is_resolver_already_called() local
176 if (property_p == NULL) in ecma_is_resolver_already_called()
181 JERRY_ASSERT (ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA); in ecma_is_resolver_already_called()
183 ecma_value_t already_resolved = ECMA_PROPERTY_VALUE_PTR (property_p)->value; in ecma_is_resolver_already_called()
/third_party/jerryscript/jerry-core/vm/
Dvm.c110 ecma_property_t *property_p = ecma_lcache_lookup (object_p, property_name_p); in vm_op_get_value() local
112 if (property_p != NULL && in vm_op_get_value()
113 ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA) in vm_op_get_value()
115 return ecma_fast_copy_value (ECMA_PROPERTY_VALUE_PTR (property_p)->value); in vm_op_get_value()
167 ecma_string_t *property_p; in vm_op_set_value() local
187 property_p = ecma_op_to_string (property); in vm_op_set_value()
190 if (JERRY_UNLIKELY (property_p == NULL)) in vm_op_set_value()
198 property_p = ecma_get_prop_name_from_value (property); in vm_op_set_value()
208 property_p, in vm_op_set_value()
221 property_p = ecma_op_to_string (property); in vm_op_set_value()
[all …]
Dopcodes.c136 ecma_property_t *property_p = ecma_find_named_property (object_p, accessor_name_p); in opfunc_set_accessor() local
138 if (property_p != NULL in opfunc_set_accessor()
139 && ECMA_PROPERTY_GET_TYPE (*property_p) != ECMA_PROPERTY_TYPE_NAMEDACCESSOR) in opfunc_set_accessor()
141 ecma_delete_property (object_p, ECMA_PROPERTY_VALUE_PTR (property_p)); in opfunc_set_accessor()
142 property_p = NULL; in opfunc_set_accessor()
145 if (property_p == NULL) in opfunc_set_accessor()
171 ECMA_PROPERTY_VALUE_PTR (property_p), in opfunc_set_accessor()
179 ECMA_PROPERTY_VALUE_PTR (property_p), in opfunc_set_accessor()
/third_party/jerryscript/jerry-core/api/
Djerry.c2195 ecma_property_t *property_p = ecma_find_named_property (obj_p, internal_string_p); in jerry_has_internal_property() local
2197 if (property_p == NULL) in jerry_has_internal_property()
2202 …ct_t *internal_object_p = ecma_get_object_from_value (ECMA_PROPERTY_VALUE_PTR (property_p)->value); in jerry_has_internal_property()
2203property_p = ecma_find_named_property (internal_object_p, ecma_get_prop_name_from_value (prop_name… in jerry_has_internal_property()
2205 return property_p != NULL; in jerry_has_internal_property()
2302 ecma_property_t *property_p = ecma_find_named_property (obj_p, internal_string_p); in jerry_delete_internal_property() local
2304 if (property_p == NULL) in jerry_delete_internal_property()
2309 …ct_t *internal_object_p = ecma_get_object_from_value (ECMA_PROPERTY_VALUE_PTR (property_p)->value); in jerry_delete_internal_property()
2310property_p = ecma_find_named_property (internal_object_p, ecma_get_prop_name_from_value (prop_name… in jerry_delete_internal_property()
2312 if (property_p == NULL) in jerry_delete_internal_property()
[all …]
/third_party/jerryscript/jerry-core/debugger/
Ddebugger.c1535 ecma_property_t *property_p; in jerry_debugger_exception_object_to_string() local
1536 property_p = ecma_find_named_property (ecma_get_object_from_value (exception_obj_value), in jerry_debugger_exception_object_to_string()
1539 if (property_p == NULL in jerry_debugger_exception_object_to_string()
1540 || ECMA_PROPERTY_GET_TYPE (*property_p) != ECMA_PROPERTY_TYPE_NAMEDDATA) in jerry_debugger_exception_object_to_string()
1545 ecma_property_value_t *prop_value_p = ECMA_PROPERTY_VALUE_PTR (property_p); in jerry_debugger_exception_object_to_string()
/third_party/jerryscript/jerry-core/parser/js/
Djs-scanner-util.c1326 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in scanner_scope_find_let_declaration() local
1328 if (property_p != NULL && ecma_is_property_enumerable (*property_p)) in scanner_scope_find_let_declaration()
1341 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in scanner_scope_find_let_declaration() local
1343 if (property_p != NULL && ecma_is_property_enumerable (*property_p)) in scanner_scope_find_let_declaration()