Home
last modified time | relevance | path

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

/third_party/jerryscript/jerry-core/ecma/operations/
Decma-arraybuffer-object.c54 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_arraybuffer_new_object() local
55 ext_object_p->u.class_prop.extra_info = ECMA_ARRAYBUFFER_INTERNAL_MEMORY; in ecma_arraybuffer_new_object()
56 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_ARRAY_BUFFER_UL; in ecma_arraybuffer_new_object()
57 ext_object_p->u.class_prop.u.length = length; in ecma_arraybuffer_new_object()
59 lit_utf8_byte_t *buf = (lit_utf8_byte_t *) (ext_object_p + 1); in ecma_arraybuffer_new_object()
179 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_arraybuffer_get_length() local
180 return ext_object_p->u.class_prop.u.length; in ecma_arraybuffer_get_length()
193 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_arraybuffer_get_buffer() local
195 if (ECMA_ARRAYBUFFER_HAS_EXTERNAL_MEMORY (ext_object_p)) in ecma_arraybuffer_get_buffer()
197 ecma_arraybuffer_external_info *array_p = (ecma_arraybuffer_external_info *) ext_object_p; in ecma_arraybuffer_get_buffer()
[all …]
Decma-objects-arguments.c81 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_op_create_arguments_object() local
83 ext_object_p->u.pseudo_array.type = ECMA_PSEUDO_ARRAY_ARGUMENTS; in ecma_op_create_arguments_object()
85 ECMA_SET_INTERNAL_VALUE_POINTER (ext_object_p->u.pseudo_array.u2.lex_env_cp, lex_env_p); in ecma_op_create_arguments_object()
87 ext_object_p->u.pseudo_array.u1.length = (uint16_t) formal_params_number; in ecma_op_create_arguments_object()
89 ecma_value_t *arg_Literal_p = (ecma_value_t *) (ext_object_p + 1); 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() local
111 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_ARGUMENTS_UL; in ecma_op_create_arguments_object()
255 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_arguments_object_define_own_property() local
257 if (index >= ext_object_p->u.pseudo_array.u1.length) in ecma_op_arguments_object_define_own_property()
262 ecma_value_t *arg_Literal_p = (ecma_value_t *) (ext_object_p + 1); in ecma_op_arguments_object_define_own_property()
[all …]
Decma-symbol-object.c92 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_symbol_object() local
93 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_SYMBOL_UL; in ecma_op_create_symbol_object()
94 ext_object_p->u.class_prop.u.value = ecma_copy_value (value); in ecma_op_create_symbol_object()
163 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_symbol_to_string_helper() local
165 if (ext_object_p->u.class_prop.class_id == LIT_MAGIC_STRING_SYMBOL_UL) in ecma_symbol_to_string_helper()
167 … return (is_to_string ? ecma_get_symbol_descriptive_string (ext_object_p->u.class_prop.u.value) in ecma_symbol_to_string_helper()
168 : ecma_copy_value (ext_object_p->u.class_prop.u.value)); in ecma_symbol_to_string_helper()
Decma-objects.c93 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_object_get_own_property() local
95 if (ext_object_p->u.class_prop.class_id == LIT_MAGIC_STRING_STRING_UL) in ecma_op_object_get_own_property()
101 ecma_value_t prim_value_p = ext_object_p->u.class_prop.u.value; in ecma_op_object_get_own_property()
115 ecma_value_t prim_value_p = ext_object_p->u.class_prop.u.value; 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() local
141 property_ref_p->virtual_value = ecma_make_uint32_value (ext_object_p->u.array.length); in ecma_op_object_get_own_property()
144 …return ext_object_p->u.array.u.length_prop & (ECMA_PROPERTY_TYPE_VIRTUAL | ECMA_PROPERTY_FLAG_WRIT… in ecma_op_object_get_own_property()
147 if (ecma_op_array_is_fast_array (ext_object_p)) in ecma_op_object_get_own_property()
153 if (JERRY_LIKELY (index < ext_object_p->u.array.length)) in ecma_op_object_get_own_property()
307 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_object_get_own_property() local
[all …]
Decma-string-object.c73 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_string_object() local
74 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_STRING_UL; in ecma_op_create_string_object()
75 ext_object_p->u.class_prop.u.value = prim_value; in ecma_op_create_string_object()
100 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_op_string_list_lazy_property_names() local
101 JERRY_ASSERT (ext_object_p->u.class_prop.class_id == LIT_MAGIC_STRING_STRING_UL); in ecma_op_string_list_lazy_property_names()
103 ecma_string_t *prim_value_str_p = ecma_get_string_from_value (ext_object_p->u.class_prop.u.value); in ecma_op_string_list_lazy_property_names()
Decma-typedarray-object.c477 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_get_typedarray_id() local
479 return (ecma_typedarray_type_t) ext_object_p->u.pseudo_array.extra_info; in ecma_get_typedarray_id()
562 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_typedarray_create_object_with_length() local
563 ext_object_p->u.pseudo_array.u1.class_id = ecma_typedarray_magic_string_list[typedarray_id]; in ecma_typedarray_create_object_with_length()
564 ext_object_p->u.pseudo_array.type = ECMA_PSEUDO_ARRAY_TYPEDARRAY; in ecma_typedarray_create_object_with_length()
565 ext_object_p->u.pseudo_array.extra_info = (uint8_t) typedarray_id; in ecma_typedarray_create_object_with_length()
566 ext_object_p->u.pseudo_array.u2.arraybuffer = ecma_make_object_value (new_arraybuffer_p); in ecma_typedarray_create_object_with_length()
602 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_typedarray_create_object_with_buffer() local
603 ext_object_p->u.pseudo_array.u1.class_id = ecma_typedarray_magic_string_list[typedarray_id]; in ecma_typedarray_create_object_with_buffer()
604 ext_object_p->u.pseudo_array.type = ECMA_PSEUDO_ARRAY_TYPEDARRAY; in ecma_typedarray_create_object_with_buffer()
[all …]
Decma-boolean-object.c56 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_boolean_object() local
57 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_BOOLEAN_UL; in ecma_op_create_boolean_object()
58 ext_object_p->u.class_prop.u.value = ecma_make_boolean_value (boolean_value); in ecma_op_create_boolean_object()
Decma-number-object.c61 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_number_object() local
62 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_NUMBER_UL; in ecma_op_create_number_object()
65 ext_object_p->u.class_prop.u.value = conv_to_num_completion; in ecma_op_create_number_object()
Decma-array-object.c993 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_array_object_set_length() local
995 uint32_t old_len_uint32 = ext_object_p->u.array.length; in ecma_op_array_object_set_length()
1004 …uint8_t new_prop_value = (uint8_t) (ext_object_p->u.array.u.length_prop & ~ECMA_PROPERTY_FLAG_WRIT… in ecma_op_array_object_set_length()
1005 ext_object_p->u.array.u.length_prop = new_prop_value; in ecma_op_array_object_set_length()
1007 else if (!ecma_is_property_writable (ext_object_p->u.array.u.length_prop)) in ecma_op_array_object_set_length()
1014 else if (!ecma_is_property_writable (ext_object_p->u.array.u.length_prop)) in ecma_op_array_object_set_length()
1030 ext_object_p->u.array.length = current_len_uint32; in ecma_op_array_object_set_length()
1035 …uint8_t new_prop_value = (uint8_t) (ext_object_p->u.array.u.length_prop & ~ECMA_PROPERTY_FLAG_WRIT… in ecma_op_array_object_set_length()
1036 ext_object_p->u.array.u.length_prop = new_prop_value; in ecma_op_array_object_set_length()
1114 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_array_object_define_own_property() local
[all …]
Decma-promise-object.c61 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_promise_get_result() local
63 return ecma_copy_value (ext_object_p->u.class_prop.u.value); in ecma_promise_get_result()
75 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_promise_set_result() local
77 JERRY_ASSERT (ext_object_p->u.class_prop.u.value == ECMA_VALUE_UNDEFINED); in ecma_promise_set_result()
79 ext_object_p->u.class_prop.u.value = result; in ecma_promise_set_result()
535 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_op_create_promise_object() local
536 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_PROMISE_UL; in ecma_op_create_promise_object()
538 ext_object_p->u.class_prop.extra_info = ECMA_PROMISE_IS_PENDING; in ecma_op_create_promise_object()
539 ext_object_p->u.class_prop.u.value = ECMA_VALUE_UNDEFINED; in ecma_op_create_promise_object()
Decma-regexp-object.c1679 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) regexp_object_p; in ecma_regexp_exec_helper() local
1681ext_object_p->u.class_prop.u.value); in ecma_regexp_exec_helper()
2348 ecma_extended_object_t *const ext_object_p = (ecma_extended_object_t *) regexp_p; in ecma_regexp_split_helper()
2350ext_object_p->u.class_prop.u.value); in ecma_regexp_split_helper()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-gc.c287 ecma_gc_mark_promise_object (ecma_extended_object_t *ext_object_p) /**< extended object */ in ecma_gc_mark_promise_object() argument
290 ecma_value_t result = ext_object_p->u.class_prop.u.value; in ecma_gc_mark_promise_object()
298 ecma_promise_object_t *promise_object_p = (ecma_promise_object_t *) ext_object_p; in ecma_gc_mark_promise_object()
562 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_gc_mark() local
564 switch (ext_object_p->u.class_prop.class_id) in ecma_gc_mark()
569 ecma_gc_mark_promise_object (ext_object_p); in ecma_gc_mark()
627 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_gc_mark() local
629 switch (ext_object_p->u.pseudo_array.type) in ecma_gc_mark()
644 ecma_value_t iterated_value = ext_object_p->u.pseudo_array.u2.iterated_value; in ecma_gc_mark()
658 JERRY_ASSERT (ext_object_p->u.pseudo_array.type == ECMA_PSEUDO_ARRAY_ARGUMENTS); in ecma_gc_mark()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtins.c440 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_instantiate_builtin() local
442 ext_object_p->u.array.length = 0; in ecma_instantiate_builtin()
443ext_object_p->u.array.u.length_prop = ECMA_PROPERTY_FLAG_WRITABLE | ECMA_PROPERTY_TYPE_VIRTUAL; in ecma_instantiate_builtin()
453 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_instantiate_builtin() local
455 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_STRING_UL; in ecma_instantiate_builtin()
456 ext_object_p->u.class_prop.u.value = ecma_make_magic_string_value (LIT_MAGIC_STRING__EMPTY); in ecma_instantiate_builtin()
465 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_instantiate_builtin() local
467 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_NUMBER_UL; in ecma_instantiate_builtin()
468 ext_object_p->u.class_prop.u.value = ecma_make_integer_value (0); in ecma_instantiate_builtin()
477 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_instantiate_builtin() local
[all …]
Decma-builtin-boolean-prototype.c103 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_builtin_boolean_prototype_object_value_of() local
105 JERRY_ASSERT (ecma_is_value_boolean (ext_object_p->u.class_prop.u.value)); in ecma_builtin_boolean_prototype_object_value_of()
107 return ext_object_p->u.class_prop.u.value; in ecma_builtin_boolean_prototype_object_value_of()
Decma-builtin-generator-prototype.c80 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_builtin_generator_prototype_object_do() local
82 if (ext_object_p->u.class_prop.class_id == LIT_MAGIC_STRING_GENERATOR_UL) in ecma_builtin_generator_prototype_object_do()
84 executable_object_p = (vm_executable_object_t *) ext_object_p; in ecma_builtin_generator_prototype_object_do()
Decma-builtin-date-prototype.c346 … ecma_extended_object_t *ext_object_p, /**< date extended object */ in ecma_builtin_date_prototype_dispatch_set() argument
582 *ECMA_GET_INTERNAL_VALUE_POINTER (ecma_number_t, ext_object_p->u.class_prop.u.value) = full_date; in ecma_builtin_date_prototype_dispatch_set()
622 …ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) ecma_get_object_from_value (this… in ecma_builtin_date_prototype_dispatch_routine() local
624ext_object_p->u.class_prop.u.value); in ecma_builtin_date_prototype_dispatch_routine()
660 ext_object_p, in ecma_builtin_date_prototype_dispatch_routine()
Decma-builtin-promise.c215 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) remaining_p; in ecma_builtin_promise_remaining_inc_or_dec() local
217 JERRY_ASSERT (ext_object_p->u.class_prop.class_id == LIT_MAGIC_STRING_NUMBER_UL); in ecma_builtin_promise_remaining_inc_or_dec()
219 JERRY_ASSERT (ecma_is_value_integer_number (ext_object_p->u.class_prop.u.value)); in ecma_builtin_promise_remaining_inc_or_dec()
221 …ecma_length_t current = (ecma_length_t) ecma_get_integer_from_value (ext_object_p->u.class_prop.u.… in ecma_builtin_promise_remaining_inc_or_dec()
231 ext_object_p->u.class_prop.u.value = ecma_make_uint32_value (current); in ecma_builtin_promise_remaining_inc_or_dec()
Decma-builtin-date.c754 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_builtin_date_dispatch_construct() local
755 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_UNDEFINED; in ecma_builtin_date_dispatch_construct()
813 ext_object_p->u.class_prop.class_id = LIT_MAGIC_STRING_DATE_UL; in ecma_builtin_date_dispatch_construct()
817 ECMA_SET_INTERNAL_VALUE_POINTER (ext_object_p->u.class_prop.u.value, date_num_p); in ecma_builtin_date_dispatch_construct()
Decma-builtin-number-prototype.c554 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_builtin_number_prototype_object_value_of() local
556 JERRY_ASSERT (ecma_is_value_number (ext_object_p->u.class_prop.u.value)); in ecma_builtin_number_prototype_object_value_of()
558 return ext_object_p->u.class_prop.u.value; in ecma_builtin_number_prototype_object_value_of()
Decma-builtin-string-prototype.c131 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in ecma_builtin_string_prototype_object_to_string() local
133 JERRY_ASSERT (ecma_is_value_string (ext_object_p->u.class_prop.u.value)); in ecma_builtin_string_prototype_object_to_string()
135 return ecma_copy_value (ext_object_p->u.class_prop.u.value); in ecma_builtin_string_prototype_object_to_string()
Decma-builtin-json.c1216 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p; in ecma_builtin_json_serialize_property() local
1217 value = ext_object_p->u.class_prop.u.value; in ecma_builtin_json_serialize_property()
/third_party/jerryscript/jerry-core/vm/
Dvm.c77 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in vm_op_get_value() local
79 if (JERRY_LIKELY (ecma_op_array_is_fast_array (ext_object_p) in vm_op_get_value()
80 && (uint32_t) int_value < ext_object_p->u.array.length)) in vm_op_get_value()
/third_party/jerryscript/jerry-core/api/
Djerry.c3052 ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) object_p; in jerry_object_is_valid_foreach() local
3053 switch (ext_object_p->u.class_prop.class_id) in jerry_object_is_valid_foreach()