/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-lex-env.c | 128 ecma_op_has_binding (ecma_object_t *lex_env_p, /**< lexical environment */ in ecma_op_has_binding() argument 131 JERRY_ASSERT (lex_env_p != NULL in ecma_op_has_binding() 132 && ecma_is_lexical_environment (lex_env_p)); in ecma_op_has_binding() 134 ecma_lexical_environment_type_t lex_env_type = ecma_get_lex_env_type (lex_env_p); in ecma_op_has_binding() 138 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_has_binding() 145 ecma_object_t *binding_obj_p = ecma_get_lex_env_binding_object (lex_env_p); in ecma_op_has_binding() 159 ecma_op_create_mutable_binding (ecma_object_t *lex_env_p, /**< lexical environment */ in ecma_op_create_mutable_binding() argument 163 JERRY_ASSERT (lex_env_p != NULL in ecma_op_create_mutable_binding() 164 && ecma_is_lexical_environment (lex_env_p)); in ecma_op_create_mutable_binding() 167 if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE) in ecma_op_create_mutable_binding() [all …]
|
D | ecma-reference.c | 43 ecma_op_resolve_reference_base (ecma_object_t *lex_env_p, /**< starting lexical environment */ in ecma_op_resolve_reference_base() argument 46 JERRY_ASSERT (lex_env_p != NULL); in ecma_op_resolve_reference_base() 51 if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_HOME_OBJECT_BOUND) in ecma_op_resolve_reference_base() 53 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in ecma_op_resolve_reference_base() 54 lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_cp); in ecma_op_resolve_reference_base() 58 ecma_value_t has_binding = ecma_op_has_binding (lex_env_p, name_p); in ecma_op_resolve_reference_base() 69 return lex_env_p; in ecma_op_resolve_reference_base() 72 if (lex_env_p->u2.outer_reference_cp == JMEM_CP_NULL) in ecma_op_resolve_reference_base() 77 lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_cp); in ecma_op_resolve_reference_base() 92 ecma_op_resolve_super_base (ecma_object_t *lex_env_p) /**< starting lexical environment */ in ecma_op_resolve_super_base() argument [all …]
|
D | ecma-get-put-value.c | 47 ecma_op_get_value_lex_env_base (ecma_object_t *lex_env_p, /**< lexical environment */ in ecma_op_get_value_lex_env_base() argument 51 JERRY_ASSERT (lex_env_p != NULL in ecma_op_get_value_lex_env_base() 52 && ecma_is_lexical_environment (lex_env_p)); in ecma_op_get_value_lex_env_base() 56 switch (ecma_get_lex_env_type (lex_env_p)) in ecma_op_get_value_lex_env_base() 60 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in ecma_op_get_value_lex_env_base() 64 *ref_base_lex_env_p = lex_env_p; in ecma_op_get_value_lex_env_base() 87 … JERRY_ASSERT (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND); 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() 94 *ref_base_lex_env_p = lex_env_p; in ecma_op_get_value_lex_env_base() 102 if (lex_env_p->u2.outer_reference_cp == JMEM_CP_NULL) in ecma_op_get_value_lex_env_base() [all …]
|
D | ecma-lex-env.h | 42 void ecma_module_add_lex_env (ecma_object_t *lex_env_p); 51 ecma_value_t ecma_op_get_value_lex_env_base (ecma_object_t *lex_env_p, ecma_object_t **ref_base_lex… 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); 64 ecma_value_t ecma_op_implicit_this_value (ecma_object_t *lex_env_p); 67 void ecma_op_create_immutable_binding (ecma_object_t *lex_env_p, ecma_string_t *name_p, ecma_value_… [all …]
|
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 ecma_value_t ecma_op_object_bound_environment_resolve_reference_value (ecma_object_t *lex_env_p, ec… 33 ecma_value_t ecma_op_resolve_super_base (ecma_object_t *lex_env_p);
|
D | ecma-objects-arguments.c | 44 ecma_object_t *lex_env_p, /**< lexical environment the Arguments in ecma_op_create_arguments_object() argument 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() 200 ecma_op_create_immutable_binding (lex_env_p, in ecma_op_create_arguments_object() 206 ecma_value_t completion = ecma_op_create_mutable_binding (lex_env_p, in ecma_op_create_arguments_object() 211 completion = ecma_op_set_mutable_binding (lex_env_p, in ecma_op_create_arguments_object() 281 ecma_object_t *lex_env_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_object_t, in ecma_op_arguments_object_define_own_property() local 284 ecma_value_t completion = ecma_op_set_mutable_binding (lex_env_p, in ecma_op_arguments_object_define_own_property()
|
D | ecma-objects.c | 322 ecma_object_t *lex_env_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_object_t, in ecma_op_object_get_own_property() local 325 JERRY_ASSERT (lex_env_p != NULL in ecma_op_object_get_own_property() 326 && ecma_is_lexical_environment (lex_env_p)); in ecma_op_object_get_own_property() 328 ecma_value_t binding_value = ecma_op_get_binding_value (lex_env_p, arg_name_p, true); in ecma_op_object_get_own_property() 537 ecma_object_t *lex_env_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_object_t, in ecma_op_object_find_own() local 540 JERRY_ASSERT (lex_env_p != NULL in ecma_op_object_find_own() 541 && ecma_is_lexical_environment (lex_env_p)); in ecma_op_object_find_own() 543 return ecma_op_get_binding_value (lex_env_p, arg_name_p, true); in ecma_op_object_find_own() 1344 ecma_object_t *lex_env_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_object_t, in ecma_op_object_put_with_receiver() local 1347 JERRY_ASSERT (lex_env_p != NULL in ecma_op_object_put_with_receiver() [all …]
|
D | ecma-objects-arguments.h | 23 ecma_op_create_arguments_object (ecma_object_t *func_obj_p, ecma_object_t *lex_env_p,
|
/third_party/jerryscript/jerry-core/vm/ |
D | vm-stack.c | 46 ecma_object_t *lex_env_p = frame_ctx_p->lex_env_p; in vm_stack_context_abort() local 47 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in vm_stack_context_abort() 48 …frame_ctx_p->lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_c… in vm_stack_context_abort() 49 ecma_deref_object (lex_env_p); in vm_stack_context_abort() 201 ecma_object_t *lex_env_p = frame_ctx_p->lex_env_p; in vm_stack_find_finally() local 202 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in vm_stack_find_finally() 203 …frame_ctx_p->lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_c… in vm_stack_find_finally() 204 ecma_deref_object (lex_env_p); in vm_stack_find_finally() 249 ecma_object_t *lex_env_p = frame_ctx_p->lex_env_p; in vm_stack_find_finally() local 250 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in vm_stack_find_finally() [all …]
|
D | vm.c | 282 ecma_object_t *lex_env_p) /**< pointer to the specified lexenv to run in */ in vm_run_module() argument 292 lex_env_p, in vm_run_module() 358 ecma_object_t *lex_env_p; in vm_run_eval() local 364 lex_env_p = JERRY_CONTEXT (vm_top_context_p)->lex_env_p; in vm_run_eval() 372 if (JERRY_UNLIKELY (lex_env_p->u2.outer_reference_cp == JMEM_CP_NULL)) in vm_run_eval() 377 lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_cp); in vm_run_eval() 379 if ((ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND) in vm_run_eval() 380 || (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE)) in vm_run_eval() 392 lex_env_p = ecma_get_global_scope (); in vm_run_eval() 395 ecma_ref_object (lex_env_p); in vm_run_eval() [all …]
|
D | opcodes.c | 53 vm_var_decl (ecma_object_t *lex_env_p, /**< target lexical environment */ in vm_var_decl() argument 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() 77 JERRY_ASSERT (ecma_is_value_undefined (ecma_op_get_binding_value (lex_env_p, in vm_var_decl() 92 vm_set_var (ecma_object_t *lex_env_p, /**< target lexical environment */ in vm_set_var() argument 98 …put_value_result = ecma_op_put_value_lex_env_base (lex_env_p, var_name_str_p, is_strict, lit_value… in vm_set_var() 239 ecma_object_t *lex_env_p) /**< lexical environment */ in vm_op_delete_var() argument 245 ecma_object_t *ref_base_lex_env_p = ecma_op_resolve_reference_base (lex_env_p, var_name_str_p); in vm_op_delete_var() 673 vm_ref_lex_env_chain (executable_object_p->frame_ctx.lex_env_p, in opfunc_resume_executable_object() 727 vm_ref_lex_env_chain (executable_object_p->frame_ctx.lex_env_p, in opfunc_resume_executable_object() [all …]
|
D | opcodes.h | 63 vm_var_decl (ecma_object_t *lex_env_p, ecma_string_t *var_name_str_p, bool is_configurable_bindings… 66 vm_set_var (ecma_object_t *lex_env_p, ecma_string_t *var_name_str_p, bool is_strict, ecma_value_t l… 102 vm_op_delete_var (ecma_value_t name_literal, ecma_object_t *lex_env_p);
|
D | vm.h | 441 ecma_value_t vm_run_module (const ecma_compiled_code_t *bytecode_p, ecma_object_t *lex_env_p); 445 … ecma_object_t *lex_env_p, const ecma_value_t *arg_list_p, ecma_length_t arg_list_len);
|
D | vm-defines.h | 48 ecma_object_t *lex_env_p; /**< current lexical environment */ member
|
D | vm-stack.h | 105 void vm_ref_lex_env_chain (ecma_object_t *lex_env_p, uint16_t context_depth,
|
/third_party/jerryscript/jerry-core/debugger/ |
D | debugger.c | 229 ecma_object_t *lex_env_p = iter_frame_ctx_p->lex_env_p; in jerry_debugger_send_scope_chain() local 233 JERRY_ASSERT (ecma_is_lexical_environment (lex_env_p)); in jerry_debugger_send_scope_chain() 245 if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE) in jerry_debugger_send_scope_chain() 247 if ((lex_env_p->type_flags_refs & ECMA_OBJECT_FLAG_BLOCK) != 0) in jerry_debugger_send_scope_chain() 261 else if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND) in jerry_debugger_send_scope_chain() 263 if (lex_env_p->u2.outer_reference_cp == JMEM_CP_NULL) in jerry_debugger_send_scope_chain() 274 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in jerry_debugger_send_scope_chain() 275 lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_cp); in jerry_debugger_send_scope_chain() 440 ecma_object_t *lex_env_p = iter_frame_ctx_p->lex_env_p; in jerry_debugger_send_scope_variables() local 444 if (JERRY_UNLIKELY (lex_env_p->u2.outer_reference_cp == JMEM_CP_NULL)) in jerry_debugger_send_scope_variables() [all …]
|
/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-module.c | 689 ecma_object_t *lex_env_p = local_env_p; in ecma_module_connect_imports() local 692 if (lex_env_p->type_flags_refs & ECMA_OBJECT_FLAG_BLOCK) in ecma_module_connect_imports() 694 binding_p = ecma_find_named_property (lex_env_p, import_names_p->local_name_p); in ecma_module_connect_imports() 696 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in ecma_module_connect_imports() 697 lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_cp); in ecma_module_connect_imports() 705 ecma_value_t status = ecma_op_has_binding (lex_env_p, import_names_p->local_name_p); in ecma_module_connect_imports()
|
D | ecma-helpers.c | 305 ecma_clone_decl_lexical_environment (ecma_object_t *lex_env_p, /**< declarative lexical environment… in ecma_clone_decl_lexical_environment() argument 308 JERRY_ASSERT (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE); in ecma_clone_decl_lexical_environment() 309 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in ecma_clone_decl_lexical_environment() 311 …ecma_object_t *outer_lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_ref… in ecma_clone_decl_lexical_environment() 314 jmem_cpointer_t prop_iter_cp = lex_env_p->u1.property_list_cp; in ecma_clone_decl_lexical_environment() 365 ecma_deref_object (lex_env_p); in ecma_clone_decl_lexical_environment()
|
D | ecma-gc.c | 450 ecma_gc_set_object_visited (executable_object_p->frame_ctx.lex_env_p); in ecma_gc_mark_executable_object() 660 ecma_object_t *lex_env_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_object_t, in ecma_gc_mark() local 663 ecma_gc_set_object_visited (lex_env_p); in ecma_gc_mark()
|
D | ecma-helpers.h | 441 ecma_object_t *ecma_clone_decl_lexical_environment (ecma_object_t *lex_env_p, bool copy_values);
|
/third_party/jerryscript/jerry-core/parser/js/ |
D | js-scanner-util.c | 1320 ecma_object_t *lex_env_p = JERRY_CONTEXT (vm_top_context_p)->lex_env_p; in scanner_scope_find_let_declaration() local 1322 while (lex_env_p->type_flags_refs & ECMA_OBJECT_FLAG_BLOCK) in scanner_scope_find_let_declaration() 1324 if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE) in scanner_scope_find_let_declaration() 1326 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in scanner_scope_find_let_declaration() 1335 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in scanner_scope_find_let_declaration() 1336 lex_env_p = ECMA_GET_NON_NULL_POINTER (ecma_object_t, lex_env_p->u2.outer_reference_cp); in scanner_scope_find_let_declaration() 1339 if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE) in scanner_scope_find_let_declaration() 1341 ecma_property_t *property_p = ecma_find_named_property (lex_env_p, name_p); in scanner_scope_find_let_declaration()
|
/third_party/jerryscript/jerry-core/api/ |
D | jerry.c | 498 ecma_object_t *lex_env_p = ecma_get_global_environment (); in jerry_parse() local 499 ecma_object_t *func_obj_p = ecma_op_create_simple_function_object (lex_env_p, bytecode_data_p); in jerry_parse() 579 ecma_object_t *lex_env_p = ecma_get_global_environment (); in jerry_parse_function() local 580 ecma_object_t *func_obj_p = ecma_op_create_simple_function_object (lex_env_p, bytecode_data_p); in jerry_parse_function()
|
D | jerry-snapshot.c | 996 ecma_object_t *lex_env_p = ecma_get_global_scope (); in jerry_snapshot_result() local 997 ecma_object_t *func_obj_p = ecma_op_create_simple_function_object (lex_env_p, bytecode_p); in jerry_snapshot_result()
|