/third_party/jerryscript/jerry-core/api/ |
D | jerry-debugger-transport.c | 45 header_p->next_p = JERRY_CONTEXT (debugger_transport_header_p); in jerry_debugger_transport_add() 46 JERRY_CONTEXT (debugger_transport_header_p) = header_p; in jerry_debugger_transport_add() 52 if (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED) in jerry_debugger_transport_add() 54 payload_p = JERRY_CONTEXT (debugger_send_buffer_payload_p); in jerry_debugger_transport_add() 55 max_send_size = JERRY_CONTEXT (debugger_max_send_size); in jerry_debugger_transport_add() 56 max_receive_size = JERRY_CONTEXT (debugger_max_receive_size); in jerry_debugger_transport_add() 61 payload_p = JERRY_CONTEXT (debugger_send_buffer); in jerry_debugger_transport_add() 69 JERRY_CONTEXT (debugger_send_buffer_payload_p) = payload_p + send_message_header_size; in jerry_debugger_transport_add() 84 JERRY_CONTEXT (debugger_max_send_size) = (uint8_t) max_send_size; in jerry_debugger_transport_add() 85 JERRY_CONTEXT (debugger_max_receive_size) = (uint8_t) max_receive_size; in jerry_debugger_transport_add() [all …]
|
D | jerry-debugger.c | 30 return JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED; in jerry_debugger_is_connected() 43 if ((JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED) in jerry_debugger_stop() 44 && !(JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_BREAKPOINT_MODE)) in jerry_debugger_stop() 47 JERRY_CONTEXT (debugger_stop_context) = NULL; in jerry_debugger_stop() 59 if ((JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED) in jerry_debugger_continue() 60 && !(JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_BREAKPOINT_MODE)) in jerry_debugger_continue() 63 JERRY_CONTEXT (debugger_stop_context) = NULL; in jerry_debugger_continue() 75 if (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED in jerry_debugger_stop_at_breakpoint() 76 && !(JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_BREAKPOINT_MODE)) in jerry_debugger_stop_at_breakpoint() 108 if ((JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED) in jerry_debugger_wait_for_client_source() [all …]
|
D | jerry.c | 151 JERRY_ASSERT (JERRY_CONTEXT (status_flags) & ECMA_STATUS_API_AVAILABLE); in jerry_assert_api_available() 160 JERRY_CONTEXT (status_flags) |= ECMA_STATUS_API_AVAILABLE; in jerry_make_api_available() 169 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_API_AVAILABLE; in jerry_make_api_unavailable() 228 JERRY_ASSERT (!(JERRY_CONTEXT (status_flags) & ECMA_STATUS_API_AVAILABLE)); in jerry_init() 234 JERRY_CONTEXT (jerry_init_flags) = flags; in jerry_init() 253 if (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED) in jerry_cleanup() 261 for (jerry_context_data_header_t *this_p = JERRY_CONTEXT (context_data_p); in jerry_cleanup() 278 for (jerry_context_data_header_t *this_p = JERRY_CONTEXT (context_data_p), *next_p = NULL; in jerry_cleanup() 308 for (item_p = JERRY_CONTEXT (context_data_p); item_p != NULL; item_p = item_p->next_p) in jerry_get_context_data() 318 item_p->next_p = JERRY_CONTEXT (context_data_p); in jerry_get_context_data() [all …]
|
/third_party/jerryscript/jerry-core/jmem/ |
D | jmem-heap.c | 106 JERRY_CONTEXT (jmem_heap_limit) = CONFIG_GC_LIMIT; in jmem_heap_init() 116 JERRY_CONTEXT (jmem_heap_list_skip_p) = &JERRY_HEAP_CONTEXT (first); in jmem_heap_init() 131 JERRY_ASSERT (JERRY_CONTEXT (jmem_heap_allocated_size) == 0); in jmem_heap_finalize() 153 JERRY_CONTEXT (jmem_heap_allocated_size) += size; in jmem_heap_alloc() 154 while(JERRY_CONTEXT(jmem_heap_allocated_size) >= JERRY_CONTEXT (jmem_heap_limit)) in jmem_heap_alloc() 156 JERRY_CONTEXT (jmem_heap_limit) += CONFIG_GC_LIMIT; in jmem_heap_alloc() 176 JERRY_CONTEXT (jmem_heap_allocated_size) += JMEM_ALIGNMENT; in jmem_heap_alloc() 178 if (JERRY_CONTEXT (jmem_heap_allocated_size) >= JERRY_CONTEXT (jmem_heap_limit)) in jmem_heap_alloc() 180 JERRY_CONTEXT (jmem_heap_limit) += CONFIG_GC_LIMIT; in jmem_heap_alloc() 204 if (JERRY_UNLIKELY (data_space_p == JERRY_CONTEXT (jmem_heap_list_skip_p))) in jmem_heap_alloc() [all …]
|
D | jmem-poolman.c | 46 JERRY_ASSERT (JERRY_CONTEXT (jmem_free_8_byte_chunk_p) == NULL); in jmem_pools_finalize() 48 JERRY_ASSERT (JERRY_CONTEXT (jmem_free_16_byte_chunk_p) == NULL); in jmem_pools_finalize() 72 if (JERRY_CONTEXT (jmem_free_8_byte_chunk_p) != NULL) in jmem_pools_alloc() 74 const jmem_pools_chunk_t *const chunk_p = JERRY_CONTEXT (jmem_free_8_byte_chunk_p); in jmem_pools_alloc() 77 JERRY_CONTEXT (jmem_free_8_byte_chunk_p) = chunk_p->next_p; in jmem_pools_alloc() 95 if (JERRY_CONTEXT (jmem_free_16_byte_chunk_p) != NULL) in jmem_pools_alloc() 97 const jmem_pools_chunk_t *const chunk_p = JERRY_CONTEXT (jmem_free_16_byte_chunk_p); in jmem_pools_alloc() 100 JERRY_CONTEXT (jmem_free_16_byte_chunk_p) = chunk_p->next_p; in jmem_pools_alloc() 136 chunk_to_free_p->next_p = JERRY_CONTEXT (jmem_free_8_byte_chunk_p); in jmem_pools_free() 137 JERRY_CONTEXT (jmem_free_8_byte_chunk_p) = chunk_to_free_p; in jmem_pools_free() [all …]
|
D | jmem-allocator.c | 34 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_allocate_byte_code_bytes() 50 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_free_byte_code_bytes() 63 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_allocate_string_bytes() 79 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_free_string_bytes() 92 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_allocate_object_bytes() 108 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_free_object_bytes() 121 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_allocate_property_bytes() 137 jmem_heap_stats_t *heap_stats = &JERRY_CONTEXT (jmem_heap_stats); in jmem_stats_free_property_bytes() 164 if (JERRY_CONTEXT (jerry_init_flags) & ECMA_INIT_MEM_STATS) in jmem_finalize()
|
/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-init-finalize.c | 44 JERRY_CONTEXT (ecma_gc_mark_recursion_limit) = JERRY_GC_MARK_LIMIT; in ecma_init() 50 JERRY_CONTEXT (ecma_prop_hashmap_alloc_state) = ECMA_PROP_HASHMAP_ALLOC_ON; in ecma_init() 51 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_HIGH_PRESSURE_GC; in ecma_init() 56 JERRY_CONTEXT (stack_base) = (uintptr_t) &sp; in ecma_init() 64 JERRY_CONTEXT (current_new_target) = NULL; in ecma_init() 65 JERRY_CONTEXT (current_function_obj_p) = NULL; in ecma_init() 76 JERRY_ASSERT (JERRY_CONTEXT (current_new_target) == NULL); in ecma_finalize() 77 JERRY_ASSERT (JERRY_CONTEXT (current_function_obj_p) == NULL); in ecma_finalize() 91 while (JERRY_CONTEXT (ecma_gc_new_objects) != 0); in ecma_finalize()
|
D | ecma-module.c | 61 JERRY_ASSERT (JERRY_CONTEXT (module_top_context_p) != NULL); in ecma_module_create_normalized_path() 62 if (JERRY_CONTEXT (module_top_context_p)->module_p != NULL) in ecma_module_create_normalized_path() 64 JERRY_ASSERT (JERRY_CONTEXT (module_top_context_p)->module_p->path_p != NULL); in ecma_module_create_normalized_path() 65 … module_path_size = ecma_string_get_size (JERRY_CONTEXT (module_top_context_p)->module_p->path_p); in ecma_module_create_normalized_path() 69 …module_utf8_size = ecma_string_copy_to_utf8_buffer (JERRY_CONTEXT (module_top_context_p)->module_p… in ecma_module_create_normalized_path() 107 ecma_module_t *current_p = JERRY_CONTEXT (ecma_modules_p); in ecma_module_find_module() 132 module_p->next_p = JERRY_CONTEXT (ecma_modules_p); in ecma_module_create_module() 133 JERRY_CONTEXT (ecma_modules_p) = module_p; in ecma_module_create_module() 490 module_p->context_p->parent_p = JERRY_CONTEXT (module_top_context_p); in ecma_module_evaluate() 491 JERRY_CONTEXT (module_top_context_p) = module_p->context_p; in ecma_module_evaluate() [all …]
|
D | ecma-gc.c | 96 if (JERRY_CONTEXT (ecma_gc_mark_recursion_limit) != 0) in ecma_gc_set_object_visited() 98 JERRY_CONTEXT (ecma_gc_mark_recursion_limit)--; in ecma_gc_set_object_visited() 102 JERRY_CONTEXT (ecma_gc_mark_recursion_limit)++; in ecma_gc_set_object_visited() 123 JERRY_CONTEXT (ecma_gc_objects_number)++; in ecma_init_gc_info() 124 JERRY_CONTEXT (ecma_gc_new_objects)++; in ecma_init_gc_info() 129 object_p->gc_next_cp = JERRY_CONTEXT (ecma_gc_objects_cp); in ecma_init_gc_info() 130 ECMA_SET_NON_NULL_POINTER (JERRY_CONTEXT (ecma_gc_objects_cp), object_p); in ecma_init_gc_info() 1024 JERRY_ASSERT (JERRY_CONTEXT (ecma_gc_objects_number) > 0); in ecma_gc_free_object() 1025 JERRY_CONTEXT (ecma_gc_objects_number)--; in ecma_gc_free_object() 1364 JERRY_ASSERT (JERRY_CONTEXT (ecma_gc_mark_recursion_limit) == JERRY_GC_MARK_LIMIT); in ecma_gc_run() [all …]
|
D | ecma-literal-storage.c | 134 ecma_free_symbol_list (JERRY_CONTEXT (symbol_list_first_cp)); in ecma_finalize_lit_storage() 136 ecma_free_string_list (JERRY_CONTEXT (string_list_first_cp)); in ecma_finalize_lit_storage() 137 ecma_free_number_list (JERRY_CONTEXT (number_list_first_cp)); in ecma_finalize_lit_storage() 165 jmem_cpointer_t string_list_cp = JERRY_CONTEXT (string_list_first_cp); in ecma_find_or_create_literal_string() 225 new_item_p->next_cp = JERRY_CONTEXT (string_list_first_cp); in ecma_find_or_create_literal_string() 226 JMEM_CP_SET_NON_NULL_POINTER (JERRY_CONTEXT (string_list_first_cp), new_item_p); in ecma_find_or_create_literal_string() 249 jmem_cpointer_t number_list_cp = JERRY_CONTEXT (number_list_first_cp); in ecma_find_or_create_literal_number() 302 new_item_p->next_cp = JERRY_CONTEXT (number_list_first_cp); in ecma_find_or_create_literal_number() 303 JMEM_CP_SET_NON_NULL_POINTER (JERRY_CONTEXT (number_list_first_cp), new_item_p); in ecma_find_or_create_literal_number()
|
D | ecma-lcache.c | 103 ecma_lcache_hash_entry_t *entry_p = JERRY_CONTEXT (lcache) [row_index]; in ecma_lcache_insert() 166 ecma_lcache_hash_entry_t *entry_p = JERRY_CONTEXT (lcache) [row_index]; in ecma_lcache_lookup() 202 ecma_lcache_hash_entry_t *entry_p = JERRY_CONTEXT (lcache) [row_index]; in ecma_lcache_invalidate() 207 JERRY_ASSERT (entry_p - JERRY_CONTEXT (lcache) [row_index] < ECMA_LCACHE_HASH_ROW_LENGTH); in ecma_lcache_invalidate()
|
/third_party/jerryscript/jerry-core/debugger/ |
D | debugger.c | 60 type *name_p = (type *) (JERRY_CONTEXT (debugger_send_buffer_payload_p)) 78 JERRY_CONTEXT (debugger_byte_code_free_tail)); in jerry_debugger_free_unreferenced_byte_code() 103 if (!((JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_TRANSPORT_STARTED))) { in jerry_debugger_send() 108 JERRY_ASSERT (message_length <= JERRY_CONTEXT (debugger_max_send_size)); in jerry_debugger_send() 110 jerry_debugger_transport_header_t *header_p = JERRY_CONTEXT (debugger_transport_header_p); in jerry_debugger_send() 111 uint8_t *payload_p = JERRY_CONTEXT (debugger_send_buffer_payload_p); in jerry_debugger_send() 139 vm_frame_ctx_t *iter_frame_ctx_p = JERRY_CONTEXT (vm_top_context_p); in jerry_debugger_send_backtrace() 158 vm_frame_ctx_t *frame_ctx_p = JERRY_CONTEXT (vm_top_context_p); in jerry_debugger_send_backtrace() 219 vm_frame_ctx_t *iter_frame_ctx_p = JERRY_CONTEXT (vm_top_context_p); in jerry_debugger_send_scope_chain() 439 vm_frame_ctx_t *iter_frame_ctx_p = JERRY_CONTEXT (vm_top_context_p); in jerry_debugger_send_scope_variables() [all …]
|
D | debugger.h | 49 …((size_t) ((JERRY_CONTEXT (debugger_max_send_size) - sizeof (jerry_debugger_send_type_t)) / sizeof… 107 JERRY_CONTEXT (debugger_flags) = (JERRY_CONTEXT (debugger_flags) | (uint32_t) (flags)) 113 JERRY_CONTEXT (debugger_flags) = (JERRY_CONTEXT (debugger_flags) & (uint32_t) ~(flags)) 119 JERRY_CONTEXT (debugger_flags) = ((JERRY_CONTEXT (debugger_flags) | (uint32_t) (flags_to_set)) \
|
/third_party/jerryscript/jerry-core/jcontext/ |
D | jcontext.c | 31 return JERRY_CONTEXT (status_flags) & ECMA_STATUS_EXCEPTION; in jcontext_has_pending_exception() 43 return JERRY_CONTEXT (status_flags) & ECMA_STATUS_ABORT; in jcontext_has_pending_abort() 57 JERRY_CONTEXT (status_flags) |= ECMA_STATUS_ABORT; in jcontext_set_abort_flag() 61 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_ABORT; in jcontext_set_abort_flag() 74 JERRY_CONTEXT (status_flags) |= ECMA_STATUS_EXCEPTION; in jcontext_set_exception_flag() 78 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_EXCEPTION; in jcontext_set_exception_flag() 91 JERRY_CONTEXT (error_value) = error; in jcontext_raise_exception() 118 return JERRY_CONTEXT (error_value); in jcontext_take_exception()
|
D | jcontext.h | 256 #define JERRY_CONTEXT(field) (jerry_dynamic_global_context_p->field) macro 260 #define JMEM_HEAP_SIZE (JERRY_CONTEXT (heap_size)) 270 #define JERRY_HEAP_CONTEXT(field) (JERRY_CONTEXT (heap_p)->field) 293 #define JERRY_CONTEXT(field) (jerry_global_context.field) macro
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-jobqueue.c | 65 JERRY_CONTEXT (job_queue_head_p) = NULL; in ecma_job_queue_init() 66 JERRY_CONTEXT (job_queue_tail_p) = NULL; in ecma_job_queue_init() 261 if (JERRY_CONTEXT (job_queue_head_p) == NULL) in ecma_enqueue_job() 263 JERRY_CONTEXT (job_queue_head_p) = job_p; in ecma_enqueue_job() 264 JERRY_CONTEXT (job_queue_tail_p) = job_p; in ecma_enqueue_job() 268 …JERRY_ASSERT ((JERRY_CONTEXT (job_queue_tail_p)->next_and_type & ~ECMA_JOB_QUEURE_TYPE_MASK) == 0); in ecma_enqueue_job() 270 JERRY_CONTEXT (job_queue_tail_p)->next_and_type |= (uintptr_t) job_p; in ecma_enqueue_job() 271 JERRY_CONTEXT (job_queue_tail_p) = job_p; in ecma_enqueue_job() 327 while (JERRY_CONTEXT (job_queue_head_p) != NULL && !ECMA_IS_VALUE_ERROR (ret)) in ecma_process_all_enqueued_jobs() 329 ecma_job_queue_item_t *job_p = JERRY_CONTEXT (job_queue_head_p); in ecma_process_all_enqueued_jobs() [all …]
|
D | ecma-lex-env.c | 47 ECMA_SET_NON_NULL_POINTER (JERRY_CONTEXT (ecma_global_env_cp), global_lex_env_p); in ecma_init_global_environment() 49 ECMA_SET_NON_NULL_POINTER (JERRY_CONTEXT (ecma_global_scope_cp), global_lex_env_p); in ecma_init_global_environment() 60 if (JERRY_CONTEXT (ecma_global_scope_cp) != JERRY_CONTEXT (ecma_global_env_cp)) in ecma_finalize_global_environment() 62 …ecma_deref_object (ECMA_GET_NON_NULL_POINTER (ecma_object_t, JERRY_CONTEXT (ecma_global_scope_cp))… in ecma_finalize_global_environment() 64 JERRY_CONTEXT (ecma_global_scope_cp) = JMEM_CP_NULL; in ecma_finalize_global_environment() 66 ecma_deref_object (ECMA_GET_NON_NULL_POINTER (ecma_object_t, JERRY_CONTEXT (ecma_global_env_cp))); in ecma_finalize_global_environment() 67 JERRY_CONTEXT (ecma_global_env_cp) = JMEM_CP_NULL; in ecma_finalize_global_environment() 79 JERRY_ASSERT (JERRY_CONTEXT (ecma_global_env_cp) != JMEM_CP_NULL); in ecma_get_global_environment() 80 return ECMA_GET_NON_NULL_POINTER (ecma_object_t, JERRY_CONTEXT (ecma_global_env_cp)); in ecma_get_global_environment() 90 if (JERRY_CONTEXT (ecma_global_scope_cp) == JERRY_CONTEXT (ecma_global_env_cp)) in ecma_create_global_lexical_block() [all …]
|
D | ecma-function-object.c | 332 JERRY_CONTEXT (resource_name) = ecma_make_magic_string_value (LIT_MAGIC_STRING_RESOURCE_ANON); in ecma_op_create_dynamic_function() 352 ecma_object_t *new_target_p = JERRY_CONTEXT (current_new_target); in ecma_op_create_dynamic_function() 482 if (JERRY_CONTEXT (current_new_target) != NULL) in ecma_op_create_arrow_function_object() 484 arrow_func_p->new_target = ecma_make_object_value (JERRY_CONTEXT (current_new_target)); in ecma_op_create_arrow_function_object() 802 bool is_construct_call = JERRY_CONTEXT (current_new_target) != NULL; in ecma_op_function_call_simple() 819 ecma_object_t *old_function_object_p = JERRY_CONTEXT (current_function_obj_p); in ecma_op_function_call_simple() 827 JERRY_CONTEXT (current_new_target) = NULL; in ecma_op_function_call_simple() 831 JERRY_CONTEXT (current_new_target) = ecma_get_object_from_value (arrow_func_p->new_target); in ecma_op_function_call_simple() 837 JERRY_CONTEXT (current_function_obj_p) = func_obj_p; in ecma_op_function_call_simple() 896 JERRY_CONTEXT (current_function_obj_p) = old_function_object_p; in ecma_op_function_call_simple() [all …]
|
/third_party/jerryscript/jerry-core/parser/regexp/ |
D | re-compiler.c | 51 re_compiled_code_t **cache_p = JERRY_CONTEXT (re_cache); in re_cache_lookup() 80 re_compiled_code_t **cache_p = JERRY_CONTEXT (re_cache); in re_cache_gc() 95 JERRY_CONTEXT (re_cache_idx) = 0; in re_cache_gc() 159 if (JERRY_CONTEXT (jerry_init_flags) & ECMA_INIT_SHOW_REGEXP_OPCODES) in re_compile_bytecode() 165 uint8_t cache_idx = JERRY_CONTEXT (re_cache_idx); in re_compile_bytecode() 167 if (JERRY_CONTEXT (re_cache)[cache_idx] != NULL) in re_compile_bytecode() 169 ecma_bytecode_deref ((ecma_compiled_code_t *) JERRY_CONTEXT (re_cache)[cache_idx]); in re_compile_bytecode() 172 JERRY_CONTEXT (re_cache)[cache_idx] = re_compiled_code_p; in re_compile_bytecode() 173 JERRY_CONTEXT (re_cache_idx) = (uint8_t) (cache_idx + 1) % RE_CACHE_SIZE; in re_compile_bytecode()
|
/third_party/jerryscript/jerry-core/lit/ |
D | lit-magic-strings.c | 34 return JERRY_CONTEXT (lit_magic_string_ex_count); in lit_get_magic_string_ex_count() 122 …JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_array) && id < JERRY_CONTEXT (lit_magic_string_ex… in lit_get_magic_string_ex_utf8() 124 return JERRY_CONTEXT (lit_magic_string_ex_array)[id]; in lit_get_magic_string_ex_utf8() 135 return JERRY_CONTEXT (lit_magic_string_ex_sizes)[id]; in lit_get_magic_string_ex_size() 151 JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_array) == NULL); in lit_magic_strings_ex_set() 152 JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_count) == 0); in lit_magic_strings_ex_set() 153 JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_sizes) == NULL); in lit_magic_strings_ex_set() 162 JERRY_CONTEXT (lit_magic_string_ex_array) = ex_str_items; in lit_magic_strings_ex_set() 163 JERRY_CONTEXT (lit_magic_string_ex_count) = count; in lit_magic_strings_ex_set() 164 JERRY_CONTEXT (lit_magic_string_ex_sizes) = ex_str_sizes; in lit_magic_strings_ex_set() [all …]
|
/third_party/jerryscript/jerry-core/parser/js/ |
D | js-parser-module.c | 58 ecma_module_node_t *module_node_p = JERRY_CONTEXT (module_top_context_p)->imports_p; in parser_module_check_duplicate_import() 127 ecma_module_node_t *export_node_p = JERRY_CONTEXT (module_top_context_p)->local_exports_p; in parser_module_check_duplicate_export() 144 export_node_p = JERRY_CONTEXT (module_top_context_p)->indirect_exports_p; in parser_module_check_duplicate_export() 183 export_list_p = &(JERRY_CONTEXT (module_top_context_p)->star_exports_p); in parser_module_add_export_node_to_context() 187 export_list_p = &(JERRY_CONTEXT (module_top_context_p)->indirect_exports_p); in parser_module_add_export_node_to_context() 193 export_list_p = &(JERRY_CONTEXT (module_top_context_p)->local_exports_p); in parser_module_add_export_node_to_context() 235 ecma_module_node_t *stored_imports = JERRY_CONTEXT (module_top_context_p)->imports_p; in parser_module_add_import_node_to_context() 263 module_node_p->next_p = JERRY_CONTEXT (module_top_context_p)->imports_p; in parser_module_add_import_node_to_context() 264 JERRY_CONTEXT (module_top_context_p)->imports_p = module_node_p; in parser_module_add_import_node_to_context() 298 if (JERRY_CONTEXT (module_top_context_p) == NULL) in parser_module_context_init() [all …]
|
/third_party/jerryscript/jerry-core/vm/ |
D | vm-utils.c | 32 JERRY_ASSERT (JERRY_CONTEXT (vm_top_context_p) != NULL); in vm_is_strict_mode() 34 …return JERRY_CONTEXT (vm_top_context_p)->bytecode_header_p->status_flags & CBC_CODE_FLAGS_STRICT_M… in vm_is_strict_mode() 52 return (JERRY_CONTEXT (status_flags) & ECMA_STATUS_DIRECT_EVAL) != 0; in vm_is_direct_eval_form_call() 111 vm_frame_ctx_t *context_p = JERRY_CONTEXT (vm_top_context_p); in vm_get_backtrace()
|
D | vm.c | 321 if (JERRY_CONTEXT (module_top_context_p) != NULL) in vm_run_global() 323 JERRY_ASSERT (JERRY_CONTEXT (module_top_context_p)->parent_p == NULL); in vm_run_global() 324 ecma_module_t *module_p = JERRY_CONTEXT (module_top_context_p)->module_p; in vm_run_global() 332 JERRY_CONTEXT (module_top_context_p) = NULL; in vm_run_global() 363 this_binding = ecma_copy_value (JERRY_CONTEXT (vm_top_context_p)->this_binding); in vm_run_eval() 364 lex_env_p = JERRY_CONTEXT (vm_top_context_p)->lex_env_p; in vm_run_eval() 585 JERRY_CONTEXT (current_new_target), in vm_super_call() 591 ecma_value_t proto_value = ecma_op_object_get_by_magic_id (JERRY_CONTEXT (current_new_target), in vm_super_call() 623 JERRY_CONTEXT (debugger_exception_byte_code_p) = frame_ctx_p->byte_code_p; in vm_super_call() 719 JERRY_CONTEXT (debugger_exception_byte_code_p) = frame_ctx_p->byte_code_p; in vm_spread_operation() [all …]
|
D | opcodes.c | 599 …ecma_object_t *proto_p = ecma_op_get_prototype_from_constructor (JERRY_CONTEXT (current_function_o… in opfunc_create_executable_object() 637 JERRY_CONTEXT (vm_top_context_p) = new_frame_ctx_p->prev_context_p; in opfunc_create_executable_object() 695 executable_object_p->frame_ctx.prev_context_p = JERRY_CONTEXT (vm_top_context_p); in opfunc_resume_executable_object() 696 JERRY_CONTEXT (vm_top_context_p) = &executable_object_p->frame_ctx; in opfunc_resume_executable_object() 699 ecma_object_t *old_new_target = JERRY_CONTEXT (current_new_target); in opfunc_resume_executable_object() 700 JERRY_CONTEXT (current_new_target) = NULL; in opfunc_resume_executable_object() 704 JERRY_CONTEXT (current_new_target) = old_new_target; in opfunc_resume_executable_object() 716 JERRY_CONTEXT (vm_top_context_p) = executable_object_p->frame_ctx.prev_context_p; in opfunc_resume_executable_object() 776 if (JERRY_CONTEXT (current_new_target) == NULL) in ecma_op_implicit_constructor_handler_cb() 800 if (JERRY_CONTEXT (current_new_target) == NULL) in ecma_op_implicit_constructor_handler_heritage_cb() [all …]
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtins.c | 280 jmem_cpointer_t builtin_cp = JERRY_CONTEXT (ecma_builtin_objects)[builtin_id]; in ecma_builtin_is() 298 if (JERRY_UNLIKELY (JERRY_CONTEXT (ecma_builtin_objects)[builtin_id] == JMEM_CP_NULL)) in ecma_builtin_get() 303 …return ECMA_GET_NON_NULL_POINTER (ecma_object_t, JERRY_CONTEXT (ecma_builtin_objects)[builtin_id]); in ecma_builtin_get() 317 JERRY_ASSERT (JERRY_CONTEXT (ecma_builtin_objects)[ECMA_BUILTIN_ID_GLOBAL] != JMEM_CP_NULL); in ecma_builtin_get_global() 319 …return ECMA_GET_NON_NULL_POINTER (ecma_object_t, JERRY_CONTEXT (ecma_builtin_objects)[ECMA_BUILTIN… in ecma_builtin_get_global() 345 JERRY_ASSERT (JERRY_CONTEXT (ecma_builtin_objects)[obj_builtin_id] == JMEM_CP_NULL); in ecma_instantiate_builtin() 359 if (JERRY_CONTEXT (ecma_builtin_objects)[object_prototype_builtin_id] == JMEM_CP_NULL) in ecma_instantiate_builtin() 364 … JERRY_CONTEXT (ecma_builtin_objects)[object_prototype_builtin_id]); in ecma_instantiate_builtin() 526 ECMA_SET_NON_NULL_POINTER (JERRY_CONTEXT (ecma_builtin_objects)[obj_builtin_id], obj_p); in ecma_instantiate_builtin() 539 if (JERRY_CONTEXT (ecma_builtin_objects)[id] != JMEM_CP_NULL) in ecma_finalize_builtins() [all …]
|