/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-helpers.h | 250 ecma_value_t JERRY_ATTR_PURE ecma_make_string_value (const ecma_string_t *ecma_string_p); 252 ecma_value_t JERRY_ATTR_PURE ecma_make_symbol_value (const ecma_string_t *ecma_symbol_p); 254 ecma_value_t JERRY_ATTR_PURE ecma_make_prop_name_value (const ecma_string_t *ecma_prop_name_p); 262 ecma_string_t JERRY_ATTR_PURE *ecma_get_string_from_value (ecma_value_t value); 264 ecma_string_t JERRY_ATTR_PURE *ecma_get_symbol_from_value (ecma_value_t value); 266 ecma_string_t JERRY_ATTR_PURE *ecma_get_prop_name_from_value (ecma_value_t value); 286 ecma_string_t *ecma_new_symbol_from_descriptor_string (ecma_value_t string_desc); 287 bool ecma_prop_name_is_symbol (ecma_string_t *string_p); 288 uint32_t ecma_op_advance_string_index (ecma_string_t *str_p, uint32_t index, bool is_unicode); 291 ecma_string_t *ecma_new_map_key_string (ecma_value_t value); [all …]
|
D | ecma-module.h | 34 ecma_string_t *imex_name_p; /**< Import/export name of the item */ 35 ecma_string_t *local_name_p; /**< Local name of the item */ 83 ecma_string_t *path_p; /**< path of the module */ 96 ecma_string_t *name_p; /**< identifier name */ 115 ecma_string_t *export_name_p; /**< export identifier name */ 121 ecma_string_t *const export_name_p); 126 ecma_string_t *const export_name_p); 129 ecma_string_t *ecma_module_create_normalized_path (const uint8_t *char_p, 131 ecma_module_t *ecma_module_find_module (ecma_string_t *const path_p); 132 ecma_module_t *ecma_module_create_native_module (ecma_string_t *const path_p, [all …]
|
D | ecma-helpers-string.c | 130 ecma_string_get_chars_fast (const ecma_string_t *string_p, /**< ecma-string */ in ecma_string_get_chars_fast() 187 static ecma_string_t * 196 return (ecma_string_t *) ECMA_CREATE_DIRECT_STRING (ECMA_DIRECT_STRING_MAGIC, string_id); in ecma_new_ecma_string_from_magic_string_ex_id() 199 ecma_string_t *string_desc_p = ecma_alloc_string (); in ecma_new_ecma_string_from_magic_string_ex_id() 213 ecma_string_t * 224 return (ecma_string_t *) symbol_p; in ecma_new_symbol_from_descriptor_string() 234 ecma_prop_name_is_symbol (ecma_string_t *string_p) /**< ecma-string */ in ecma_prop_name_is_symbol() 248 static inline ecma_string_t * JERRY_ATTR_ALWAYS_INLINE 263 return (ecma_string_t *) string_desc_p; in ecma_new_ecma_string_from_utf8_buffer() 275 return (ecma_string_t *) string_desc_p; in ecma_new_ecma_string_from_utf8_buffer() [all …]
|
D | ecma-alloc.c | 131 inline ecma_string_t * JERRY_ATTR_ALWAYS_INLINE 135 jmem_stats_allocate_string_bytes (sizeof (ecma_string_t)); in ecma_alloc_string() 138 return (ecma_string_t *) jmem_pools_alloc (sizeof (ecma_string_t)); in ecma_alloc_string() 145 ecma_dealloc_string (ecma_string_t *string_p) /**< string to be freed */ in ecma_dealloc_string() 148 jmem_stats_free_string_bytes (sizeof (ecma_string_t)); in ecma_dealloc_string() 151 jmem_pools_free (string_p, sizeof (ecma_string_t)); in ecma_dealloc_string() 187 inline ecma_string_t * JERRY_ATTR_ALWAYS_INLINE 201 ecma_dealloc_string_buffer (ecma_string_t *string_p, /**< string with data */ in ecma_dealloc_string_buffer()
|
D | ecma-alloc.h | 69 ecma_string_t *ecma_alloc_string (void); 74 void ecma_dealloc_string (ecma_string_t *string_p); 93 ecma_string_t *ecma_alloc_string_buffer (size_t size); 98 void ecma_dealloc_string_buffer (ecma_string_t *string_p, size_t size);
|
D | ecma-helpers-value.c | 591 ecma_make_string_value (const ecma_string_t *ecma_string_p) /**< string to reference in value */ in ecma_make_string_value() 595 JERRY_ASSERT (!ecma_prop_name_is_symbol ((ecma_string_t *) ecma_string_p)); in ecma_make_string_value() 613 ecma_make_symbol_value (const ecma_string_t *ecma_symbol_p) /**< symbol to reference in value */ in ecma_make_symbol_value() 616 JERRY_ASSERT (ecma_prop_name_is_symbol ((ecma_string_t *) ecma_symbol_p)); in ecma_make_symbol_value() 628 ecma_make_prop_name_value (const ecma_string_t *ecma_prop_name_p) /**< property name to reference i… in ecma_make_prop_name_value() 633 if (ecma_prop_name_is_symbol ((ecma_string_t *) ecma_prop_name_p)) in ecma_make_prop_name_value() 739 inline ecma_string_t *JERRY_ATTR_PURE JERRY_ATTR_ALWAYS_INLINE 746 return (ecma_string_t *) (uintptr_t) value; in ecma_get_string_from_value() 749 return (ecma_string_t *) ecma_get_pointer_from_ecma_value (value); in ecma_get_string_from_value() 758 inline ecma_string_t *JERRY_ATTR_PURE JERRY_ATTR_ALWAYS_INLINE [all …]
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-objects.h | 30 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 …op_object_find_own (ecma_value_t base_value, ecma_object_t *object_p, ecma_string_t *property_name… 35 ecma_value_t ecma_op_object_find (ecma_object_t *object_p, ecma_string_t *property_name_p); 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… 46 ecma_string_t *ecma_op_get_global_symbol (lit_magic_string_id_t property_id); 51 ecma_value_t ecma_op_object_put_with_receiver (ecma_object_t *object_p, ecma_string_t *property_nam… [all …]
|
D | ecma-lex-env.h | 52 ecma_string_t *name_p); 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… 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); 67 void ecma_op_create_immutable_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p, ecma_value_… 70 void ecma_op_initialize_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p, ecma_value_t valu…
|
D | ecma-proxy-object.h | 49 ecma_string_t *prop_name_p); 68 ecma_string_t *prop_name_p, 73 ecma_string_t *prop_name_p, 78 ecma_string_t *prop_name_p); 82 ecma_string_t *prop_name_p, 87 ecma_string_t *prop_name_p, 93 ecma_string_t *prop_name_p);
|
D | ecma-objects.c | 73 ecma_string_t *property_name_p, /**< property name */ in ecma_op_object_get_own_property() 102 ecma_string_t *prim_value_str_p = ecma_get_string_from_value (prim_value_p); in ecma_op_object_get_own_property() 116 ecma_string_t *prim_value_str_p = ecma_get_string_from_value (prim_value_p); in ecma_op_object_get_own_property() 123 ecma_string_t *char_str_p = ecma_new_ecma_string_from_code_unit (char_at_idx); in ecma_op_object_get_own_property() 221 ecma_string_t *num_to_str = ecma_new_ecma_string_from_number (num); in ecma_op_object_get_own_property() 320 ecma_string_t *arg_name_p = ecma_get_string_from_value (arg_Literal_p[index]); in ecma_op_object_get_own_property() 363 ecma_string_t *property_name_p, /**< property name */ in ecma_op_object_get_property() 406 ecma_string_t *property_name_p) /**< property name */ in ecma_op_object_has_property() 447 ecma_string_t *property_name_p) /**< property name */ in ecma_op_object_find_own() 468 ecma_string_t *prim_value_str_p = ecma_get_string_from_value (prim_value_p); in ecma_op_object_find_own() [all …]
|
D | ecma-symbol-object.c | 59 ecma_string_t *str_p = ecma_op_to_string (arguments_list_p[0]); in ecma_op_create_symbol() 104 ecma_string_t * 105 ecma_get_symbol_description (ecma_string_t *symbol_p) /**< ecma-symbol */ in ecma_get_symbol_description() 128 ecma_string_t *symbol_p = ecma_get_symbol_from_value (symbol_value); in ecma_get_symbol_descriptive_string() 129 ecma_string_t *string_desc_p = ecma_get_symbol_description (symbol_p); in ecma_get_symbol_descriptive_string()
|
D | ecma-objects-arguments.c | 101 ecma_string_t *name_p = ecma_get_string_from_value (arg_Literal_p[i]); in ecma_op_create_arguments_object() 121 ecma_string_t *index_string_p = ecma_new_ecma_string_from_uint32 (index); in ecma_op_create_arguments_object() 145 ecma_string_t *symbol_p = ecma_op_get_global_symbol (LIT_GLOBAL_SYMBOL_ITERATOR); in ecma_op_create_arguments_object() 196 ecma_string_t *arguments_string_p = ecma_get_magic_string (LIT_MAGIC_STRING_ARGUMENTS); in ecma_op_create_arguments_object() 234 ecma_string_t *property_name_p, /**< property name */ in ecma_op_arguments_object_define_own_property() 269 ecma_string_t *name_p = ecma_get_string_from_value (arg_Literal_p[index]); in ecma_op_arguments_object_define_own_property() 315 ecma_string_t *property_name_p, /**< property name */ in ecma_op_arguments_object_delete() 342 ecma_string_t *name_p = ecma_get_string_from_value (arg_Literal_p[index]); in ecma_op_arguments_object_delete()
|
D | ecma-regexp-object.h | 157 ecma_string_t *input_string_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); 162 ecma_string_t *source_p, 169 ecma_value_t ecma_op_regexp_exec (ecma_value_t this_arg, ecma_string_t *str_p);
|
D | ecma-promise-object.c | 173 …ecma_string_t *str_already_resolved_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_ALREADY_R… in ecma_is_resolver_already_called() 386 …ecma_string_t *capability_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERT… in ecma_call_builtin_executor() 387 …ecma_string_t *resolve_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_R… in ecma_call_builtin_executor() 388 …ecma_string_t *reject_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_RE… in ecma_call_builtin_executor() 441 ecma_string_t *str_promise_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE); in ecma_promise_create_resolving_functions_helper() 477 …ecma_string_t *str_already_resolved_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_ALREADY_R… in ecma_promise_create_resolving_functions() 548 ecma_string_t *str_resolve_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_RESOLVE_FUNCTION); in ecma_op_create_promise_object() 549 ecma_string_t *str_reject_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_REJECT_FUNCTION); in ecma_op_create_promise_object() 701 …ecma_string_t *capability_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERT… in ecma_promise_new_capability() 702 …ecma_string_t *promise_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_P… in ecma_promise_new_capability() [all …]
|
D | ecma-lex-env.c | 129 ecma_string_t *name_p) /**< argument N */ in ecma_op_has_binding() 160 ecma_string_t *name_p, /**< argument N */ in ecma_op_create_mutable_binding() 223 ecma_string_t *name_p, /**< argument N */ in ecma_op_set_mutable_binding() 285 ecma_string_t *name_p, /**< argument N */ in ecma_op_get_binding_value() 338 ecma_string_t *name_p) /**< argument N */ in ecma_op_delete_binding() 417 ecma_string_t *name_p, /**< argument N */ in ecma_op_create_immutable_binding() 444 ecma_string_t *name_p, /**< argument N */ in ecma_op_initialize_binding() 472 ecma_string_t *prop_name_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_THIS_BINDING_VALUE); in ecma_op_init_this_binding() 493 ecma_string_t *prop_name_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_THIS_BINDING_VALUE); in ecma_op_get_this_property()
|
D | ecma-reference.h | 29 ecma_object_t *ecma_op_resolve_reference_base (ecma_object_t *lex_env_p, ecma_string_t *name_p); 30 ecma_value_t ecma_op_resolve_reference_value (ecma_object_t *lex_env_p, ecma_string_t *name_p); 31 …object_bound_environment_resolve_reference_value (ecma_object_t *lex_env_p, ecma_string_t *name_p);
|
D | ecma-symbol-object.h | 36 ecma_prop_name_is_symbol (ecma_string_t *string_p); 38 ecma_string_t * 39 ecma_get_symbol_description (ecma_string_t *symbol_p);
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-string-prototype.c | 163 ecma_string_t *original_string_p = ecma_op_to_string (this_arg); in ecma_builtin_string_prototype_char_at_helper() 207 ecma_builtin_string_prototype_object_concat (ecma_string_t *this_string_p, /**< this argument */ in ecma_builtin_string_prototype_object_concat() 217 ecma_string_t *get_arg_string_p = ecma_op_to_string (argument_list_p[arg_index]); in ecma_builtin_string_prototype_object_concat() 244 ecma_builtin_string_prototype_object_locale_compare (ecma_string_t *this_string_p, /**< this argume… in ecma_builtin_string_prototype_object_locale_compare() 248 ecma_string_t *arg_string_p = ecma_op_to_string (arg); in ecma_builtin_string_prototype_object_locale_compare() 314 ecma_string_t *this_str_p = ecma_op_to_string (this_argument); in ecma_builtin_string_prototype_object_match() 431 ecma_string_t *input_str_p = ecma_get_string_from_value (this_value); in ecma_builtin_string_prototype_object_replace() 435 ecma_string_t *search_str_p = ecma_op_to_string (search_value); in ecma_builtin_string_prototype_object_replace() 470 ecma_string_t *result_string_p = NULL; in ecma_builtin_string_prototype_object_replace() 510 ecma_string_t *const result_str_p = ecma_op_to_string (result); in ecma_builtin_string_prototype_object_replace() [all …]
|
D | ecma-builtin-symbol.c | 92 ecma_string_t *string_p; in ecma_builtin_symbol_for_helper() 117 ecma_string_t *value_p = JMEM_CP_GET_NON_NULL_POINTER (ecma_string_t, in ecma_builtin_symbol_for_helper() 122 ecma_string_t *symbol_desc_p = ecma_get_symbol_description (value_p); in ecma_builtin_symbol_for_helper() 136 ecma_string_t *symbol_desc_p = ecma_get_symbol_description (string_p); in ecma_builtin_symbol_for_helper() 161 ecma_string_t *new_symbol_p = ecma_new_symbol_from_descriptor_string (value_to_find); in ecma_builtin_symbol_for_helper() 201 ecma_string_t *string_desc_p = ecma_op_to_string (key); in ecma_builtin_symbol_for()
|
D | ecma-builtin-helpers.h | 46 ecma_string_t * 57 ecma_builtin_helper_string_prototype_object_index_of (ecma_string_t *original_str_p, ecma_value_t a… 60 ecma_builtin_helper_string_find_index (ecma_string_t *original_str_p, ecma_string_t *search_str_p, … 63 ecma_builtin_helper_def_prop (ecma_object_t *obj_p, ecma_string_t *name_p, ecma_value_t value, uint… 93 ecma_string_t *replace_str_p; /**< replacement string */ 206 ecma_string_t *gap_str_p; 219 bool ecma_has_string_value_in_collection (ecma_collection_t *collection_p, ecma_string_t *string_p);
|
D | ecma-builtin-error-prototype.c | 52 static ecma_string_t * 69 ecma_string_t *ret_str_p = ecma_op_to_string (prop_value); in ecma_builtin_error_prototype_object_to_string_helper() 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-promise.c | 255 ecma_string_t *already_called_str_p; in ecma_builtin_promise_all_handler() 273 …ecma_string_t *str_index_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_IND… in ecma_builtin_promise_all_handler() 274 …ecma_string_t *str_value_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_VAL… in ecma_builtin_promise_all_handler() 275 …ecma_string_t *str_capability_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERT… in ecma_builtin_promise_all_handler() 276 …ecma_string_t *str_remaining_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY… in ecma_builtin_promise_all_handler() 342 ecma_string_t *already_called_str_p; in ecma_builtin_promise_perform_all() 344 …ecma_string_t *index_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_IND… in ecma_builtin_promise_perform_all() 345 …ecma_string_t *value_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY_VAL… in ecma_builtin_promise_perform_all() 346 …ecma_string_t *capability_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERT… in ecma_builtin_promise_perform_all() 347 …ecma_string_t *remaining_str_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_PROMISE_PROPERTY… in ecma_builtin_promise_perform_all()
|
/third_party/jerryscript/jerry-core/vm/ |
D | vm-utils.c | 56 static ecma_string_t* 67 ecma_string_t* name_prop = ecma_get_magic_string (LIT_MAGIC_STRING_NAME); in vm_get_function_name_string() 81 ecma_string_t* lbracket = ecma_new_ecma_string_from_utf8((const lit_utf8_byte_t *) ("("), 1); in vm_get_function_name_string() 82 ecma_string_t* rbracket = ecma_new_ecma_string_from_utf8((const lit_utf8_byte_t *) (")"), 1); in vm_get_function_name_string() 118 ecma_string_t *str_p = ecma_get_magic_string (LIT_MAGIC_STRING__EMPTY); in vm_get_backtrace() 121 ecma_string_t* func_name = vm_get_function_name_string (context_p); in vm_get_backtrace()
|
/third_party/jerryscript/jerry-core/parser/js/ |
D | js-parser-module.c | 45 ecma_string_t *local_name_p) /**< newly imported name */ in parser_module_check_duplicate_import() 92 ecma_string_t *name_p = ecma_new_ecma_string_from_utf8 (context_p->lit_object.literal_p->u.char_p, in parser_module_append_export_name() 114 ecma_string_t *export_name_p) /**< exported identifier */ in parser_module_check_duplicate_export() 272 ecma_string_t *imex_name_p, /**< import/export name */ in parser_module_add_names_to_node() 273 ecma_string_t *local_name_p) /**< local name */ in parser_module_add_names_to_node() 305 ecma_string_t *path_str_p = ecma_get_string_from_value (JERRY_CONTEXT (resource_name)); in parser_module_context_init() 316 ecma_string_t *path_p = ecma_module_create_normalized_path (path_str_chars_p, in parser_module_context_init() 375 ecma_string_t *export_name_p = NULL; in parser_module_parse_export_clause() 376 ecma_string_t *local_name_p = NULL; in parser_module_parse_export_clause() 474 ecma_string_t *import_name_p = NULL; in parser_module_parse_import_clause() [all …]
|
/third_party/jerryscript/jerry-core/ext/ |
D | debug-utils.c | 42 ecma_string_t *prop_name = ecma_string_from_property_name (prop_iter_p->types[i], in PrintObjectProperties() 46 ecma_string_t *string_value; in PrintObjectProperties() 56 … ecma_string_t* separator_str = ecma_new_ecma_string_from_utf8((const lit_utf8_byte_t *)" :> ", 4); in PrintObjectProperties() 76 void PrintString(ecma_string_t* str) in PrintString()
|