Home
last modified time | relevance | path

Searched refs:name_p (Results 1 – 25 of 48) sorted by relevance

12

/third_party/jerryscript/jerry-core/ecma/operations/
Decma-lex-env.c129 ecma_string_t *name_p) /**< argument N */ in ecma_op_has_binding() argument
138 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_has_binding()
147 return ecma_op_object_has_property (binding_obj_p, name_p); in ecma_op_has_binding()
160 ecma_string_t *name_p, /**< argument N */ in ecma_op_create_mutable_binding() argument
165 JERRY_ASSERT (name_p != NULL); in ecma_op_create_mutable_binding()
177 name_p, in ecma_op_create_mutable_binding()
195 name_p, in ecma_op_create_mutable_binding()
223 ecma_string_t *name_p, /**< argument N */ in ecma_op_set_mutable_binding() argument
229 JERRY_ASSERT (name_p != NULL); in ecma_op_set_mutable_binding()
233 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_set_mutable_binding()
[all …]
Decma-lex-env.h52 ecma_string_t *name_p);
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…
Decma-reference.c44 ecma_string_t *name_p) /**< identifier's name */ in ecma_op_resolve_reference_base() argument
58 ecma_value_t has_binding = ecma_op_has_binding (lex_env_p, name_p); in ecma_op_resolve_reference_base()
203 … ecma_string_t *name_p) /**< variable name */ in ecma_op_object_bound_environment_resolve_reference_value() argument
211 found_binding = ecma_proxy_object_has (binding_obj_p, name_p); in ecma_op_object_bound_environment_resolve_reference_value()
221 found_binding = ecma_op_object_find (binding_obj_p, name_p); in ecma_op_object_bound_environment_resolve_reference_value()
239 ecma_value_t blocked = ecma_op_is_prop_unscopable (binding_obj_p, name_p); in ecma_op_object_bound_environment_resolve_reference_value()
246 return ecma_proxy_object_get (binding_obj_p, name_p, ecma_make_object_value (binding_obj_p)); in ecma_op_object_bound_environment_resolve_reference_value()
270 ecma_string_t *name_p) /**< identifier's name */ in ecma_op_resolve_reference_value() argument
280 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_resolve_reference_value()
309 ecma_property_t *property_p = ecma_lcache_lookup (binding_obj_p, name_p); in ecma_op_resolve_reference_value()
[all …]
Decma-get-put-value.c49 ecma_string_t *name_p) /**< variable name */ in ecma_op_get_value_lex_env_base() argument
60 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_get_value_lex_env_base()
89 …ecma_value_t result = ecma_op_object_bound_environment_resolve_reference_value (lex_env_p, name_p); in ecma_op_get_value_lex_env_base()
114 ecma_make_string_value (name_p)); in ecma_op_get_value_lex_env_base()
201 ecma_string_t *name_p, /**< variable name */ in ecma_op_put_value_lex_env_base() argument
214 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_put_value_lex_env_base()
258 ecma_value_t has_property = ecma_op_object_has_property (binding_obj_p, name_p); in ecma_op_put_value_lex_env_base()
270 name_p, in ecma_op_put_value_lex_env_base()
300 ecma_make_string_value (name_p)); in ecma_op_put_value_lex_env_base()
307 name_p, in ecma_op_put_value_lex_env_base()
Decma-objects-arguments.c101 ecma_string_t *name_p = ecma_get_string_from_value (arg_Literal_p[i]); in ecma_op_create_arguments_object() local
102 ecma_ref_ecma_string (name_p); in ecma_op_create_arguments_object()
269 ecma_string_t *name_p = ecma_get_string_from_value (arg_Literal_p[index]); in ecma_op_arguments_object_define_own_property() local
273 ecma_deref_ecma_string (name_p); in ecma_op_arguments_object_define_own_property()
285 name_p, in ecma_op_arguments_object_define_own_property()
295 ecma_deref_ecma_string (name_p); in ecma_op_arguments_object_define_own_property()
342 ecma_string_t *name_p = ecma_get_string_from_value (arg_Literal_p[index]); in ecma_op_arguments_object_delete() local
343 ecma_deref_ecma_string (name_p); in ecma_op_arguments_object_delete()
Decma-reference.h29 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);
Decma-objects.c2243 ecma_string_t *name_p = ecma_get_string_from_value (buffer_p[i]); in ecma_op_object_get_property_names() local
2245 if (ecma_string_get_array_index (name_p) != ECMA_STRING_NOT_ARRAY_INDEX) in ecma_op_object_get_property_names()
2250 else if (ecma_prop_name_is_symbol (name_p)) in ecma_op_object_get_property_names()
2262 JERRY_ASSERT (!ecma_prop_name_is_symbol (name_p)); in ecma_op_object_get_property_names()
2265 uint8_t hash = (uint8_t) ecma_string_hash (name_p); in ecma_op_object_get_property_names()
2361 ecma_string_t *name_p = ecma_string_from_property_name (*property_p, in ecma_op_object_get_property_names() local
2372 bool is_symbol = ecma_prop_name_is_symbol (name_p); in ecma_op_object_get_property_names()
2375 ecma_deref_ecma_string (name_p); in ecma_op_object_get_property_names()
2380 uint8_t hash = (uint8_t) ecma_string_hash (name_p); in ecma_op_object_get_property_names()
2394 if (ecma_compare_ecma_strings (name_p, current_name_p)) in ecma_op_object_get_property_names()
[all …]
Decma-string-object.c109 ecma_string_t *name_p = ecma_new_ecma_string_from_uint32 (i); in ecma_op_string_list_lazy_property_names() local
112 ecma_collection_push_back (for_enumerable_p, ecma_make_string_value (name_p)); in ecma_op_string_list_lazy_property_names()
/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-module.c92 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() local
95 if (parser_module_check_duplicate_export (context_p, name_p)) in parser_module_append_export_name()
97 ecma_deref_ecma_string (name_p); in parser_module_append_export_name()
102 name_p, in parser_module_append_export_name()
103 name_p); in parser_module_append_export_name()
104 ecma_deref_ecma_string (name_p); in parser_module_append_export_name()
131 ecma_module_names_t *name_p = export_node_p->module_names_p; in parser_module_check_duplicate_export() local
133 while (name_p != NULL) in parser_module_check_duplicate_export()
135 if (ecma_compare_ecma_strings (name_p->imex_name_p, export_name_p)) in parser_module_check_duplicate_export()
140 name_p = name_p->next_p; in parser_module_check_duplicate_export()
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-external-pointers.c41 ecma_string_t *name_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_NATIVE_POINTER); in ecma_create_native_pointer_property() local
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()
124 ecma_string_t *name_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_NATIVE_POINTER); in ecma_get_native_pointer_value() local
125 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_get_native_pointer_value()
172 ecma_string_t *name_p = ecma_get_magic_string (LIT_INTERNAL_MAGIC_STRING_NATIVE_POINTER); in ecma_delete_native_pointer_property() local
173 ecma_property_t *property_p = ecma_find_named_property (obj_p, name_p); in ecma_delete_native_pointer_property()
197 ecma_op_general_object_delete (obj_p, name_p, false); in ecma_delete_native_pointer_property()
Decma-helpers.c341 …ecma_string_t *name_p = ecma_string_from_property_name (prop_iter_p->types[i], prop_pair_p->names_… in ecma_clone_decl_lexical_environment() local
344 … property_value_p = ecma_create_named_data_property (new_lex_env_p, name_p, prop_attributes, NULL); in ecma_clone_decl_lexical_environment()
346 ecma_deref_ecma_string (name_p); in ecma_clone_decl_lexical_environment()
377 ecma_string_t *name_p, /**< property name */ in ecma_create_property() argument
384 JERRY_ASSERT (name_p != NULL); in ecma_create_property()
414 first_property_pair_p->names_cp[0] = ecma_string_to_property_name (name_p, in ecma_create_property()
438 name_p, in ecma_create_property()
476 first_property_pair_p->names_cp[1] = ecma_string_to_property_name (name_p, in ecma_create_property()
500 name_p, in ecma_create_property()
517 ecma_string_t *name_p, /**< property name */ in ecma_create_named_data_property() argument
[all …]
Decma-property-hashmap.c222 ecma_string_t *name_p, /**< name of the property */ in ecma_property_hashmap_insert() argument
243 uint32_t entry_index = ecma_string_hash (name_p); in ecma_property_hashmap_insert()
372 ecma_string_t *name_p, /**< property name */ in ecma_property_hashmap_find() argument
397 name_p)) in ecma_property_hashmap_find()
410 uint32_t entry_index = ecma_string_hash (name_p); in ecma_property_hashmap_find()
422 if (ECMA_IS_DIRECT_STRING (name_p)) in ecma_property_hashmap_find()
424 ecma_property_t prop_name_type = (ecma_property_t) ECMA_GET_DIRECT_STRING_TYPE (name_p); in ecma_property_hashmap_find()
425 jmem_cpointer_t property_name_cp = (jmem_cpointer_t) ECMA_GET_DIRECT_STRING_VALUE (name_p); in ecma_property_hashmap_find()
499 if (ecma_compare_ecma_non_direct_strings (prop_name_p, name_p)) in ecma_property_hashmap_find()
Decma-module.c202 && ecma_compare_ecma_strings (current_p->record.name_p, export_name_p)) in ecma_module_resolve_set_insert()
216 new_p->record.name_p = export_name_p; in ecma_module_resolve_set_insert()
231 ecma_deref_ecma_string (set_p->record.name_p); in ecma_module_resolve_set_cleanup()
330 found_record.name_p = current_export_name_p; in ecma_module_resolve_export()
357 found_record.name_p = NULL; in ecma_module_resolve_export()
364 found_record.name_p = export_names_p->local_name_p; in ecma_module_resolve_export()
550 record.name_p); in ecma_module_namespace_object_add_export_if_needed()
776 record.name_p); in ecma_module_connect_imports()
799 record.name_p); in ecma_module_connect_imports()
955 ecma_module_names_t *name_p = indirect_export_p->module_names_p; in ecma_module_check_indirect_exports() local
[all …]
Decma-property-hashmap.h70 void ecma_property_hashmap_insert (ecma_object_t *object_p, ecma_string_t *name_p,
75 …_property_t *ecma_property_hashmap_find (ecma_property_hashmap_t *hashmap_p, ecma_string_t *name_p,
/third_party/jerryscript/tests/unit-core/
Dtest-proxy.cpp120 const char *name_p, /**< name of the property */ in set_property() argument
123 jerry_value_t name_val = jerry_create_string ((const jerry_char_t *) name_p); in set_property()
133 const char *name_p) /**< name of the property */ in get_property() argument
135 jerry_value_t name_val = jerry_create_string ((const jerry_char_t *) name_p); in get_property()
145 const char *name_p, /**< name of the function */ in set_function() argument
149 set_property (target, name_p, function_val); in set_function()
/third_party/jerryscript/targets/riot-stm32f4/source/
Dmain-riotos.c34 register_js_function (const char *name_p, /**< name of the function */ in register_js_function() argument
37 …jerry_value_t result_val = jerryx_handler_register_global ((const jerry_char_t *) name_p, handler_… in register_js_function()
41 printf ("Warning: failed to register '%s' method.", name_p); in register_js_function()
/third_party/jerryscript/targets/zephyr/src/
Dmain-zephyr.c34 register_js_function (const char *name_p, /**< name of the function */ in register_js_function() argument
37 …jerry_value_t result_val = jerryx_handler_register_global ((const jerry_char_t *) name_p, handler_… in register_js_function()
41 jerry_port_log (JERRY_LOG_LEVEL_WARNING, "Warning: failed to register '%s' method.", name_p); in register_js_function()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-arg.c339 const char *name_p[] = {"prop1", "prop2", "prop3"}; in test_validator_prop1_handler() local
349 (const jerry_char_t **) name_p, in test_validator_prop1_handler()
350 ARRAY_SIZE (name_p), in test_validator_prop1_handler()
383 const char *name_p[] = { "prop1", "prop2", "prop3" }; in test_validator_prop2_handler() local
392 prop_info.name_p = (const jerry_char_t **) name_p; in test_validator_prop2_handler()
431 const char *name_p[] = { "prop1", "prop2" }; in test_validator_prop3_handler() local
440 (const jerry_char_t **) name_p, in test_validator_prop3_handler()
441 ARRAY_SIZE (name_p), in test_validator_prop3_handler()
899 register_js_function (const char *name_p, /**< name of the function */ in register_js_function() argument
905 jerry_value_t function_name_val = jerry_create_string ((const jerry_char_t *) name_p); in register_js_function()
/third_party/jerryscript/jerry-core/vm/
Dvm.c944 ecma_string_t *name_p = ecma_get_string_from_value (literal_start_p[literal_index]); \
947 name_p); \
1297 ecma_string_t *name_p = ecma_get_string_from_value (literal_start_p[literal_index]); in vm_loop() local
1300 JERRY_ASSERT (ecma_find_named_property (frame_ctx_p->lex_env_p, name_p) == NULL); in vm_loop()
1315 …property_value_p = ecma_create_named_data_property (frame_ctx_p->lex_env_p, name_p, prop_attribute… in vm_loop()
1322 ecma_create_named_data_property (frame_ctx_p->lex_env_p, name_p, prop_attributes, NULL); in vm_loop()
1345 ecma_string_t *name_p = ecma_get_string_from_value (literal_start_p[literal_index]); in vm_loop() local
1353 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in vm_loop()
1366 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in vm_loop()
1372 result = vm_var_decl (lex_env_p, name_p, frame_ctx_p->is_eval_code); in vm_loop()
[all …]
/third_party/elfutils/libdwelf/
Ddwelf_dwarf_gnu_debugaltlink.c37 const char **name_p, in dwelf_dwarf_gnu_debugaltlink() argument
58 *name_p = data->d_buf; in dwelf_dwarf_gnu_debugaltlink()
/third_party/jerryscript/jerry-ext/arg/
Darg.c110 … const jerry_char_t **name_p, /**< property name list of the JS object */ in jerryx_arg_transform_object_properties() argument
133 for (jerry_length_t i = 0; i < name_cnt; i++, name_p++) in jerryx_arg_transform_object_properties()
135 const jerry_value_t name_str = jerry_create_string (*name_p); in jerryx_arg_transform_object_properties()
/third_party/jerryscript/jerry-ext/include/jerryscript-ext/
Dmodule.h37 const jerry_char_t *name_p; /**< name of the module */ member
69 .name_p = (jerry_char_t *) #module_name, \
/third_party/jerryscript/jerry-ext/module/
Dmodule.c205 if (module_p->name_p != NULL in jerryx_resolve_native_module()
206 && strlen ((char *) module_p->name_p) == name_size in jerryx_resolve_native_module()
207 && !strncmp ((char *) module_p->name_p, (char *) name_string, name_size)) in jerryx_resolve_native_module()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-json.c501 ecma_string_t *name_p = token_p->u.string_p; in ecma_builtin_json_parse_value() local
506 ecma_deref_ecma_string (name_p); in ecma_builtin_json_parse_value()
515 ecma_deref_ecma_string (name_p); in ecma_builtin_json_parse_value()
519 ecma_builtin_json_define_value_property (object_p, name_p, value); in ecma_builtin_json_parse_value()
520 ecma_deref_ecma_string (name_p); in ecma_builtin_json_parse_value()
613 ecma_string_t *name_p) /**< property name */ in ecma_builtin_json_internalize_property() argument
617 JERRY_ASSERT (name_p); in ecma_builtin_json_internalize_property()
620 ecma_value_t value = ecma_op_object_get (holder_p, name_p); in ecma_builtin_json_internalize_property()
676 arguments_list[0] = ecma_make_string_value (name_p); in ecma_builtin_json_internalize_property()
/third_party/jerryscript/jerry-ext/handler/
Dhandler-register.c28 jerryx_handler_register_global (const jerry_char_t *name_p, /**< name of the function */ in jerryx_handler_register_global() argument
32 jerry_value_t function_name_val = jerry_create_string (name_p); in jerryx_handler_register_global()

12