Home
last modified time | relevance | path

Searched refs:current_p (Results 1 – 23 of 23) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-json.c83 const lit_utf8_byte_t *current_p; /**< current position of the string processed by the parser */ member
102 const lit_utf8_byte_t *current_p = token_p->current_p; in ecma_builtin_json_parse_string() local
106 const lit_utf8_byte_t *unappended_p = current_p; in ecma_builtin_json_parse_string()
110 if (current_p >= end_p || *current_p <= 0x1f) in ecma_builtin_json_parse_string()
115 if (*current_p == LIT_CHAR_DOUBLE_QUOTE) in ecma_builtin_json_parse_string()
120 if (*current_p == LIT_CHAR_BACKSLASH) in ecma_builtin_json_parse_string()
124 (lit_utf8_size_t) (current_p - unappended_p)); in ecma_builtin_json_parse_string()
126 current_p++; in ecma_builtin_json_parse_string()
129 if (current_p >= end_p) in ecma_builtin_json_parse_string()
134 const lit_utf8_byte_t c = *current_p; in ecma_builtin_json_parse_string()
[all …]
Decma-builtin-helpers-json.c73 ecma_string_t *current_p = ecma_get_string_from_value (buffer_p[i]); in ecma_has_string_value_in_collection() local
75 if (ecma_compare_ecma_strings (current_p, string_p)) in ecma_has_string_value_in_collection()
Decma-builtin-string-prototype.c869 const lit_utf8_byte_t *current_p = string_buffer_p; in ecma_builtin_string_prototype_object_split() local
872 while (current_p < compare_end_p) in ecma_builtin_string_prototype_object_split()
874 if (!memcmp (current_p, separator_buffer_p, separator_size) in ecma_builtin_string_prototype_object_split()
875 && (last_str_begin_p != current_p + separator_size)) in ecma_builtin_string_prototype_object_split()
878 … (lit_utf8_size_t) (current_p - last_str_begin_p)); in ecma_builtin_string_prototype_object_split()
891 current_p += separator_size; in ecma_builtin_string_prototype_object_split()
892 last_str_begin_p = current_p; in ecma_builtin_string_prototype_object_split()
896 lit_utf8_incr (&current_p); in ecma_builtin_string_prototype_object_split()
/third_party/jerryscript/targets/nuttx-stm32f4/
Djerry_main.c190 for (jerry_char_t *current_p = err_str_buf; current_p < string_end_p; current_p++) in print_unhandled_exception() local
192 if (*current_p == '[') in print_unhandled_exception()
194 current_p++; in print_unhandled_exception()
196 if (*current_p == '<') in print_unhandled_exception()
201 path_str_p = (char *) current_p; in print_unhandled_exception()
202 while (current_p < string_end_p && *current_p != ':') in print_unhandled_exception()
204 current_p++; in print_unhandled_exception()
207 path_str_end_p = (char *) current_p++; in print_unhandled_exception()
209 err_line = str_to_uint ((char *) current_p, (char **) &current_p); in print_unhandled_exception()
211 current_p++; in print_unhandled_exception()
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-module.c107 ecma_module_t *current_p = JERRY_CONTEXT (ecma_modules_p); in ecma_module_find_module() local
108 while (current_p != NULL) in ecma_module_find_module()
110 if (ecma_compare_ecma_strings (path_p, current_p->path_p)) in ecma_module_find_module()
112 return current_p; in ecma_module_find_module()
114 current_p = current_p->next_p; in ecma_module_find_module()
117 return current_p; in ecma_module_find_module()
197 ecma_module_resolve_set_t *current_p = *set_p; in ecma_module_resolve_set_insert() local
199 while (current_p != NULL) in ecma_module_resolve_set_insert()
201 if (current_p->record.module_p == module_p in ecma_module_resolve_set_insert()
202 && ecma_compare_ecma_strings (current_p->record.name_p, export_name_p)) in ecma_module_resolve_set_insert()
[all …]
Decma-helpers-string.c2359 const lit_utf8_byte_t *current_p = *utf8_str_p; in ecma_string_trim_helper() local
2361 while (current_p < nonws_start_p) in ecma_string_trim_helper()
2363 read_size = lit_read_code_unit_from_utf8 (current_p, &ch); in ecma_string_trim_helper()
2367 nonws_start_p = current_p; in ecma_string_trim_helper()
2371 current_p += read_size; in ecma_string_trim_helper()
2374 current_p = *utf8_str_p + *utf8_str_size; in ecma_string_trim_helper()
2376 while (current_p > nonws_start_p) in ecma_string_trim_helper()
2378 read_size = lit_read_prev_code_unit_from_utf8 (current_p, &ch); in ecma_string_trim_helper()
2385 current_p -= read_size; in ecma_string_trim_helper()
2389 *utf8_str_size = (lit_utf8_size_t) (current_p - nonws_start_p); in ecma_string_trim_helper()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-objects-general.c650 … const ecma_property_descriptor_t *current_p, /**< current descriptor */ in ecma_op_is_compatible_property_descriptor() argument
657 if (current_p == NULL) in ecma_op_is_compatible_property_descriptor()
669 if ((current_p->flags & desc_p->flags) == desc_p->flags) in ecma_op_is_compatible_property_descriptor()
671 if ((current_p->flags & ECMA_PROP_IS_VALUE_DEFINED) in ecma_op_is_compatible_property_descriptor()
672 && ecma_op_same_value (current_p->value, desc_p->value)) in ecma_op_is_compatible_property_descriptor()
677 if ((current_p->flags & (ECMA_PROP_IS_GET_DEFINED | ECMA_PROP_IS_SET_DEFINED) in ecma_op_is_compatible_property_descriptor()
678 && current_p->get_p == desc_p->get_p in ecma_op_is_compatible_property_descriptor()
679 && current_p->set_p == desc_p->set_p)) in ecma_op_is_compatible_property_descriptor()
686 if (!(current_p->flags & ECMA_PROP_IS_CONFIGURABLE)) in ecma_op_is_compatible_property_descriptor()
693 … && ((current_p->flags & ECMA_PROP_IS_ENUMERABLE) != (desc_p->flags & ECMA_PROP_IS_ENUMERABLE))) in ecma_op_is_compatible_property_descriptor()
[all …]
Decma-regexp-object.c545 const lit_utf8_byte_t *current_p = *str_p; in ecma_regexp_unicode_advance() local
547 lit_code_point_t ch = lit_cesu8_read_next (&current_p); in ecma_regexp_unicode_advance()
549 && current_p < end_p) in ecma_regexp_unicode_advance()
551 const ecma_char_t next_ch = lit_cesu8_peek_next (current_p); in ecma_regexp_unicode_advance()
555 current_p += LIT_UTF8_MAX_BYTES_IN_CODE_UNIT; in ecma_regexp_unicode_advance()
559 *str_p = current_p; in ecma_regexp_unicode_advance()
2066 for (const lit_utf8_byte_t *current_p = flags_buffer_p; current_p < flags_end_p; ++current_p) in ecma_regexp_split_helper() local
2068 switch (*current_p) in ecma_regexp_split_helper()
2522 const lit_utf8_byte_t *current_p = ctx_p->string_p; in ecma_regexp_replace_helper_fast() local
2523 const lit_utf8_byte_t *last_append_p = current_p; in ecma_regexp_replace_helper_fast()
[all …]
Decma-objects-general.h44 const ecma_property_descriptor_t *current_p,
/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-mem.c296 iterator_p->current_p = list_p->data.first_p; in parser_list_iterator_init()
310 if (iterator_p->current_p == NULL) in parser_list_iterator_next()
315 result = iterator_p->current_p->bytes + iterator_p->current_position; in parser_list_iterator_next()
318 if (iterator_p->current_p->next_p == NULL) in parser_list_iterator_next()
322 iterator_p->current_p = NULL; in parser_list_iterator_next()
328 iterator_p->current_p = iterator_p->current_p->next_p; in parser_list_iterator_next()
624 iterator->current_p = iterator->current_p->next_p; in parser_stack_iterator_skip()
643 iterator->current_p->bytes + iterator->current_position - length, in parser_stack_iterator_read()
648 JERRY_ASSERT (iterator->current_p->next_p != NULL); in parser_stack_iterator_read()
652 iterator->current_p->bytes, in parser_stack_iterator_read()
[all …]
Djs-parser-util.c768 parser_branch_node_t *current_p) /**< branch list */ in parser_set_breaks_to_current_position() argument
770 while (current_p != NULL) in parser_set_breaks_to_current_position()
772 parser_branch_node_t *next_p = current_p->next_p; in parser_set_breaks_to_current_position()
774 if (!(current_p->branch.offset & CBC_HIGHEST_BIT_MASK)) in parser_set_breaks_to_current_position()
776 parser_set_branch_to_current_position (context_p, &current_p->branch); in parser_set_breaks_to_current_position()
778 parser_free (current_p, sizeof (parser_branch_node_t)); in parser_set_breaks_to_current_position()
779 current_p = next_p; in parser_set_breaks_to_current_position()
788 parser_branch_node_t *current_p) /**< branch list */ in parser_set_continues_to_current_position() argument
790 while (current_p != NULL) in parser_set_continues_to_current_position()
792 if (current_p->branch.offset & CBC_HIGHEST_BIT_MASK) in parser_set_continues_to_current_position()
[all …]
Djs-parser-internal.h341 parser_mem_page_t *current_p; /**< currently processed page */ member
359 parser_mem_page_t *current_p; /**< currently processed page */ member
656 …rser_set_breaks_to_current_position (parser_context_t *context_p, parser_branch_node_t *current_p);
657 …r_set_continues_to_current_position (parser_context_t *context_p, parser_branch_node_t *current_p);
Djs-parser-expr.c374 iterator.current_p = context_p->stack.first_p; in parser_append_object_literal_item()
379 current_item_type_p = iterator.current_p->bytes + iterator.current_position - 1; in parser_append_object_literal_item()
391 iterator.current_p = iterator.current_p->next_p; in parser_append_object_literal_item()
395 uint32_t current_item_index = iterator.current_p->bytes[iterator.current_position - 1]; in parser_append_object_literal_item()
400 iterator.current_p = iterator.current_p->next_p; in parser_append_object_literal_item()
404 … current_item_index |= ((uint32_t) iterator.current_p->bytes[iterator.current_position - 1]) << 8; in parser_append_object_literal_item()
409 iterator.current_p = iterator.current_p->next_p; in parser_append_object_literal_item()
Djs-parser-statm.c313 iterator->current_p = context_p->stack.first_p; in parser_stack_iterator_init()
326 return iterator->current_p->bytes[iterator->current_position - 1]; in parser_stack_iterator_read_uint8()
2221 loop_iterator.current_p = NULL; in parser_parse_continue_statement()
2234 if (loop_iterator.current_p != NULL && type == PARSER_STATEMENT_LABEL) in parser_parse_continue_statement()
2270 loop_iterator.current_p = NULL; in parser_parse_continue_statement()
2614 JERRY_ASSERT (context_p->last_statement.current_p == NULL); in parser_parse_statements()
3203 context_p->last_statement.current_p = NULL; in parser_parse_statements()
3345 context_p->last_statement.current_p = NULL; in parser_parse_statements()
Djs-parser.c2042 context.last_statement.current_p = NULL; in parser_parse_source()
2195 JERRY_ASSERT (context.last_statement.current_p == NULL); in parser_parse_source()
2232 if (context.last_statement.current_p != NULL) in parser_parse_source()
2339 context_p->last_statement.current_p = NULL; in parser_save_context()
2645 if (saved_context_p->last_statement.current_p != NULL) in parser_raise_error()
/third_party/jerryscript/jerry-core/api/
Djerry-debugger-transport.c132 jerry_debugger_transport_header_t *current_p = JERRY_CONTEXT (debugger_transport_header_p); in jerry_debugger_transport_close() local
134 JERRY_ASSERT (current_p != NULL); in jerry_debugger_transport_close()
138 jerry_debugger_transport_header_t *next_p = current_p->next_p; in jerry_debugger_transport_close()
140 current_p->close (current_p); in jerry_debugger_transport_close()
142 current_p = next_p; in jerry_debugger_transport_close()
144 while (current_p != NULL); in jerry_debugger_transport_close()
Djerry-snapshot.c488 lit_mem_to_snapshot_id_map_entry_t *current_p = lit_map_p; in jerry_snapshot_set_offsets() local
490 while (current_p->literal_id != literal_start_p[i]) in jerry_snapshot_set_offsets()
492 current_p++; in jerry_snapshot_set_offsets()
495 literal_start_p[i] = current_p->literal_offset; in jerry_snapshot_set_offsets()
511 lit_mem_to_snapshot_id_map_entry_t *current_p = lit_map_p; in jerry_snapshot_set_offsets() local
513 while (current_p->literal_id != literal_start_p[i]) in jerry_snapshot_set_offsets()
515 current_p++; in jerry_snapshot_set_offsets()
518 literal_start_p[i] = current_p->literal_offset; in jerry_snapshot_set_offsets()
1172 const lit_mem_to_snapshot_id_map_entry_t *current_p = lit_map_p; in update_literal_offsets() local
1174 while (current_p->literal_id != lit_value) in update_literal_offsets()
[all …]
/third_party/jerryscript/jerry-main/
Dmain-unix.c174 for (jerry_char_t *current_p = err_str_buf; current_p < string_end_p; current_p++) in print_unhandled_exception() local
176 if (*current_p == '[') in print_unhandled_exception()
178 current_p++; in print_unhandled_exception()
180 if (*current_p == '<') in print_unhandled_exception()
185 path_str_p = (char *) current_p; in print_unhandled_exception()
186 while (current_p < string_end_p && *current_p != ':') in print_unhandled_exception()
188 current_p++; in print_unhandled_exception()
191 path_str_end_p = (char *) current_p++; in print_unhandled_exception()
193 err_line = (unsigned int) strtol ((char *) current_p, (char **) &current_p, 10); in print_unhandled_exception()
195 current_p++; in print_unhandled_exception()
[all …]
/third_party/jerryscript/jerry-core/jmem/
Djmem-heap.c194 jmem_heap_free_t *current_p = JMEM_HEAP_GET_ADDR_FROM_OFFSET (current_offset); in jmem_heap_alloc() local
195 JERRY_ASSERT (jmem_is_heap_pointer (current_p)); in jmem_heap_alloc()
196 JMEM_VALGRIND_DEFINED_SPACE (current_p, sizeof (jmem_heap_free_t)); in jmem_heap_alloc()
198 const uint32_t next_offset = current_p->next_offset; in jmem_heap_alloc()
202 if (current_p->size >= required_size) in jmem_heap_alloc()
205 data_space_p = current_p; in jmem_heap_alloc()
208 if (current_p->size > required_size) in jmem_heap_alloc()
211 …jmem_heap_free_t *const remaining_p = (jmem_heap_free_t *) ((uint8_t *) current_p + required_size); in jmem_heap_alloc()
215 remaining_p->size = current_p->size - (uint32_t) required_size; in jmem_heap_alloc()
246 JMEM_VALGRIND_NOACCESS_SPACE (current_p, sizeof (jmem_heap_free_t)); in jmem_heap_alloc()
[all …]
/third_party/jerryscript/jerry-core/lit/
Dlit-char-helpers.c477 const lit_utf8_byte_t *current_p = *buffer_p; in lit_parse_decimal() local
478 JERRY_ASSERT (lit_char_is_decimal_digit (*current_p)); in lit_parse_decimal()
480 uint32_t value = (uint32_t) (*current_p++ - LIT_CHAR_0); in lit_parse_decimal()
482 while (current_p < buffer_end_p && lit_char_is_decimal_digit (*current_p)) in lit_parse_decimal()
484 const uint32_t digit = (uint32_t) (*current_p++ - LIT_CHAR_0); in lit_parse_decimal()
496 *buffer_p = current_p; in lit_parse_decimal()
Dlit-strings.c561 const lit_utf8_byte_t *current_p = *buf_p; in lit_utf8_decr() local
565 current_p--; in lit_utf8_decr()
567 while ((*(current_p) & LIT_UTF8_EXTRA_BYTE_MASK) == LIT_UTF8_EXTRA_BYTE_MARKER); in lit_utf8_decr()
569 *buf_p = current_p; in lit_utf8_decr()
628 lit_utf8_byte_t *current_p = (lit_utf8_byte_t *) utf8_buf_p; in lit_utf8_string_code_unit_at() local
633 JERRY_ASSERT (current_p < utf8_buf_p + utf8_buf_size); in lit_utf8_string_code_unit_at()
634 current_p += lit_read_code_unit_from_utf8 (current_p, &code_unit); in lit_utf8_string_code_unit_at()
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-parser.c283 const lit_utf8_byte_t *current_p = re_ctx_p->input_curr_p + 1; in re_parse_quantifier() local
287 if (current_p >= re_ctx_p->input_end_p) in re_parse_quantifier()
292 if (!lit_char_is_decimal_digit (*current_p)) in re_parse_quantifier()
297 qmin = lit_parse_decimal (&current_p, re_ctx_p->input_end_p); in re_parse_quantifier()
299 if (current_p >= re_ctx_p->input_end_p) in re_parse_quantifier()
304 lit_utf8_byte_t ch = *current_p++; in re_parse_quantifier()
311 if (current_p >= re_ctx_p->input_end_p) in re_parse_quantifier()
316 if (lit_char_is_decimal_digit (*current_p)) in re_parse_quantifier()
318 qmax = lit_parse_decimal (&current_p, re_ctx_p->input_end_p); in re_parse_quantifier()
321 if (current_p >= re_ctx_p->input_end_p || *current_p++ != LIT_CHAR_RIGHT_BRACE) in re_parse_quantifier()
[all …]
Dre-bytecode.c360 const uint8_t *current_p) /**< current bytecode pointer */ in re_get_bytecode_offset() argument
362 return (uint32_t) ((uintptr_t) current_p - (uintptr_t) start_p); in re_get_bytecode_offset()