Home
last modified time | relevance | path

Searched refs:source_p (Results 1 – 25 of 35) sorted by relevance

12

/third_party/jerryscript/jerry-core/parser/js/
Djs-lexer.c62 lexer_hex_to_code_point (const uint8_t *source_p, /**< current source position */ in lexer_hex_to_code_point() argument
69 uint32_t byte = *source_p++; in lexer_hex_to_code_point()
103 lexer_hex_in_braces_to_code_point (const uint8_t *source_p, /**< current source position */ in lexer_hex_in_braces_to_code_point() argument
111 JERRY_ASSERT (source_p[-1] == LIT_CHAR_LEFT_BRACE); in lexer_hex_in_braces_to_code_point()
112 JERRY_ASSERT (source_p < source_end_p); in lexer_hex_in_braces_to_code_point()
116 uint32_t byte = *source_p++; in lexer_hex_in_braces_to_code_point()
137 if (result >= (LIT_UNICODE_CODE_POINT_MAX + 1) || source_p >= source_end_p) in lexer_hex_in_braces_to_code_point()
143 while (*source_p != LIT_CHAR_RIGHT_BRACE); in lexer_hex_in_braces_to_code_point()
157 lexer_unchecked_hex_to_character (const uint8_t **source_p) /**< [in, out] current source position … in lexer_unchecked_hex_to_character() argument
160 const uint8_t *char_p = *source_p; in lexer_unchecked_hex_to_character()
[all …]
Djs-scanner.c159 if (context_p->source_p[-1] != LIT_CHAR_GRAVE_ACCENT) in scanner_scan_primary_expression()
173 const uint8_t *source_p = context_p->source_p; in scanner_scan_primary_expression() local
178 scanner_scan_simple_arrow (context_p, scanner_context_p, source_p); in scanner_scan_primary_expression()
183 scanner_context_p->async_source_p = source_p; in scanner_scan_primary_expression()
323 if (JERRY_UNLIKELY (context_p->source_p[-1] != LIT_CHAR_GRAVE_ACCENT)) in scanner_scan_post_primary_expression()
503 source_start.source_p, in scanner_scan_primary_expression_end()
637 for_statement.u.source_p, in scanner_scan_primary_expression_end()
674 for_statement.u.source_p = context_p->source_p; in scanner_scan_primary_expression_end()
703 for_statement.u.source_p, in scanner_scan_primary_expression_end()
708 for_info_p->end_location.source_p = NULL; in scanner_scan_primary_expression_end()
[all …]
Djs-scanner-ops.c138 const uint8_t *source_p) /**< identifier end position */ in scanner_scan_simple_arrow() argument
146 JERRY_ASSERT (scanner_context_p->async_source_p == source_p); in scanner_scan_simple_arrow()
153 literal_pool_p->source_p = source_p; in scanner_scan_simple_arrow()
159 context_p->source_p += 2; in scanner_scan_simple_arrow()
175 const uint8_t *source_p = context_p->source_p; in scanner_check_arrow_arg() local
249 scanner_scan_simple_arrow (context_p, scanner_context_p, source_p); in scanner_check_arrow_arg()
331 literal_pool_p->source_p = context_p->source_p; in scanner_check_function_after_if()
367 arrow_source_p = context_p->source_p; in scanner_scan_bracket()
389 const uint8_t *source_p = context_p->source_p; in scanner_scan_bracket() local
393 arrow_source_p = source_p; in scanner_scan_bracket()
[all …]
Djs-scanner-util.c81 …scanner_info_t *info_p = scanner_insert_info (context_p, context_p->source_p, sizeof (scanner_info… in scanner_raise_redeclaration_error()
193 const uint8_t *source_p, /**< triggering position */ in scanner_insert_info() argument
201 JERRY_ASSERT (source_p != NULL); in scanner_insert_info()
203 new_scanner_info_p->source_p = source_p; in scanner_insert_info()
205 while (source_p < scanner_info_p->source_p) in scanner_insert_info()
214 JERRY_ASSERT (source_p != scanner_info_p->source_p); in scanner_insert_info()
237 const uint8_t *source_p, /**< triggering position */ in scanner_insert_info_before() argument
247 new_scanner_info_p->source_p = source_p; in scanner_insert_info_before()
249 while (source_p < scanner_info_p->source_p) in scanner_insert_info_before()
258 JERRY_ASSERT (source_p != scanner_info_p->source_p); in scanner_insert_info_before()
[all …]
Djs-parser-tagged-template-literal.c61 const uint8_t *source_p = lexer_convert_literal_to_chars (context_p, in parser_tagged_template_literal_append_strings() local
67 ecma_string_t *cooked_str_p = ecma_new_ecma_string_from_utf8 (source_p, lit_loc_p->length); in parser_tagged_template_literal_append_strings()
72 context_p->source_p = context_p->token.lit_location.char_p - 1; in parser_tagged_template_literal_append_strings()
74 source_p = lexer_convert_literal_to_chars (context_p, in parser_tagged_template_literal_append_strings()
79 raw_str_p = ecma_new_ecma_string_from_utf8 (source_p, lit_loc_p->length); in parser_tagged_template_literal_append_strings()
Djs-parser-statm.c535 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_parse_var_statement()
646 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_parse_function_statement()
701 if (context_p->next_scanner_info_p->source_p == context_p->source_p in parser_parse_function_statement()
980 JERRY_ASSERT (context_p->next_scanner_info_p->source_p != context_p->source_p); in parser_parse_do_while_statement_end()
1032 JERRY_ASSERT (context_p->next_scanner_info_p->source_p != context_p->source_p in parser_parse_while_statement_start()
1035 if (context_p->next_scanner_info_p->source_p != context_p->source_p) in parser_parse_while_statement_start()
1189 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_parse_for_statement_start()
1214 has_context = context_p->next_scanner_info_p->source_p == context_p->source_p; in parser_parse_for_statement_start()
1219 if (context_p->next_scanner_info_p->source_p == context_p->source_p in parser_parse_for_statement_start()
1227 if (context_p->next_scanner_info_p->source_p == context_p->source_p in parser_parse_for_statement_start()
[all …]
Djs-scanner-internal.h146 const uint8_t *source_p; /**< start source byte */ member
212 const uint8_t *source_p; /**< start source byte */ member
317 const uint8_t *source_p; /**< source position where the final data needs to be inserted */ member
356 scanner_info_t *scanner_insert_info (parser_context_t *context_p, const uint8_t *source_p, size_t s…
357 scanner_info_t *scanner_insert_info_before (parser_context_t *context_p, const uint8_t *source_p,
393 const uint8_t *source_p);
Djs-parser-expr.c728 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_parse_class()
742 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_parse_class()
851 context_p->source_p--; in parser_parse_object_method()
878 context_p->source_p = context_p->token.lit_location.char_p; in parser_reparse_as_common_identifier()
1349 context_p->source_p--; in parser_parse_template_literal()
1372 while (context_p->source_p[-1] != LIT_CHAR_GRAVE_ACCENT) in parser_parse_template_literal()
1392 context_p->source_p--; in parser_parse_template_literal()
1443 while (context_p->source_p[-1] != LIT_CHAR_GRAVE_ACCENT) in parser_parse_tagged_template_literal()
1445 JERRY_ASSERT (context_p->source_p[-1] == LIT_CHAR_LEFT_BRACE); in parser_parse_tagged_template_literal()
1460 context_p->source_p--; in parser_parse_tagged_template_literal()
[all …]
Djs-scanner.h61 const uint8_t *source_p; /**< next source byte */ member
72 const uint8_t *source_p; /**< triggering position of this scanner info */ member
Djs-parser.c1802 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_parse_function_arguments()
2005 const uint8_t *source_p, /**< valid UTF-8 source code */ in parser_parse_source() argument
2050 scanner_info_end.source_p = NULL; in parser_parse_source()
2096 source_p, in parser_parse_source()
2097 source_p + source_size); in parser_parse_source()
2114 context.source_p = source_p; in parser_parse_source()
2115 context.source_end_p = source_p + source_size; in parser_parse_source()
2119 context.source_p = arg_list_p; in parser_parse_source()
2160 context.source_p = source_p; in parser_parse_source()
2161 context.source_end_p = source_p + source_size; in parser_parse_source()
[all …]
Djs-parser-module.c467 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_module_parse_import_clause()
494 if (context_p->next_scanner_info_p->source_p == context_p->source_p) in parser_module_parse_import_clause()
/third_party/jerryscript/jerry-ext/debugger/
Ddebugger-ws.c116 jerryx_to_base64 (const uint8_t *source_p, /**< source data */ in jerryx_to_base64() argument
122 uint8_t value = (source_p[0] >> 2); in jerryx_to_base64()
125 value = (uint8_t) (((source_p[0] << 4) | (source_p[1] >> 4)) & 0x3f); in jerryx_to_base64()
128 value = (uint8_t) (((source_p[1] << 2) | (source_p[2] >> 6)) & 0x3f); in jerryx_to_base64()
131 value = (uint8_t) (source_p[2] & 0x3f); in jerryx_to_base64()
134 source_p += 3; in jerryx_to_base64()
Ddebugger-sha1.c265 const uint8_t *source_p, /**< source buffer */ in jerryx_sha1_update() argument
289 memcpy ((void *) (sha1_context_p->buffer + left), source_p, fill); in jerryx_sha1_update()
291 source_p += fill; in jerryx_sha1_update()
298 jerryx_sha1_process (sha1_context_p, source_p); in jerryx_sha1_update()
299 source_p += 64; in jerryx_sha1_update()
305 memcpy ((void *) (sha1_context_p->buffer + left), source_p, source_length); in jerryx_sha1_update()
/third_party/jerryscript/targets/nuttx-stm32f4/
Djerry_main.c229 const jerry_char_t *source_p = read_file (path_str_p, &source_size); in print_unhandled_exception() local
235 while (source_p[pos] != '\0') in print_unhandled_exception()
237 if (source_p[pos] == '\n') in print_unhandled_exception()
257 jerry_port_log (JERRY_LOG_LEVEL_ERROR, "%c", source_p[pos]); in print_unhandled_exception()
412 const jerry_char_t *source_p = read_file (file_names[i], &source_size); in main() local
414 if (source_p == NULL) in main()
422 source_p, in main()
425 free ((void*) source_p); in main()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-regexp-prototype.c546 ecma_string_t *source_p = ecma_op_to_string (result); in ecma_builtin_regexp_prototype_to_string() local
549 if (source_p == NULL) in ecma_builtin_regexp_prototype_to_string()
557 ecma_deref_ecma_string (source_p); in ecma_builtin_regexp_prototype_to_string()
566 ecma_deref_ecma_string (source_p); in ecma_builtin_regexp_prototype_to_string()
572 ecma_stringbuilder_append (&builder, source_p); in ecma_builtin_regexp_prototype_to_string()
576 ecma_deref_ecma_string (source_p); in ecma_builtin_regexp_prototype_to_string()
592 ecma_string_t *source_p = ecma_get_string_from_value (bc_p->source); in ecma_builtin_regexp_prototype_to_string()
597 ecma_stringbuilder_append (&result, source_p); in ecma_builtin_regexp_prototype_to_string()
/third_party/jerryscript/jerry-main/
Dmain-unix-test.c95 const jerry_char_t *source_p = read_file (file_name, &source_size); in main() local
97 if (source_p == NULL) in main()
104 ret_value = jerry_parse (NULL, 0, source_p, source_size, JERRY_PARSE_NO_OPTS); in main()
Dmain-unix-snapshot.c258 uint8_t *source_p = input_buffer; in process_generate() local
315 source_length = read_file (source_p, file_name_p); in process_generate()
350 if (!jerry_is_valid_utf8_string (source_p, (jerry_size_t) source_length)) in process_generate()
360 uint8_t *sp_buffer_start_p = source_p + source_length + 1; in process_generate()
396 (jerry_char_t *) source_p, in process_generate()
408 (jerry_char_t *) source_p, in process_generate()
Dmain-unix.c291 const jerry_char_t *source_p, /**< source code */ in wait_for_source_callback() argument
298 source_p, in wait_for_source_callback()
736 const jerry_char_t *source_p = (jerry_char_t *) read_file (file_names[i], &source_size); in main() local
738 if (source_p == NULL) in main()
744 if (!jerry_is_valid_utf8_string (source_p, (jerry_size_t) source_size)) in main()
752 source_p, in main()
/third_party/jerryscript/tests/unit-core/
Dtest-lit-char-helpers.c25 lexer_hex_to_character (const uint8_t *source_p) /**< current source position */ in lexer_hex_to_character() argument
31 uint32_t byte = *source_p++; in lexer_hex_to_character()
52 while (*source_p); in lexer_hex_to_character()
/third_party/jerryscript/jerry-core/include/
Djerryscript-snapshot.h57 const jerry_char_t *source_p, size_t source_size,
60 const jerry_char_t *source_p, size_t source_size,
Djerryscript-debugger.h56 const jerry_char_t *source_p,
/third_party/jerryscript/targets/esp8266/user/
Djerry_run.c36 int js_eval (const char *source_p, const size_t source_size) in js_eval() argument
38 jerry_value_t res = jerry_eval ((jerry_char_t *) source_p, in js_eval()
/third_party/jerryscript/jerry-core/lit/
Dlit-char-helpers.c422 const uint8_t *source_p) /**< source buffer */ in lit_four_byte_utf8_char_to_cesu8() argument
424 lit_code_point_t code_point = ((((uint32_t) source_p[0]) & LIT_UTF8_LAST_3_BITS_MASK) << 18); in lit_four_byte_utf8_char_to_cesu8()
425 code_point |= ((((uint32_t) source_p[1]) & LIT_UTF8_LAST_6_BITS_MASK) << 12); in lit_four_byte_utf8_char_to_cesu8()
426 code_point |= ((((uint32_t) source_p[2]) & LIT_UTF8_LAST_6_BITS_MASK) << 6); in lit_four_byte_utf8_char_to_cesu8()
427 code_point |= (((uint32_t) source_p[3]) & LIT_UTF8_LAST_6_BITS_MASK); in lit_four_byte_utf8_char_to_cesu8()
/third_party/jerryscript/targets/esp8266/include/
Djerry_run.h27 int js_eval (const char *source_p, const size_t source_size);
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c734 const jerry_char_t *source_p, /**< script source */ in jerry_generate_snapshot_with_args() argument
763 source_p, in jerry_generate_snapshot_with_args()
856 const jerry_char_t *source_p, /**< script source */ in jerry_generate_snapshot() argument
873 source_p, in jerry_generate_snapshot()
883 JERRY_UNUSED (source_p); in jerry_generate_snapshot()
1776 const jerry_char_t *source_p, /**< script source */ in jerry_generate_function_snapshot() argument
1795 source_p, in jerry_generate_function_snapshot()
1805 JERRY_UNUSED (source_p); in jerry_generate_function_snapshot()

12