Home
last modified time | relevance | path

Searched refs:object_p (Results 1 – 25 of 52) sorted by relevance

123

/third_party/jerryscript/jerry-core/ecma/base/
Decma-gc.c75 ecma_gc_is_object_visited (ecma_object_t *object_p) /**< object */ in ecma_gc_is_object_visited() argument
77 JERRY_ASSERT (object_p != NULL); in ecma_gc_is_object_visited()
79 return (object_p->type_flags_refs < ECMA_OBJECT_NON_VISITED); in ecma_gc_is_object_visited()
85 static void ecma_gc_mark (ecma_object_t *object_p);
91 ecma_gc_set_object_visited (ecma_object_t *object_p) /**< object */ in ecma_gc_set_object_visited() argument
93 if (object_p->type_flags_refs >= ECMA_OBJECT_NON_VISITED) in ecma_gc_set_object_visited()
100object_p->type_flags_refs = (uint16_t) (object_p->type_flags_refs & (ECMA_OBJECT_REF_ONE - 1)); in ecma_gc_set_object_visited()
101 ecma_gc_mark (object_p); in ecma_gc_set_object_visited()
107object_p->type_flags_refs = (uint16_t) (object_p->type_flags_refs & ((ECMA_OBJECT_REF_ONE << 1) - … in ecma_gc_set_object_visited()
108 JERRY_ASSERT (object_p->type_flags_refs >= ECMA_OBJECT_REF_ONE); in ecma_gc_set_object_visited()
[all …]
Decma-helpers.c173 ecma_is_lexical_environment (const ecma_object_t *object_p) /**< object or lexical environment */ in ecma_is_lexical_environment() argument
175 JERRY_ASSERT (object_p != NULL); in ecma_is_lexical_environment()
177 …uint32_t full_type = object_p->type_flags_refs & (ECMA_OBJECT_FLAG_BUILT_IN_OR_LEXICAL_ENV | ECMA_… in ecma_is_lexical_environment()
186 ecma_op_ordinary_object_set_extensible (ecma_object_t *object_p) /**< object */ in ecma_op_ordinary_object_set_extensible() argument
188 JERRY_ASSERT (object_p != NULL); in ecma_op_ordinary_object_set_extensible()
189 JERRY_ASSERT (!ecma_is_lexical_environment (object_p)); in ecma_op_ordinary_object_set_extensible()
191 object_p->type_flags_refs = (uint16_t) (object_p->type_flags_refs | ECMA_OBJECT_FLAG_EXTENSIBLE); in ecma_op_ordinary_object_set_extensible()
200 ecma_get_object_type (const ecma_object_t *object_p) /**< object */ in ecma_get_object_type() argument
202 JERRY_ASSERT (object_p != NULL); in ecma_get_object_type()
203 JERRY_ASSERT (!ecma_is_lexical_environment (object_p)); in ecma_get_object_type()
[all …]
Decma-property-hashmap.c73 ecma_property_hashmap_create (ecma_object_t *object_p) /**< object */ in ecma_property_hashmap_create() argument
80 jmem_cpointer_t prop_iter_cp = object_p->u1.property_list_cp; in ecma_property_hashmap_create()
132 hashmap_p->header.next_property_cp = object_p->u1.property_list_cp; in ecma_property_hashmap_create()
141 prop_iter_cp = object_p->u1.property_list_cp; in ecma_property_hashmap_create()
142 ECMA_SET_NON_NULL_POINTER (object_p->u1.property_list_cp, hashmap_p); in ecma_property_hashmap_create()
199 ecma_property_hashmap_free (ecma_object_t *object_p) /**< object */ in ecma_property_hashmap_free() argument
202 JERRY_ASSERT (object_p->u1.property_list_cp != JMEM_CP_NULL); in ecma_property_hashmap_free()
205 object_p->u1.property_list_cp); in ecma_property_hashmap_free()
211 object_p->u1.property_list_cp = property_p->next_property_cp; in ecma_property_hashmap_free()
221 ecma_property_hashmap_insert (ecma_object_t *object_p, /**< object */ in ecma_property_hashmap_insert() argument
[all …]
Decma-lcache.c88 ecma_lcache_insert (const ecma_object_t *object_p, /**< object */ in ecma_lcache_insert() argument
92 JERRY_ASSERT (object_p != NULL); in ecma_lcache_insert()
100 ECMA_SET_NON_NULL_POINTER (object_cp, object_p); in ecma_lcache_insert()
142 ecma_lcache_lookup (const ecma_object_t *object_p, /**< object */ in ecma_lcache_lookup() argument
145 JERRY_ASSERT (object_p != NULL); in ecma_lcache_lookup()
149 ECMA_SET_NON_NULL_POINTER (object_cp, object_p); in ecma_lcache_lookup()
188 ecma_lcache_invalidate (const ecma_object_t *object_p, /**< object */ in ecma_lcache_invalidate() argument
192 JERRY_ASSERT (object_p != NULL); in ecma_lcache_invalidate()
199 ECMA_SET_NON_NULL_POINTER (object_cp, object_p); in ecma_lcache_invalidate()
Decma-gc.h29 void ecma_init_gc_info (ecma_object_t *object_p);
30 void ecma_ref_object (ecma_object_t *object_p);
31 void ecma_deref_object (ecma_object_t *object_p);
32 void ecma_gc_free_properties (ecma_object_t *object_p);
Decma-property-hashmap.h68 void ecma_property_hashmap_create (ecma_object_t *object_p);
69 void ecma_property_hashmap_free (ecma_object_t *object_p);
70 void ecma_property_hashmap_insert (ecma_object_t *object_p, ecma_string_t *name_p,
72 ecma_property_hashmap_delete_status ecma_property_hashmap_delete (ecma_object_t *object_p, jmem_cpo…
Decma-helpers.h256 ecma_value_t JERRY_ATTR_PURE ecma_make_object_value (const ecma_object_t *object_p);
430 bool JERRY_ATTR_PURE ecma_is_lexical_environment (const ecma_object_t *object_p);
431 void ecma_op_ordinary_object_set_extensible (ecma_object_t *object_p);
432 ecma_object_type_t JERRY_ATTR_PURE ecma_get_object_type (const ecma_object_t *object_p);
433 bool JERRY_ATTR_PURE ecma_get_object_is_builtin (const ecma_object_t *object_p);
434 void ecma_set_object_is_builtin (ecma_object_t *object_p);
435 uint8_t ecma_get_object_builtin_id (ecma_object_t *object_p);
436 …a_lexical_environment_type_t JERRY_ATTR_PURE ecma_get_lex_env_type (const ecma_object_t *object_p);
437 ecma_object_t JERRY_ATTR_PURE *ecma_get_lex_env_binding_object (const ecma_object_t *object_p);
441 ecma_create_named_data_property (ecma_object_t *object_p, ecma_string_t *name_p, uint8_t prop_attri…
[all …]
Decma-lcache.h27 void ecma_lcache_insert (const ecma_object_t *object_p, const jmem_cpointer_t name_cp, ecma_propert…
28 ecma_property_t *ecma_lcache_lookup (const ecma_object_t *object_p, const ecma_string_t *prop_name_…
29 void ecma_lcache_invalidate (const ecma_object_t *object_p, const jmem_cpointer_t name_cp, ecma_pro…
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-array-object.c78 ecma_object_t *object_p = ecma_create_object (array_prototype_object_p, in ecma_op_new_array_object() local
88 ecma_extended_object_t *ext_obj_p = (ecma_extended_object_t *) object_p; in ecma_op_new_array_object()
93 return object_p; in ecma_op_new_array_object()
103 ecma_op_object_is_fast_array (ecma_object_t *object_p) /**< ecma-object */ in ecma_op_object_is_fast_array() argument
105 return (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_ARRAY && in ecma_op_object_is_fast_array()
106 ecma_op_array_is_fast_array ((ecma_extended_object_t *) object_p)); in ecma_op_object_is_fast_array()
145 ecma_object_t *object_p = ecma_op_new_array_object (length); in ecma_op_new_fast_array_object() local
146 ecma_extended_object_t *ext_obj_p = (ecma_extended_object_t *) object_p; in ecma_op_new_fast_array_object()
151 JERRY_ASSERT (object_p->u1.property_list_cp == JMEM_CP_NULL); in ecma_op_new_fast_array_object()
158 ECMA_SET_POINTER (object_p->u1.property_list_cp, values_p); in ecma_op_new_fast_array_object()
[all …]
Decma-objects.h30 ecma_property_t ecma_op_object_get_own_property (ecma_object_t *object_p, ecma_string_t *property_n…
32 bool ecma_op_ordinary_object_has_own_property (ecma_object_t *object_p, ecma_string_t *property_nam…
33 ecma_value_t ecma_op_object_has_property (ecma_object_t *object_p, ecma_string_t *property_name_p);
34 ecma_value_t ecma_op_object_find_own (ecma_value_t base_value, ecma_object_t *object_p, ecma_string…
35 ecma_value_t ecma_op_object_find (ecma_object_t *object_p, ecma_string_t *property_name_p);
36 ecma_value_t ecma_op_object_find_by_uint32_index (ecma_object_t *object_p, uint32_t index);
37 ecma_value_t ecma_op_object_find_by_number_index (ecma_object_t *object_p, ecma_number_t index);
38 ecma_value_t ecma_op_object_get_own_data_prop (ecma_object_t *object_p, ecma_string_t *property_nam…
39 ecma_value_t ecma_op_object_get (ecma_object_t *object_p, ecma_string_t *property_name_p);
40 ecma_value_t ecma_op_object_get_with_receiver (ecma_object_t *object_p, ecma_string_t *property_nam…
[all …]
Decma-arraybuffer-object.c50 ecma_object_t *object_p = ecma_create_object (prototype_obj_p, in ecma_arraybuffer_new_object() local
54 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_arraybuffer_new_object()
62 return object_p; in ecma_arraybuffer_new_object()
81 ecma_object_t *object_p = ecma_create_object (prototype_obj_p, in ecma_arraybuffer_new_object_external() local
85 ecma_arraybuffer_external_info *array_object_p = (ecma_arraybuffer_external_info *) object_p; in ecma_arraybuffer_new_object_external()
93 return object_p; in ecma_arraybuffer_new_object_external()
175 ecma_arraybuffer_get_length (ecma_object_t *object_p) /**< pointer to the ArrayBuffer object */ in ecma_arraybuffer_get_length() argument
177 JERRY_ASSERT (ecma_object_class_is (object_p, LIT_MAGIC_STRING_ARRAY_BUFFER_UL)); in ecma_arraybuffer_get_length()
179 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_arraybuffer_get_length()
189 ecma_arraybuffer_get_buffer (ecma_object_t *object_p) /**< pointer to the ArrayBuffer object */ in ecma_arraybuffer_get_buffer() argument
[all …]
Decma-objects.c72 ecma_op_object_get_own_property (ecma_object_t *object_p, /**< the object */ in ecma_op_object_get_own_property() argument
77 JERRY_ASSERT (object_p != NULL in ecma_op_object_get_own_property()
78 && !ecma_is_lexical_environment (object_p)); in ecma_op_object_get_own_property()
80 JERRY_ASSERT (!ECMA_OBJECT_IS_PROXY (object_p)); in ecma_op_object_get_own_property()
87 ecma_object_type_t type = ecma_get_object_type (object_p); in ecma_op_object_get_own_property()
93 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_object_get_own_property()
135 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_object_get_own_property()
155 … ecma_value_t *values_p = ECMA_GET_NON_NULL_POINTER (ecma_value_t, object_p->u1.property_list_cp); in ecma_op_object_get_own_property()
180 if (ecma_object_is_typedarray (object_p)) in ecma_op_object_get_own_property()
193 ecma_typedarray_info_t info = ecma_typedarray_get_info (object_p); in ecma_op_object_get_own_property()
[all …]
Decma-array-object.h71 ecma_op_object_is_fast_array (ecma_object_t *object_p);
80 ecma_fast_array_extend (ecma_object_t *object_p, uint32_t new_lengt);
83 ecma_fast_array_set_property (ecma_object_t *object_p, uint32_t index, ecma_value_t value);
86 ecma_array_object_delete_property (ecma_object_t *object_p, ecma_string_t *property_name_p,
90 ecma_delete_fast_array_properties (ecma_object_t *object_p, uint32_t new_length);
93 ecma_fast_array_get_property_names (ecma_object_t *object_p, uint32_t opts);
96 ecma_fast_array_convert_to_normal (ecma_object_t *object_p);
113 ecma_op_array_object_set_length (ecma_object_t *object_p, ecma_value_t new_value, uint32_t flags);
116 ecma_op_array_object_define_own_property (ecma_object_t *object_p, ecma_string_t *property_name_p,
Decma-function-object.c1310 ecma_op_lazy_instantiate_prototype_object (ecma_object_t *object_p) /**< the function object */ in ecma_op_lazy_instantiate_prototype_object() argument
1312 JERRY_ASSERT (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_FUNCTION in ecma_op_lazy_instantiate_prototype_object()
1313 || ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_EXTERNAL_FUNCTION); in ecma_op_lazy_instantiate_prototype_object()
1321 if (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_FUNCTION) in ecma_op_lazy_instantiate_prototype_object()
1323 …led_code_t *byte_code_p = ecma_op_function_get_compiled_code ((ecma_extended_object_t *) object_p); in ecma_op_lazy_instantiate_prototype_object()
1355 constructor_prop_value_p->value = ecma_make_object_value (object_p); in ecma_op_lazy_instantiate_prototype_object()
1361 prototype_prop_value_p = ecma_create_named_data_property (object_p, in ecma_op_lazy_instantiate_prototype_object()
1385 ecma_op_function_try_to_lazy_instantiate_property (ecma_object_t *object_p, /**< the function objec… in ecma_op_function_try_to_lazy_instantiate_property() argument
1388 JERRY_ASSERT (!ecma_get_object_is_builtin (object_p)); in ecma_op_function_try_to_lazy_instantiate_property()
1393 ecma_extended_object_t *ext_func_p = (ecma_extended_object_t *) object_p; in ecma_op_function_try_to_lazy_instantiate_property()
[all …]
Decma-function-object.h82 ecma_op_function_try_to_lazy_instantiate_property (ecma_object_t *object_p, ecma_string_t *property…
85 ecma_op_external_function_try_to_lazy_instantiate_property (ecma_object_t *object_p, ecma_string_t …
88 ecma_op_bound_function_try_to_lazy_instantiate_property (ecma_object_t *object_p, ecma_string_t *pr…
91 ecma_op_function_list_lazy_property_names (ecma_object_t *object_p,
97 ecma_op_external_function_list_lazy_property_names (ecma_object_t *object_p,
103 ecma_op_bound_function_list_lazy_property_names (ecma_object_t *object_p,
Decma-symbol-object.c88 ecma_object_t *object_p = ecma_create_object (prototype_obj_p, in ecma_op_create_symbol_object() local
92 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_symbol_object()
96 return ecma_make_object_value (object_p); in ecma_op_create_symbol_object()
159 ecma_object_t *object_p = ecma_get_object_from_value (this_arg); in ecma_symbol_to_string_helper() local
161 if (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_CLASS) in ecma_symbol_to_string_helper()
163 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_symbol_to_string_helper()
Decma-container-object.c192 ecma_op_container_free_weakset_entries (ecma_object_t *object_p, /**< object pointer */ in ecma_op_container_free_weakset_entries() argument
195 JERRY_ASSERT (object_p != NULL); in ecma_op_container_free_weakset_entries()
210 …op_container_unref_weak (ecma_get_object_from_value (*entry_p), ecma_make_object_value (object_p)); in ecma_op_container_free_weakset_entries()
211 ecma_op_container_remove_weak_entry (object_p, *entry_p); in ecma_op_container_free_weakset_entries()
223 ecma_op_container_free_weakmap_entries (ecma_object_t *object_p, /**< object pointer */ in ecma_op_container_free_weakmap_entries() argument
226 JERRY_ASSERT (object_p != NULL); in ecma_op_container_free_weakmap_entries()
241 …ontainer_unref_weak (ecma_get_object_from_value (entry_p->key), ecma_make_object_value (object_p)); in ecma_op_container_free_weakmap_entries()
242 ecma_op_container_remove_weak_entry (object_p, entry_p->key); in ecma_op_container_free_weakmap_entries()
313 ecma_op_container_free_entries (ecma_object_t *object_p) /**< collection object pointer */ in ecma_op_container_free_entries() argument
315 JERRY_ASSERT (object_p != NULL); in ecma_op_container_free_entries()
[all …]
Decma-objects-general.c361 ecma_op_general_object_define_own_property (ecma_object_t *object_p, /**< the object */ in ecma_op_general_object_define_own_property() argument
367 if (ECMA_OBJECT_IS_PROXY (object_p)) in ecma_op_general_object_define_own_property()
369 return ecma_proxy_object_define_own_property (object_p, property_name_p, property_desc_p); in ecma_op_general_object_define_own_property()
373 JERRY_ASSERT (object_p != NULL in ecma_op_general_object_define_own_property()
374 && !ecma_is_lexical_environment (object_p)); in ecma_op_general_object_define_own_property()
375 JERRY_ASSERT (!ecma_op_object_is_fast_array (object_p)); in ecma_op_general_object_define_own_property()
406 current_prop = ecma_op_object_get_own_property (object_p, in ecma_op_general_object_define_own_property()
414 if (!ecma_op_ordinary_object_is_extensible (object_p)) in ecma_op_general_object_define_own_property()
429 ecma_property_value_t *new_prop_value_p = ecma_create_named_data_property (object_p, in ecma_op_general_object_define_own_property()
443 ecma_create_named_accessor_property (object_p, in ecma_op_general_object_define_own_property()
[all …]
Decma-promise-object.c184 ecma_object_t *object_p = ecma_get_object_from_value (already_resolved); in ecma_is_resolver_already_called() local
185 JERRY_ASSERT (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_CLASS); in ecma_is_resolver_already_called()
187 ecma_extended_object_t *already_resolved_p = (ecma_extended_object_t *) object_p; in ecma_is_resolver_already_called()
460 ecma_promise_create_resolving_functions (ecma_object_t *object_p, /**< the promise object */ in ecma_promise_create_resolving_functions() argument
465 funcs->resolve = ecma_promise_create_resolving_functions_helper (object_p, in ecma_promise_create_resolving_functions()
469 funcs->reject = ecma_promise_create_resolving_functions_helper (object_p, in ecma_promise_create_resolving_functions()
531 ecma_object_t *object_p = ecma_create_object (proto_p, in ecma_op_create_promise_object() local
535 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_promise_object()
540 ecma_promise_object_t *promise_object_p = (ecma_promise_object_t *) object_p; in ecma_op_create_promise_object()
546 ecma_promise_create_resolving_functions (object_p, &funcs, false); in ecma_op_create_promise_object()
[all …]
Decma-boolean-object.c52 ecma_object_t *object_p = ecma_create_object (prototype_obj_p, in ecma_op_create_boolean_object() local
56 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_boolean_object()
60 return ecma_make_object_value (object_p); in ecma_op_create_boolean_object()
Decma-number-object.c57 ecma_object_t *object_p = ecma_create_object (prototype_obj_p, in ecma_op_create_number_object() local
61 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_number_object()
67 return ecma_make_object_value (object_p); in ecma_op_create_number_object()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-arraybuffer-prototype.c60 ecma_object_t *object_p = ecma_get_object_from_value (this_arg); in ecma_builtin_arraybuffer_prototype_bytelength_getter() local
62 if (ecma_object_class_is (object_p, LIT_MAGIC_STRING_ARRAY_BUFFER_UL)) in ecma_builtin_arraybuffer_prototype_bytelength_getter()
64 if (ecma_arraybuffer_is_detached (object_p)) in ecma_builtin_arraybuffer_prototype_bytelength_getter()
68 ecma_length_t len = ecma_arraybuffer_get_length (object_p); in ecma_builtin_arraybuffer_prototype_bytelength_getter()
96 ecma_object_t *object_p = ecma_get_object_from_value (this_arg); in ecma_builtin_arraybuffer_prototype_object_slice() local
98 if (!ecma_object_class_is (object_p, LIT_MAGIC_STRING_ARRAY_BUFFER_UL)) in ecma_builtin_arraybuffer_prototype_object_slice()
103 if (ecma_arraybuffer_is_detached (object_p)) in ecma_builtin_arraybuffer_prototype_object_slice()
108 ecma_length_t len = ecma_arraybuffer_get_length (object_p); in ecma_builtin_arraybuffer_prototype_object_slice()
139 lit_utf8_byte_t *old_buf = ecma_arraybuffer_get_buffer (object_p); in ecma_builtin_arraybuffer_prototype_object_slice()
Decma-builtins.c639 ecma_builtin_routine_try_to_instantiate_property (ecma_object_t *object_p, /**< object */ in ecma_builtin_routine_try_to_instantiate_property() argument
642 JERRY_ASSERT (ecma_get_object_is_builtin (object_p)); in ecma_builtin_routine_try_to_instantiate_property()
643 JERRY_ASSERT (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_FUNCTION); in ecma_builtin_routine_try_to_instantiate_property()
644 JERRY_ASSERT (ecma_builtin_function_is_routine (object_p)); in ecma_builtin_routine_try_to_instantiate_property()
653 ecma_extended_object_t *ext_func_p = (ecma_extended_object_t *) object_p; in ecma_builtin_routine_try_to_instantiate_property()
664 ecma_property_value_t *len_prop_value_p = ecma_create_named_data_property (object_p, in ecma_builtin_routine_try_to_instantiate_property()
671 ecma_property_value_t *len_prop_value_p = ecma_create_named_data_property (object_p, in ecma_builtin_routine_try_to_instantiate_property()
697 ecma_builtin_try_to_instantiate_property (ecma_object_t *object_p, /**< object */ in ecma_builtin_try_to_instantiate_property() argument
700 JERRY_ASSERT (ecma_get_object_is_builtin (object_p)); in ecma_builtin_try_to_instantiate_property()
720 ecma_object_type_t object_type = ecma_get_object_type (object_p); in ecma_builtin_try_to_instantiate_property()
[all …]
Decma-builtins.h91 ecma_builtin_routine_try_to_instantiate_property (ecma_object_t *object_p, ecma_string_t *string_p);
93 ecma_builtin_try_to_instantiate_property (ecma_object_t *object_p, ecma_string_t *string_p);
95 ecma_builtin_routine_list_lazy_property_names (ecma_object_t *object_p,
100 ecma_builtin_list_lazy_property_names (ecma_object_t *object_p,
Decma-builtin-helpers-json.c42 ecma_object_t *object_p) /**< object */ in ecma_json_has_object_in_stack() argument
46 if (stack_p->object_p == object_p) in ecma_json_has_object_in_stack()

123