Home
last modified time | relevance | path

Searched refs:array_p (Results 1 – 12 of 12) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers-sort.c28 ecma_builtin_helper_array_to_heap (ecma_value_t *array_p, /**< heap data array */ in ecma_builtin_helper_array_to_heap() argument
38 ecma_value_t swap = array_p[index]; in ecma_builtin_helper_array_to_heap()
46 … ECMA_TRY_CATCH (child_compare_value, sort_cb (array_p[child], array_p[child + 1], compare_func), in ecma_builtin_helper_array_to_heap()
65 ECMA_TRY_CATCH (swap_compare_value, sort_cb (array_p[child], swap, compare_func), ret_value); in ecma_builtin_helper_array_to_heap()
78 array_p[parent] = array_p[child]; in ecma_builtin_helper_array_to_heap()
94 array_p[parent] = swap; in ecma_builtin_helper_array_to_heap()
111 ecma_builtin_helper_array_heap_sort_helper (ecma_value_t *array_p, /**< array to sort */ in ecma_builtin_helper_array_heap_sort_helper() argument
122 … ecma_builtin_helper_array_to_heap (array_p, i - 1, right, compare_func, sort_cb), in ecma_builtin_helper_array_heap_sort_helper()
134 ecma_value_t swap = array_p[0]; in ecma_builtin_helper_array_heap_sort_helper()
135 array_p[0] = array_p[i]; in ecma_builtin_helper_array_heap_sort_helper()
[all …]
Decma-builtin-string-prototype.c822 ecma_object_t *array_p = ecma_get_object_from_value (result); in ecma_builtin_string_prototype_object_split() local
828 ecma_value_t put_result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_builtin_string_prototype_object_split()
841 ecma_value_t put_result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_builtin_string_prototype_object_split()
879 ecma_value_t put_result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_builtin_string_prototype_object_split()
901 ecma_value_t put_result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_builtin_string_prototype_object_split()
Decma-builtin-json.c550 ecma_object_t *array_p = ecma_get_object_from_value (array_construction); in ecma_builtin_json_parse_value() local
556 return ecma_make_object_value (array_p); in ecma_builtin_json_parse_value()
570 completion = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_builtin_json_parse_value()
581 return ecma_make_object_value (array_p); in ecma_builtin_json_parse_value()
594 ecma_deref_object (array_p); in ecma_builtin_json_parse_value()
Decma-builtin-helpers.h241 ecma_value_t ecma_builtin_helper_array_heap_sort_helper (ecma_value_t *array_p,
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-arraybuffer-object.c197 ecma_arraybuffer_external_info *array_p = (ecma_arraybuffer_external_info *) ext_object_p; in ecma_arraybuffer_get_buffer() local
198 return (lit_utf8_byte_t *) array_p->buffer_p; in ecma_arraybuffer_get_buffer()
221 ecma_arraybuffer_external_info *array_p = (ecma_arraybuffer_external_info *) ext_object_p; in ecma_arraybuffer_is_detached() local
223 return array_p->buffer_p == NULL; in ecma_arraybuffer_is_detached()
244 ecma_arraybuffer_external_info *array_p = (ecma_arraybuffer_external_info *) ext_object_p; in ecma_arraybuffer_is_detachable() local
246 return array_p->buffer_p != NULL; in ecma_arraybuffer_is_detachable()
Decma-array-object.h74 ecma_op_array_is_fast_array (ecma_extended_object_t *array_p);
119 uint32_t ecma_array_get_length (ecma_object_t *array_p);
Decma-array-object.c116 ecma_op_array_is_fast_array (ecma_extended_object_t *array_p) /**< ecma-array-object */ in ecma_op_array_is_fast_array() argument
118 JERRY_ASSERT (ecma_get_object_type ((ecma_object_t *) array_p) == ECMA_OBJECT_TYPE_ARRAY); in ecma_op_array_is_fast_array()
120 return array_p->u.array.u.length_prop & ECMA_FAST_ARRAY_FLAG; in ecma_op_array_is_fast_array()
1192 ecma_array_get_length (ecma_object_t *array_p) /**< array object */ in ecma_array_get_length() argument
1194 JERRY_ASSERT (ecma_get_object_type (array_p) == ECMA_OBJECT_TYPE_ARRAY); in ecma_array_get_length()
1196 return ((ecma_extended_object_t *) array_p)->u.array.length; in ecma_array_get_length()
Decma-regexp-object.c2134 ecma_object_t *const array_p = ecma_get_object_from_value (array); in ecma_regexp_split_helper() local
2149 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
2229 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
2273 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
2296 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
2307 ecma_deref_object (array_p); in ecma_regexp_split_helper()
2344 ecma_object_t *const array_p = ecma_get_object_from_value (array); in ecma_regexp_split_helper()
2385 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
2418 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
2438 result = ecma_builtin_helper_def_prop_by_index (array_p, in ecma_regexp_split_helper()
[all …]
/third_party/jerryscript/jerry-core/vm/
Dvm-utils.c112 ecma_object_t *array_p = ecma_get_object_from_value (result_array); in vm_get_backtrace() local
113 JERRY_ASSERT (ecma_op_object_is_fast_array (array_p)); in vm_get_backtrace()
124 ecma_fast_array_set_property (array_p, index, ecma_make_string_value (func_name)); in vm_get_backtrace()
128 ecma_fast_array_set_property (array_p, index, ecma_make_string_value (str_p)); in vm_get_backtrace()
Dvm.c2069 ecma_object_t *array_p = ecma_op_new_fast_array_object (0); in vm_loop() local
2079 ecma_deref_object (array_p); in vm_loop()
2093 ecma_deref_object (array_p); in vm_loop()
2098 bool set_result = ecma_fast_array_set_property (array_p, index++, value); in vm_loop()
2103 *stack_top_p++ = ecma_make_object_value (array_p); in vm_loop()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-gc.c1135 … ecma_arraybuffer_external_info *array_p = (ecma_arraybuffer_external_info *) ext_object_p; in ecma_gc_free_object() local
1136 JERRY_ASSERT (array_p != NULL); in ecma_gc_free_object()
1138 if (array_p->free_cb != NULL) in ecma_gc_free_object()
1140 (array_p->free_cb) (array_p->buffer_p); in ecma_gc_free_object()
/third_party/jerryscript/jerry-core/api/
Djerry.c4309 ecma_object_t *array_p = ecma_get_object_from_value (value); in jerry_get_typedarray_type() local
4310 ecma_typedarray_type_t class_type = ecma_get_typedarray_id (array_p); in jerry_get_typedarray_type()
4339 ecma_object_t *array_p = ecma_get_object_from_value (value); in jerry_get_typedarray_length() local
4340 return ecma_typedarray_get_length (array_p); in jerry_get_typedarray_length()
4374 ecma_object_t *array_p = ecma_get_object_from_value (value); in jerry_get_typedarray_buffer() local
4375 uint8_t shift = ecma_typedarray_get_element_size_shift (array_p); in jerry_get_typedarray_buffer()
4379 *byte_length = (jerry_length_t) (ecma_typedarray_get_length (array_p) << shift); in jerry_get_typedarray_buffer()
4384 *byte_offset = (jerry_length_t) ecma_typedarray_get_offset (array_p); in jerry_get_typedarray_buffer()
4387 ecma_object_t *arraybuffer_p = ecma_typedarray_get_arraybuffer (array_p); in jerry_get_typedarray_buffer()