/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-object.c | 120 ecma_object_t *obj_p = ecma_op_create_object_object_noarg (); in ecma_builtin_object_dispatch_construct() local 122 return ecma_make_object_value (obj_p); in ecma_builtin_object_dispatch_construct() 138 ecma_builtin_object_object_get_prototype_of (ecma_object_t *obj_p) /**< routine's argument */ in ecma_builtin_object_object_get_prototype_of() argument 141 if (ECMA_OBJECT_IS_PROXY (obj_p)) in ecma_builtin_object_object_get_prototype_of() 143 return ecma_proxy_object_get_prototype_of (obj_p); in ecma_builtin_object_object_get_prototype_of() 147 jmem_cpointer_t proto_cp = ecma_op_ordinary_object_get_prototype_of (obj_p); in ecma_builtin_object_object_get_prototype_of() 191 ecma_object_t *obj_p = ecma_get_object_from_value (arg1); in ecma_builtin_object_object_set_prototype_of() local 196 if (ECMA_OBJECT_IS_PROXY (obj_p)) in ecma_builtin_object_object_set_prototype_of() 198 status = ecma_proxy_object_set_prototype_of (obj_p, arg2); in ecma_builtin_object_object_set_prototype_of() 208 status = ecma_op_ordinary_object_set_prototype_of (obj_p, arg2); in ecma_builtin_object_object_set_prototype_of() [all …]
|
D | ecma-builtin-array-prototype.c | 130 ecma_object_t *obj_p) /**< array object */ in ecma_builtin_array_prototype_object_to_string() argument 134 ecma_value_t join_value = ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_JOIN); in ecma_builtin_array_prototype_object_to_string() 168 ecma_builtin_array_prototype_object_to_locale_string (ecma_object_t *obj_p, /**< array object */ in ecma_builtin_array_prototype_object_to_locale_string() argument 178 ecma_string_t *first_string_p = ecma_builtin_helper_get_to_locale_string_at_index (obj_p, 0); in ecma_builtin_array_prototype_object_to_locale_string() 194 ecma_string_t *next_string_p = ecma_builtin_helper_get_to_locale_string_at_index (obj_p, k); in ecma_builtin_array_prototype_object_to_locale_string() 221 ecma_object_t *obj_p) /**< array object */ in ecma_builtin_array_prototype_object_concat() argument 225 ecma_value_t new_array = ecma_op_array_species_create (obj_p, 0); in ecma_builtin_array_prototype_object_concat() 242 … ecma_make_object_value (obj_p)); in ecma_builtin_array_prototype_object_concat() 307 ecma_op_array_get_to_string_at_index (ecma_object_t *obj_p, /**< this object */ in ecma_op_array_get_to_string_at_index() argument 310 ecma_value_t index_value = ecma_op_object_get_by_uint32_index (obj_p, index); in ecma_op_array_get_to_string_at_index() [all …]
|
D | ecma-builtin-object-prototype.c | 111 ecma_builtin_object_prototype_object_to_locale_string (ecma_object_t *obj_p) /**< this argument */ in ecma_builtin_object_prototype_object_to_locale_string() argument 114 …ecma_value_t to_string_val = ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_TO_STRING_UL); in ecma_builtin_object_prototype_object_to_locale_string() 130 … ret_value = ecma_op_function_call (to_string_func_obj_p, ecma_make_object_value (obj_p), NULL, 0); in ecma_builtin_object_prototype_object_to_locale_string() 147 ecma_builtin_object_prototype_object_has_own_property (ecma_object_t *obj_p, /**< this argument */ in ecma_builtin_object_prototype_object_has_own_property() argument 151 if (ECMA_OBJECT_IS_PROXY (obj_p)) in ecma_builtin_object_prototype_object_has_own_property() 155 …ecma_value_t status = ecma_proxy_object_get_own_property_descriptor (obj_p, prop_name_p, &prop_des… in ecma_builtin_object_prototype_object_has_own_property() 166 return ecma_make_boolean_value (ecma_op_ordinary_object_has_own_property (obj_p, prop_name_p)); in ecma_builtin_object_prototype_object_has_own_property() 179 ecma_builtin_object_prototype_object_is_prototype_of (ecma_object_t *obj_p, /**< this argument */ in ecma_builtin_object_prototype_object_is_prototype_of() argument 192 ecma_value_t ret_value = ecma_op_object_is_prototype_of (obj_p, v_obj_p); in ecma_builtin_object_prototype_object_is_prototype_of() 209 ecma_builtin_object_prototype_object_property_is_enumerable (ecma_object_t *obj_p, /**< this argume… in ecma_builtin_object_prototype_object_property_is_enumerable() argument [all …]
|
D | ecma-builtin-reflect.c | 236 ecma_object_t *obj_p = ecma_get_object_from_value (arguments_list[0]); in ecma_builtin_reflect_dispatch_routine() local 240 if (ECMA_OBJECT_IS_PROXY (obj_p)) in ecma_builtin_reflect_dispatch_routine() 242 status = ecma_proxy_object_set_prototype_of (obj_p, arguments_list[1]); in ecma_builtin_reflect_dispatch_routine() 247 status = ecma_op_ordinary_object_set_prototype_of (obj_p, arguments_list[1]); in ecma_builtin_reflect_dispatch_routine() 264 ecma_object_t *obj_p = ecma_get_object_from_value (arguments_list[0]); in ecma_builtin_reflect_dispatch_routine() local 281 ecma_value_t result = ecma_op_object_define_own_property (obj_p, in ecma_builtin_reflect_dispatch_routine() 299 ecma_object_t *obj_p = ecma_get_object_from_value (arguments_list[0]); in ecma_builtin_reflect_dispatch_routine() local 307 … ecma_value_t ret_val = ecma_builtin_object_object_get_own_property_descriptor (obj_p, name_str_p); in ecma_builtin_reflect_dispatch_routine() 313 ecma_object_t *obj_p = ecma_get_object_from_value (arguments_list[0]); in ecma_builtin_reflect_dispatch_routine() local 314 return ecma_builtin_object_object_is_extensible (obj_p); in ecma_builtin_reflect_dispatch_routine() [all …]
|
D | ecma-builtins.c | 272 ecma_builtin_is (ecma_object_t *obj_p, /**< pointer to an object */ in ecma_builtin_is() argument 275 JERRY_ASSERT (obj_p != NULL && !ecma_is_lexical_environment (obj_p)); in ecma_builtin_is() 282 …return (builtin_cp != JMEM_CP_NULL && (obj_p == ECMA_GET_NON_NULL_POINTER (ecma_object_t, builtin_… in ecma_builtin_is() 387 ecma_object_t *obj_p = ecma_create_object (prototype_obj_p, ext_object_size, obj_type); in ecma_instantiate_builtin() local 391 ecma_op_ordinary_object_prevent_extensions (obj_p); in ecma_instantiate_builtin() 395 ecma_op_ordinary_object_set_extensible (obj_p); in ecma_instantiate_builtin() 404 ecma_set_object_is_builtin (obj_p); in ecma_instantiate_builtin() 409 built_in_props_p = &((ecma_extended_built_in_object_t *) obj_p)->built_in; in ecma_instantiate_builtin() 413 built_in_props_p = &((ecma_extended_object_t *) obj_p)->u.built_in; in ecma_instantiate_builtin() 440 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_instantiate_builtin() [all …]
|
D | ecma-builtin-json.c | 438 ecma_builtin_json_define_value_property (ecma_object_t *obj_p, /**< this object */ in ecma_builtin_json_define_value_property() argument 442 ecma_value_t completion_value = ecma_builtin_helper_def_prop (obj_p, in ecma_builtin_json_define_value_property() 871 ecma_object_t *obj_p) /**< the object*/ in ecma_builtin_json_serialize_object() argument 874 if (ecma_json_has_object_in_stack (context_p->occurence_stack_last_p, obj_p)) in ecma_builtin_json_serialize_object() 882 stack_item.object_p = obj_p; in ecma_builtin_json_serialize_object() 901 property_keys_p = ecma_op_object_get_property_names (obj_p, ECMA_LIST_ENUMERABLE); in ecma_builtin_json_serialize_object() 938 result = ecma_builtin_json_serialize_property (context_p, obj_p, key_p); in ecma_builtin_json_serialize_object() 1001 ecma_object_t *obj_p) /**< the array object*/ in ecma_builtin_json_serialize_array() argument 1004 ecma_value_t obj_value = ecma_make_object_value (obj_p); in ecma_builtin_json_serialize_array() 1011 if (ecma_json_has_object_in_stack (context_p->occurence_stack_last_p, obj_p)) in ecma_builtin_json_serialize_array() [all …]
|
D | ecma-builtin-object.h | 18 ecma_value_t ecma_builtin_object_object_get_prototype_of (ecma_object_t *obj_p); 26 ecma_value_t ecma_builtin_object_object_prevent_extensions (ecma_object_t *obj_p); 28 ecma_value_t ecma_builtin_object_object_is_extensible (ecma_object_t *obj_p); 30 ecma_value_t ecma_builtin_object_object_get_own_property_descriptor (ecma_object_t *obj_p, 32 ecma_value_t ecma_builtin_object_object_define_property (ecma_object_t *obj_p,
|
D | ecma-builtin-dataview-prototype.c | 97 ecma_dataview_object_t *obj_p = ecma_op_dataview_get_object (this_arg); in ecma_builtin_dataview_prototype_object_getters() local 99 if (JERRY_UNLIKELY (obj_p == NULL)) in ecma_builtin_dataview_prototype_object_getters() 108 ecma_object_t *buffer_p = obj_p->buffer_p; in ecma_builtin_dataview_prototype_object_getters() 115 if (ecma_arraybuffer_is_detached (obj_p->buffer_p)) in ecma_builtin_dataview_prototype_object_getters() 119 return ecma_make_uint32_value (obj_p->header.u.class_prop.u.length); in ecma_builtin_dataview_prototype_object_getters() 125 if (ecma_arraybuffer_is_detached (obj_p->buffer_p)) in ecma_builtin_dataview_prototype_object_getters() 129 return ecma_make_uint32_value (obj_p->byte_offset); in ecma_builtin_dataview_prototype_object_getters()
|
D | ecma-builtin-helpers.c | 141 ecma_object_t *obj_p = ecma_get_object_from_value (obj_this); in ecma_builtin_helper_object_to_string() local 143 type_string = ecma_object_get_class_name (obj_p); in ecma_builtin_helper_object_to_string() 146 … ecma_value_t tag_value = ecma_op_object_get_by_symbol_id (obj_p, LIT_GLOBAL_SYMBOL_TO_STRING_TAG); in ecma_builtin_helper_object_to_string() 150 ecma_deref_object (obj_p); in ecma_builtin_helper_object_to_string() 156 ecma_deref_object (obj_p); in ecma_builtin_helper_object_to_string() 163 ecma_deref_object (obj_p); in ecma_builtin_helper_object_to_string() 207 ecma_builtin_helper_get_to_locale_string_at_index (ecma_object_t *obj_p, /**< this object */ in ecma_builtin_helper_get_to_locale_string_at_index() argument 210 ecma_value_t index_value = ecma_op_object_get_by_uint32_index (obj_p, index); in ecma_builtin_helper_get_to_locale_string_at_index() 279 ecma_builtin_helper_object_get_properties (ecma_object_t *obj_p, /**< object */ in ecma_builtin_helper_object_get_properties() argument 282 JERRY_ASSERT (obj_p != NULL); in ecma_builtin_helper_object_get_properties() [all …]
|
D | ecma-builtin-error-prototype.c | 53 ecma_builtin_error_prototype_object_to_string_helper (ecma_object_t *obj_p, /**< error object */ in ecma_builtin_error_prototype_object_to_string_helper() argument 57 ecma_value_t prop_value = ecma_op_object_get_by_magic_id (obj_p, property_id); in ecma_builtin_error_prototype_object_to_string_helper() 93 ecma_object_t *obj_p = ecma_get_object_from_value (this_arg); in ecma_builtin_error_prototype_object_to_string() local 95 ecma_string_t *name_string_p = ecma_builtin_error_prototype_object_to_string_helper (obj_p, in ecma_builtin_error_prototype_object_to_string() 104 ecma_string_t *msg_string_p = ecma_builtin_error_prototype_object_to_string_helper (obj_p, in ecma_builtin_error_prototype_object_to_string()
|
D | ecma-builtin-array-iterator-prototype.c | 61 ecma_object_t *obj_p = ecma_get_object_from_value (this_val); in ecma_builtin_array_iterator_prototype_object_next() local 62 ecma_extended_object_t *ext_obj_p = (ecma_extended_object_t *) obj_p; in ecma_builtin_array_iterator_prototype_object_next() 65 if (ecma_get_object_type (obj_p) != ECMA_OBJECT_TYPE_PSEUDO_ARRAY in ecma_builtin_array_iterator_prototype_object_next() 97 ecma_value_t index_value = ecma_op_object_get (obj_p, prop_name_p); in ecma_builtin_array_iterator_prototype_object_next() 104 ecma_value_t put_result = ecma_op_object_put (obj_p, in ecma_builtin_array_iterator_prototype_object_next()
|
D | ecma-builtin-helpers.h | 47 ecma_builtin_helper_get_to_locale_string_at_index (ecma_object_t *obj_p, uint32_t index); 49 ecma_builtin_helper_object_get_properties (ecma_object_t *obj_p, uint32_t opts); 51 ecma_builtin_helper_array_concat_value (ecma_object_t *obj_p, uint32_t *length_p, ecma_value_t valu… 63 ecma_builtin_helper_def_prop (ecma_object_t *obj_p, ecma_string_t *name_p, ecma_value_t value, uint… 66 ecma_builtin_helper_def_prop_by_index (ecma_object_t *obj_p, uint32_t index, ecma_value_t value, ui… 101 ecma_builtin_is_regexp_exec (ecma_extended_object_t *obj_p);
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-proxy-object.h | 48 ecma_proxy_object_find (ecma_object_t *obj_p, 54 ecma_proxy_object_get_prototype_of (ecma_object_t *obj_p); 57 ecma_proxy_object_set_prototype_of (ecma_object_t *obj_p, 61 ecma_proxy_object_is_extensible (ecma_object_t *obj_p); 64 ecma_proxy_object_prevent_extensions (ecma_object_t *obj_p); 67 ecma_proxy_object_get_own_property_descriptor (ecma_object_t *obj_p, 72 ecma_proxy_object_define_own_property (ecma_object_t *obj_p, 77 ecma_proxy_object_has (ecma_object_t *obj_p, 81 ecma_proxy_object_get (ecma_object_t *obj_p, 86 ecma_proxy_object_set (ecma_object_t *obj_p, [all …]
|
D | ecma-objects.c | 990 ecma_object_t *obj_p = ecma_get_object_from_value (obj_value); in ecma_op_get_method() local 993 func = ecma_op_object_get (obj_p, prop_name_p); in ecma_op_get_method() 994 ecma_deref_object (obj_p); in ecma_op_get_method() 1633 ecma_op_object_delete_by_uint32_index (ecma_object_t *obj_p, /**< the object */ in ecma_op_object_delete_by_uint32_index() argument 1639 return ecma_op_object_delete (obj_p, ECMA_CREATE_DIRECT_UINT32_STRING (index), is_throw); in ecma_op_object_delete_by_uint32_index() 1643 ecma_value_t ret_value = ecma_op_object_delete (obj_p, index_str_p, is_throw); in ecma_op_object_delete_by_uint32_index() 1659 ecma_op_object_delete_by_number_index (ecma_object_t *obj_p, /**< the object */ in ecma_op_object_delete_by_number_index() argument 1664 ecma_value_t ret_value = ecma_op_object_delete (obj_p, index_str_p, is_throw); in ecma_op_object_delete_by_number_index() 1683 ecma_op_object_delete (ecma_object_t *obj_p, /**< the object */ in ecma_op_object_delete() argument 1687 JERRY_ASSERT (obj_p != NULL in ecma_op_object_delete() [all …]
|
D | ecma-proxy-object.c | 53 ecma_object_t *obj_p = ecma_get_object_from_value (argument); in ecma_proxy_validate() local 55 return (!ECMA_OBJECT_IS_PROXY (obj_p) in ecma_proxy_validate() 56 || !ecma_is_value_null (((ecma_proxy_object_t *) obj_p)->handler)); in ecma_proxy_validate() 83 ecma_object_t *obj_p = ecma_create_object (ecma_builtin_get (ECMA_BUILTIN_ID_OBJECT_PROTOTYPE), in ecma_proxy_create() local 87 ecma_proxy_object_t *proxy_obj_p = (ecma_proxy_object_t *) obj_p; in ecma_proxy_create() 95 return obj_p; in ecma_proxy_create() 181 ecma_object_t *obj_p = ecma_create_object (ecma_builtin_get (ECMA_BUILTIN_ID_OBJECT_PROTOTYPE), in ecma_proxy_create_revocable() local 186 prop_value_p = ecma_create_named_data_property (obj_p, in ecma_proxy_create_revocable() 193 prop_value_p = ecma_create_named_data_property (obj_p, in ecma_proxy_create_revocable() 203 return obj_p; in ecma_proxy_create_revocable() [all …]
|
D | ecma-objects-arguments.c | 69 ecma_object_t *obj_p; in ecma_op_create_arguments_object() local 77 obj_p = ecma_create_object (prototype_p, in ecma_op_create_arguments_object() 81 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_op_create_arguments_object() 108 … obj_p = ecma_create_object (prototype_p, sizeof (ecma_extended_object_t), ECMA_OBJECT_TYPE_CLASS); in ecma_op_create_arguments_object() 110 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_op_create_arguments_object() 123 prop_value_p = ecma_create_named_data_property (obj_p, in ecma_op_create_arguments_object() 134 prop_value_p = ecma_create_named_data_property (obj_p, in ecma_op_create_arguments_object() 147 prop_value_p = ecma_create_named_data_property (obj_p, in ecma_op_create_arguments_object() 162 prop_value_p = ecma_create_named_data_property (obj_p, in ecma_op_create_arguments_object() 184 ecma_value_t completion = ecma_op_object_define_own_property (obj_p, in ecma_op_create_arguments_object() [all …]
|
D | ecma-promise-object.c | 45 ecma_is_promise (ecma_object_t *obj_p) /**< points to object */ in ecma_is_promise() argument 47 return ecma_object_class_is (obj_p, LIT_MAGIC_STRING_PROMISE_UL); in ecma_is_promise() 57 ecma_promise_get_result (ecma_object_t *obj_p) /**< points to promise object */ in ecma_promise_get_result() argument 59 JERRY_ASSERT (ecma_is_promise (obj_p)); in ecma_promise_get_result() 61 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_promise_get_result() 70 ecma_promise_set_result (ecma_object_t *obj_p, /**< points to promise object */ in ecma_promise_set_result() argument 73 JERRY_ASSERT (ecma_is_promise (obj_p)); in ecma_promise_set_result() 75 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_promise_set_result() 88 ecma_promise_get_flags (ecma_object_t *obj_p) /**< points to promise object */ in ecma_promise_get_flags() argument 90 JERRY_ASSERT (ecma_is_promise (obj_p)); in ecma_promise_get_flags() [all …]
|
D | ecma-objects-general.c | 96 ecma_object_t *obj_p = ecma_op_create_object_object_noarg (); in ecma_op_create_object_object_arg() local 98 return ecma_make_object_value (obj_p); in ecma_op_create_object_object_arg() 115 ecma_object_t *obj_p = ecma_create_object (object_prototype_p, 0, ECMA_OBJECT_TYPE_GENERAL); in ecma_op_create_object_object_noarg_and_set_prototype() local 125 return obj_p; in ecma_op_create_object_object_noarg_and_set_prototype() 139 ecma_op_general_object_delete (ecma_object_t *obj_p, /**< the object */ in ecma_op_general_object_delete() argument 143 JERRY_ASSERT (obj_p != NULL in ecma_op_general_object_delete() 144 && !ecma_is_lexical_environment (obj_p)); in ecma_op_general_object_delete() 150 ecma_property_t property = ecma_op_object_get_own_property (obj_p, in ecma_op_general_object_delete() 164 if (ecma_get_object_type (obj_p) == ECMA_OBJECT_TYPE_ARRAY) in ecma_op_general_object_delete() 166 ecma_array_object_delete_property (obj_p, property_name_p, property_ref.value_p); in ecma_op_general_object_delete() [all …]
|
D | ecma-conversion.c | 197 ecma_object_t *obj_p = ecma_get_object_from_value (value); in ecma_op_to_primitive() local 199 return ecma_op_object_default_value (obj_p, preferred_type); in ecma_op_to_primitive() 559 ecma_object_t *obj_p = ecma_op_create_object_object_noarg (); in ecma_op_from_property_descriptor() local 582 completion = ecma_op_object_define_own_property (obj_p, in ecma_op_from_property_descriptor() 590 completion = ecma_op_object_define_own_property (obj_p, in ecma_op_from_property_descriptor() 613 completion = ecma_op_object_define_own_property (obj_p, in ecma_op_from_property_descriptor() 628 completion = ecma_op_object_define_own_property (obj_p, in ecma_op_from_property_descriptor() 637 completion = ecma_op_object_define_own_property (obj_p, in ecma_op_from_property_descriptor() 644 completion = ecma_op_object_define_own_property (obj_p, in ecma_op_from_property_descriptor() 649 return obj_p; in ecma_op_from_property_descriptor() [all …]
|
D | ecma-objects.h | 61 ecma_value_t ecma_op_object_delete (ecma_object_t *obj_p, ecma_string_t *property_name_p, bool is_t… 62 ecma_value_t ecma_op_object_delete_by_uint32_index (ecma_object_t *obj_p, uint32_t index, bool is_t… 63 ecma_value_t ecma_op_object_delete_by_number_index (ecma_object_t *obj_p, ecma_number_t index, bool… 64 ecma_value_t ecma_op_object_default_value (ecma_object_t *obj_p, ecma_preferred_type_hint_t hint); 65 ecma_value_t ecma_op_object_define_own_property (ecma_object_t *obj_p, ecma_string_t *property_name… 69 ecma_value_t ecma_op_object_has_instance (ecma_object_t *obj_p, ecma_value_t value); 71 ecma_collection_t * ecma_op_object_get_property_names (ecma_object_t *obj_p, uint32_t opts); 73 lit_magic_string_id_t ecma_object_get_class_name (ecma_object_t *obj_p); 88 jmem_cpointer_t ecma_op_ordinary_object_get_prototype_of (ecma_object_t *obj_p);
|
D | ecma-arraybuffer-object.h | 43 ecma_arraybuffer_get_buffer (ecma_object_t *obj_p); 45 ecma_arraybuffer_get_length (ecma_object_t *obj_p); 47 ecma_arraybuffer_is_detached (ecma_object_t *obj_p); 49 ecma_arraybuffer_is_detachable (ecma_object_t *obj_p); 51 ecma_arraybuffer_detach (ecma_object_t *obj_p);
|
D | ecma-iterator-object.c | 249 ecma_object_t *obj_p = ecma_get_object_from_value (iterator); in ecma_op_iterator_next() local 251 ecma_value_t func_next = ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_NEXT); in ecma_op_iterator_next() 301 ecma_object_t *obj_p = ecma_get_object_from_value (iterator); in ecma_op_iterator_return() local 302 ecma_value_t func_return = ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_RETURN); in ecma_op_iterator_return() 345 ecma_object_t *obj_p = ecma_get_object_from_value (iterator); in ecma_op_iterator_throw() local 346 ecma_value_t func_throw = ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_THROW); in ecma_op_iterator_throw() 397 ecma_object_t *obj_p = ecma_get_object_from_value (iter_result); in ecma_op_iterator_value() local 398 return ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_VALUE); in ecma_op_iterator_value() 524 ecma_object_t *obj_p = ecma_get_object_from_value (result); in ecma_op_iterator_step() local 525 ecma_value_t done = ecma_op_object_get_by_magic_id (obj_p, LIT_MAGIC_STRING_DONE); in ecma_op_iterator_step() [all …]
|
D | ecma-typedarray-object.c | 473 ecma_get_typedarray_id (ecma_object_t *obj_p) /**< typedarray object **/ in ecma_get_typedarray_id() argument 475 JERRY_ASSERT (ecma_object_is_typedarray (obj_p)); in ecma_get_typedarray_id() 477 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_get_typedarray_id() 1123 ecma_object_t *obj_p = ecma_get_object_from_value (arguments_list_p[0]); in ecma_op_create_typedarray() local 1124 if (ecma_object_is_typedarray (obj_p)) in ecma_op_create_typedarray() 1127 ecma_object_t *typedarray_p = obj_p; in ecma_op_create_typedarray() 1133 else if (ecma_object_class_is (obj_p, LIT_MAGIC_STRING_ARRAY_BUFFER_UL)) in ecma_op_create_typedarray() 1136 ecma_object_t *arraybuffer_p = obj_p; in ecma_op_create_typedarray() 1235 ecma_object_is_typedarray (ecma_object_t *obj_p) /**< the target object need to be checked */ in ecma_object_is_typedarray() argument 1237 JERRY_ASSERT (!ecma_is_lexical_environment (obj_p)); in ecma_object_is_typedarray() [all …]
|
D | ecma-typedarray-object.h | 40 ecma_typedarray_type_t ecma_get_typedarray_id (ecma_object_t *obj_p); 61 bool ecma_object_is_typedarray (ecma_object_t *obj_p); 63 void ecma_op_typedarray_list_lazy_property_names (ecma_object_t *obj_p, 65 bool ecma_op_typedarray_define_index_prop (ecma_object_t *obj_p,
|
/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-helpers-external-pointers.c | 37 ecma_create_native_pointer_property (ecma_object_t *obj_p, /**< object to create property in */ in ecma_create_native_pointer_property() argument 43 if (ecma_op_object_is_fast_array (obj_p)) in ecma_create_native_pointer_property() 45 ecma_fast_array_convert_to_normal (obj_p); in ecma_create_native_pointer_property() 48 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_create_native_pointer_property() 57 …value_p = ecma_create_named_data_property (obj_p, name_p, ECMA_PROPERTY_CONFIGURABLE_WRITABLE, &pr… in ecma_create_native_pointer_property() 115 ecma_get_native_pointer_value (ecma_object_t *obj_p, /**< object to get property value from */ in ecma_get_native_pointer_value() argument 118 if (ecma_op_object_is_fast_array (obj_p)) in ecma_get_native_pointer_value() 125 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_get_native_pointer_value() 163 ecma_delete_native_pointer_property (ecma_object_t *obj_p, /**< object to delete property from */ in ecma_delete_native_pointer_property() argument 166 if (ecma_op_object_is_fast_array (obj_p)) in ecma_delete_native_pointer_property() [all …]
|