/third_party/jerryscript/jerry-core/vm/ |
D | opcodes.h | 62 ecma_value_t 65 ecma_value_t 66 vm_set_var (ecma_object_t *lex_env_p, ecma_string_t *var_name_str_p, bool is_strict, ecma_value_t l… 68 ecma_value_t 69 opfunc_equality (ecma_value_t left_value, ecma_value_t right_value); 71 ecma_value_t 72 do_number_arithmetic (number_arithmetic_op op, ecma_value_t left_value, ecma_value_t right_value); 74 ecma_value_t 75 opfunc_unary_operation (ecma_value_t left_value, bool is_plus); 77 ecma_value_t [all …]
|
D | opcodes.c | 52 inline ecma_value_t JERRY_ATTR_ALWAYS_INLINE 57 ecma_value_t has_binding = ecma_op_has_binding (lex_env_p, var_name_str_p); in vm_var_decl() 68 ecma_value_t completion_value = ecma_op_create_mutable_binding (lex_env_p, in vm_var_decl() 91 inline ecma_value_t JERRY_ATTR_ALWAYS_INLINE 95 ecma_value_t lit_value) /**< function value */ in vm_set_var() 97 ecma_value_t put_value_result; in vm_set_var() 117 ecma_value_t 118 opfunc_typeof (ecma_value_t left_value) /**< left value */ in opfunc_typeof() 128 ecma_value_t object, /**< object value */ in opfunc_set_accessor() 130 ecma_value_t accessor) /**< accessor value */ in opfunc_set_accessor() [all …]
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-objects.h | 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… 41 ecma_value_t receiver); 42 ecma_value_t ecma_op_object_get_length (ecma_object_t *object_p, uint32_t *length_p); [all …]
|
D | ecma-container-object.h | 32 ecma_value_t ecma_op_container_create (const ecma_value_t *arguments_list_p, ecma_length_t argument… 34 ecma_value_t ecma_op_container_size (ecma_value_t this_arg, lit_magic_string_id_t lit_id); 35 ecma_value_t ecma_op_container_get (ecma_value_t this_arg, ecma_value_t key_arg, lit_magic_string_i… 36 ecma_value_t ecma_op_container_foreach (ecma_value_t this_arg, ecma_value_t predicate, ecma_value_t… 38 ecma_value_t ecma_op_container_has (ecma_value_t this_arg, ecma_value_t key_arg, lit_magic_string_i… 39 ecma_value_t ecma_op_container_set (ecma_value_t this_arg, ecma_value_t key_arg, ecma_value_t value… 41 ecma_value_t ecma_op_container_clear (ecma_value_t this_arg, lit_magic_string_id_t lit_id); 42 ecma_value_t ecma_op_container_delete (ecma_value_t this_arg, ecma_value_t key_arg, lit_magic_strin… 43 ecma_value_t ecma_op_container_delete_weak (ecma_value_t this_arg, ecma_value_t key_arg, lit_magic_… 44 void ecma_op_container_unref_weak (ecma_object_t *object_p, ecma_value_t ref_holder); [all …]
|
D | ecma-proxy-object.h | 31 ecma_proxy_create (ecma_value_t target, 32 ecma_value_t handler); 35 ecma_proxy_create_revocable (ecma_value_t target, 36 ecma_value_t handler); 38 ecma_value_t 39 ecma_proxy_revoke_cb (const ecma_value_t function_obj, 40 const ecma_value_t this_val, 41 const ecma_value_t args_p[], 45 ecma_proxy_object_prototype_to_cp (ecma_value_t proto); 47 ecma_value_t [all …]
|
D | ecma-conversion.h | 40 ecma_value_t ecma_op_check_object_coercible (ecma_value_t value); 41 bool ecma_op_same_value (ecma_value_t x, ecma_value_t y); 43 bool ecma_op_same_value_zero (ecma_value_t x, ecma_value_t y); 45 ecma_value_t ecma_op_to_primitive (ecma_value_t value, ecma_preferred_type_hint_t preferred_type); 46 bool ecma_op_to_boolean (ecma_value_t value); 47 ecma_value_t ecma_op_to_number (ecma_value_t value); 48 ecma_value_t ecma_get_number (ecma_value_t value, ecma_number_t *number_p); 49 ecma_string_t *ecma_op_to_string (ecma_value_t value); 50 ecma_string_t *ecma_op_to_prop_name (ecma_value_t value); 51 ecma_value_t ecma_op_to_object (ecma_value_t value); [all …]
|
D | ecma-proxy-object.c | 49 ecma_proxy_validate (ecma_value_t argument) /**< argument to validate */ in ecma_proxy_validate() 72 ecma_proxy_create (ecma_value_t target, /**< proxy target */ in ecma_proxy_create() 73 ecma_value_t handler) /**< proxy handler */ in ecma_proxy_create() 106 ecma_value_t 107 ecma_proxy_revoke_cb (const ecma_value_t function_obj, /**< the function itself */ in ecma_proxy_revoke_cb() 108 const ecma_value_t this_val, /**< this_arg of the function */ in ecma_proxy_revoke_cb() 109 const ecma_value_t args_p[], /**< argument list */ in ecma_proxy_revoke_cb() 152 ecma_proxy_create_revocable (ecma_value_t target, /**< target argument */ in ecma_proxy_create_revocable() 153 ecma_value_t handler) /**< handler argument */ in ecma_proxy_create_revocable() 164 ecma_value_t proxy_value = ecma_make_object_value (proxy_p); in ecma_proxy_create_revocable() [all …]
|
D | ecma-iterator-object.h | 46 ecma_value_t 47 ecma_op_create_iterator_object (ecma_value_t iterated_value, ecma_object_t *prototype_obj_p, 50 ecma_value_t 51 ecma_create_iter_result_object (ecma_value_t value, ecma_value_t done); 53 ecma_value_t 54 ecma_create_array_from_iter_element (ecma_value_t value, ecma_value_t index_value); 56 ecma_value_t 57 ecma_op_get_iterator (ecma_value_t value, ecma_value_t method); 59 ecma_value_t 60 ecma_op_iterator_value (ecma_value_t iter_result); [all …]
|
D | ecma-iterator-object.c | 51 ecma_value_t 52 ecma_create_array_from_iter_element (ecma_value_t value, /**< value */ in ecma_create_array_from_iter_element() 53 ecma_value_t index_value) /**< iterator index */ in ecma_create_array_from_iter_element() 56 ecma_value_t new_array = ecma_op_create_array_object (NULL, 0, false); in ecma_create_array_from_iter_element() 66 ecma_value_t completion = ecma_builtin_helper_def_prop (new_array_p, in ecma_create_array_from_iter_element() 92 ecma_value_t 93 ecma_create_iter_result_object (ecma_value_t value, /**< value */ in ecma_create_iter_result_object() 94 ecma_value_t done) /**< ECMA_VALUE_{TRUE,FALSE} based in ecma_create_iter_result_object() 135 ecma_value_t 136 ecma_op_create_iterator_object (ecma_value_t iterated_value, /**< value from create iterator */ in ecma_op_create_iterator_object() [all …]
|
D | ecma-regexp-object.h | 111 ecma_value_t 156 ecma_value_t ecma_regexp_exec_helper (ecma_object_t *regexp_object_p, 158 ecma_string_t *ecma_regexp_read_pattern_str_helper (ecma_value_t pattern_arg); 160 ecma_value_t ecma_regexp_parse_flags (ecma_string_t *flags_str_p, uint16_t *flags_p); 164 ecma_value_t ecma_regexp_replace_helper (ecma_value_t this_arg, ecma_value_t string_arg, ecma_value… 165 ecma_value_t ecma_regexp_search_helper (ecma_value_t regexp_arg, ecma_value_t string_arg); 166 ecma_value_t ecma_regexp_split_helper (ecma_value_t this_arg, ecma_value_t string_arg, ecma_value_t… 167 ecma_value_t ecma_regexp_match_helper (ecma_value_t this_arg, ecma_value_t string_arg); 169 ecma_value_t ecma_op_regexp_exec (ecma_value_t this_arg, ecma_string_t *str_p); 171 ecma_value_t ecma_op_create_regexp_from_bytecode (ecma_object_t *regexp_obj_p, re_compiled_code_t *… [all …]
|
D | ecma-promise-object.c | 56 ecma_value_t 71 ecma_value_t result) /**< the result value */ in ecma_promise_set_result() 118 ecma_value_t value, /**< value for resolve or reject */ in ecma_promise_trigger_reactions() 121 ecma_value_t *buffer_p = reactions->buffer_p; in ecma_promise_trigger_reactions() 122 ecma_value_t *buffer_end_p = buffer_p + reactions->item_count; in ecma_promise_trigger_reactions() 126 ecma_value_t capability_with_tag = *buffer_p++; in ecma_promise_trigger_reactions() 128 ecma_value_t capability = ecma_make_object_value (capability_obj_p); in ecma_promise_trigger_reactions() 132 ecma_value_t handler = ECMA_VALUE_TRUE; in ecma_promise_trigger_reactions() 148 ecma_value_t handler = ECMA_VALUE_FALSE; in ecma_promise_trigger_reactions() 183 ecma_value_t already_resolved = ECMA_PROPERTY_VALUE_PTR (property_p)->value; in ecma_is_resolver_already_called() [all …]
|
D | ecma-container-object.c | 51 ecma_collection_push_back (collection_p, (ecma_value_t) 0); in ecma_op_create_internal_buffer() 61 ecma_value_t key_arg, /**< key argument */ in ecma_op_internal_buffer_append() 62 ecma_value_t value_arg, /**< value argument */ in ecma_op_internal_buffer_append() 69 …ecma_value_t values[] = { ecma_copy_value_if_not_object (key_arg), ecma_copy_value_if_not_object (… in ecma_op_internal_buffer_append() 84 ecma_op_internal_buffer_update (ecma_value_t *entry_p, /**< entry pointer */ in ecma_op_internal_buffer_update() 85 ecma_value_t value_arg, /**< value argument */ in ecma_op_internal_buffer_update() 126 static ecma_value_t * 128 ecma_value_t key_arg, /**< key argument */ in ecma_op_internal_buffer_find() 135 ecma_value_t *start_p = ECMA_CONTAINER_START (container_p); in ecma_op_internal_buffer_find() 139 ecma_value_t *entry_p = start_p + i; in ecma_op_internal_buffer_find() [all …]
|
D | ecma-lex-env.h | 51 ecma_value_t ecma_op_get_value_lex_env_base (ecma_object_t *lex_env_p, ecma_object_t **ref_base_lex… 53 ecma_value_t ecma_op_get_value_object_base (ecma_value_t base_value, ecma_string_t *property_name_p… 54 ecma_value_t ecma_op_put_value_lex_env_base (ecma_object_t *lex_env_p, ecma_string_t *var_name_stri… 55 bool is_strict, ecma_value_t value); 58 ecma_value_t ecma_op_has_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p); 59 ecma_value_t ecma_op_create_mutable_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p, bool … 60 ecma_value_t ecma_op_set_mutable_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p, ecma_val… 62 ecma_value_t ecma_op_get_binding_value (ecma_object_t *lex_env_p, ecma_string_t *name_p, bool is_st… 63 ecma_value_t ecma_op_delete_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p); 64 ecma_value_t ecma_op_implicit_this_value (ecma_object_t *lex_env_p); [all …]
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-promise.c | 55 inline static ecma_value_t 56 ecma_builtin_promise_reject_abrupt (ecma_value_t value, /**< value */ in ecma_builtin_promise_reject_abrupt() 57 ecma_value_t capability) /**< capability */ in ecma_builtin_promise_reject_abrupt() 64 ecma_value_t reason = jcontext_take_exception (); in ecma_builtin_promise_reject_abrupt() 65 ecma_value_t reject = ecma_op_object_get_by_magic_id (ecma_get_object_from_value (capability), in ecma_builtin_promise_reject_abrupt() 68 ecma_value_t call_ret = ecma_op_function_call (ecma_get_object_from_value (reject), in ecma_builtin_promise_reject_abrupt() 95 static ecma_value_t 96 ecma_builtin_promise_reject (ecma_value_t this_arg, /**< 'this' argument */ in ecma_builtin_promise_reject() 97 ecma_value_t reason) /**< the reason for reject */ in ecma_builtin_promise_reject() 111 static ecma_value_t [all …]
|
D | ecma-builtin-map-prototype.c | 46 static ecma_value_t 47 ecma_builtin_map_prototype_object_clear (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_map_prototype_object_clear() 61 static ecma_value_t 62 ecma_builtin_map_prototype_object_delete (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_map_prototype_object_delete() 63 ecma_value_t key_arg) /**< key argument */ in ecma_builtin_map_prototype_object_delete() 77 static ecma_value_t 78 ecma_builtin_map_prototype_object_foreach (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_map_prototype_object_foreach() 79 ecma_value_t predicate, /**< callback function */ in ecma_builtin_map_prototype_object_foreach() 80 ecma_value_t predicate_this_arg) /**< this argument for in ecma_builtin_map_prototype_object_foreach() 95 static ecma_value_t [all …]
|
D | ecma-builtin-set-prototype.c | 46 static ecma_value_t 47 ecma_builtin_set_prototype_object_add (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_set_prototype_object_add() 48 ecma_value_t value_arg) /**< value argument */ in ecma_builtin_set_prototype_object_add() 62 static ecma_value_t 63 ecma_builtin_set_prototype_object_clear (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_set_prototype_object_clear() 77 static ecma_value_t 78 ecma_builtin_set_prototype_object_delete (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_set_prototype_object_delete() 79 ecma_value_t value_arg) /**< value argument */ in ecma_builtin_set_prototype_object_delete() 93 static ecma_value_t 94 ecma_builtin_set_prototype_object_foreach (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_set_prototype_object_foreach() [all …]
|
D | ecma-builtin-regexp-prototype.c | 59 static ecma_value_t 60 ecma_builtin_regexp_prototype_flags_helper (ecma_value_t this, /**< this value */ in ecma_builtin_regexp_prototype_flags_helper() 87 static ecma_value_t 88 ecma_builtin_regexp_prototype_get_flags (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_regexp_prototype_get_flags() 118 ecma_value_t result = ecma_op_object_get_by_magic_id (object_p, flag_lit_ids[i]); in ecma_builtin_regexp_prototype_get_flags() 144 static ecma_value_t 216 static ecma_value_t 217 ecma_builtin_regexp_prototype_get_source (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_regexp_prototype_get_source() 243 static ecma_value_t 244 ecma_builtin_regexp_prototype_get_global (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_regexp_prototype_get_global() [all …]
|
D | ecma-builtin-array-prototype.c | 101 static ecma_value_t 105 ecma_value_t length_value = ecma_make_number_value (length); in ecma_builtin_array_prototype_helper_set_length() 106 ecma_value_t ret_value = ecma_op_object_put (object, in ecma_builtin_array_prototype_helper_set_length() 128 static ecma_value_t 129 ecma_builtin_array_prototype_object_to_string (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_array_prototype_object_to_string() 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() 151 ecma_value_t ret_value = ecma_op_function_call (join_func_obj_p, this_arg, NULL, 0); in ecma_builtin_array_prototype_object_to_string() 167 static ecma_value_t 218 static ecma_value_t 219 ecma_builtin_array_prototype_object_concat (const ecma_value_t args[], /**< arguments list */ in ecma_builtin_array_prototype_object_concat() [all …]
|
D | ecma-builtin-array.c | 59 static ecma_value_t 60 ecma_builtin_array_object_is_array (ecma_value_t this_arg, /**< 'this' argument */ in ecma_builtin_array_object_is_array() 61 ecma_value_t arg) /**< first argument */ in ecma_builtin_array_object_is_array() 78 static ecma_value_t 79 ecma_builtin_array_object_from (ecma_value_t this_arg, /**< 'this' argument */ in ecma_builtin_array_object_from() 80 const ecma_value_t *arguments_list_p, /**< arguments list */ in ecma_builtin_array_object_from() 84 ecma_value_t constructor = this_arg; in ecma_builtin_array_object_from() 85 ecma_value_t call_this_arg = ECMA_VALUE_UNDEFINED; in ecma_builtin_array_object_from() 86 ecma_value_t items = arguments_list_p[0]; in ecma_builtin_array_object_from() 87 ecma_value_t mapfn = (arguments_list_len > 1) ? arguments_list_p[1] : ECMA_VALUE_UNDEFINED; in ecma_builtin_array_object_from() [all …]
|
D | ecma-builtin-object.c | 91 ecma_value_t 92 ecma_builtin_object_dispatch_call (const ecma_value_t *arguments_list_p, /**< arguments list */ in ecma_builtin_object_dispatch_call() 112 ecma_value_t 113 ecma_builtin_object_dispatch_construct (const ecma_value_t *arguments_list_p, /**< arguments list */ in ecma_builtin_object_dispatch_construct() 137 ecma_value_t 169 ecma_value_t 170 ecma_builtin_object_object_set_prototype_of (ecma_value_t arg1, /**< routine's first argument */ in ecma_builtin_object_object_set_prototype_of() 171 ecma_value_t arg2) /**< routine's second argument */ in ecma_builtin_object_object_set_prototype_of() 192 ecma_value_t status; in ecma_builtin_object_object_set_prototype_of() 233 ecma_value_t [all …]
|
D | ecma-builtin-helpers.h | 44 ecma_value_t 45 ecma_builtin_helper_object_to_string (const ecma_value_t this_arg); 48 ecma_value_t 50 ecma_value_t 51 ecma_builtin_helper_array_concat_value (ecma_object_t *obj_p, uint32_t *length_p, ecma_value_t valu… 53 ecma_builtin_helper_array_index_normalize (ecma_value_t arg, uint32_t length, uint32_t *number_p); 56 ecma_value_t 57 ecma_builtin_helper_string_prototype_object_index_of (ecma_string_t *original_str_p, ecma_value_t a… 58 … ecma_value_t arg2, ecma_string_index_of_mode_t mode); 62 ecma_value_t [all …]
|
D | ecma-builtin-number.c | 54 ecma_value_t 55 ecma_builtin_number_dispatch_call (const ecma_value_t *arguments_list_p, /**< arguments list */ in ecma_builtin_number_dispatch_call() 60 ecma_value_t ret_value = ECMA_VALUE_EMPTY; in ecma_builtin_number_dispatch_call() 79 ecma_value_t 80 ecma_builtin_number_dispatch_construct (const ecma_value_t *arguments_list_p, /**< arguments list */ in ecma_builtin_number_dispatch_construct() 87 ecma_value_t completion = ecma_op_create_number_object (ecma_make_integer_value (0)); in ecma_builtin_number_dispatch_construct() 107 static ecma_value_t 108 ecma_builtin_number_object_is_finite (ecma_value_t this_arg, /**< this argument */ in ecma_builtin_number_object_is_finite() 109 ecma_value_t arg) /**< routine's argument */ in ecma_builtin_number_object_is_finite() 133 static ecma_value_t [all …]
|
/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-helpers-value.c | 36 JERRY_STATIC_ASSERT (sizeof (jmem_cpointer_t) <= sizeof (ecma_value_t), 45 JERRY_STATIC_ASSERT (sizeof (uintptr_t) <= sizeof (ecma_value_t), 50 JERRY_STATIC_ASSERT (sizeof (uintptr_t) > sizeof (ecma_value_t), 72 ecma_get_value_type_field (ecma_value_t value) /**< ecma value */ in ecma_get_value_type_field() 82 static inline ecma_value_t JERRY_ATTR_PURE JERRY_ATTR_ALWAYS_INLINE 90 return (ecma_value_t) uint_ptr; in ecma_pointer_to_ecma_value() 96 return ((ecma_value_t) ptr_cp) << ECMA_VALUE_SHIFT; in ecma_pointer_to_ecma_value() 107 ecma_get_pointer_from_ecma_value (ecma_value_t value) /**< value */ in ecma_get_pointer_from_ecma_value() 125 ecma_is_value_direct (ecma_value_t value) /**< ecma value */ in ecma_is_value_direct() 137 ecma_is_value_simple (ecma_value_t value) /**< ecma value */ in ecma_is_value_simple() [all …]
|
D | ecma-helpers.h | 130 (field) = ((ecma_value_t) pointer) 136 (field) = ((ecma_value_t) pointer) 214 ecma_type_t JERRY_ATTR_CONST ecma_get_value_type_field (ecma_value_t value); 215 bool JERRY_ATTR_CONST ecma_is_value_direct (ecma_value_t value); 216 bool JERRY_ATTR_CONST ecma_is_value_simple (ecma_value_t value); 217 bool JERRY_ATTR_CONST ecma_is_value_empty (ecma_value_t value); 218 bool JERRY_ATTR_CONST ecma_is_value_undefined (ecma_value_t value); 219 bool JERRY_ATTR_CONST ecma_is_value_null (ecma_value_t value); 220 bool JERRY_ATTR_CONST ecma_is_value_boolean (ecma_value_t value); 221 bool JERRY_ATTR_CONST ecma_is_value_true (ecma_value_t value); [all …]
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ |
D | ecma-builtin-typedarray-prototype.c | 68 static ecma_value_t 69 ecma_builtin_typedarray_prototype_buffer_getter (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_typedarray_prototype_buffer_getter() 92 static ecma_value_t 93 ecma_builtin_typedarray_prototype_bytelength_getter (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_typedarray_prototype_bytelength_getter() 115 static ecma_value_t 116 ecma_builtin_typedarray_prototype_byteoffset_getter (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_typedarray_prototype_byteoffset_getter() 137 static ecma_value_t 138 ecma_builtin_typedarray_prototype_length_getter (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_typedarray_prototype_length_getter() 160 static ecma_value_t 161 ecma_builtin_typedarray_prototype_to_string_tag_getter (ecma_value_t this_arg) /**< this argument */ in ecma_builtin_typedarray_prototype_to_string_tag_getter() [all …]
|