Home
last modified time | relevance | path

Searched refs:PARSER_CBC_STREAM_PAGE_SIZE (Results 1 – 4 of 4) sorted by relevance

/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-util.c48 if (last_position + 2 <= PARSER_CBC_STREAM_PAGE_SIZE) in parser_emit_two_bytes()
56 else if (last_position >= PARSER_CBC_STREAM_PAGE_SIZE) in parser_emit_two_bytes()
68 context_p->byte_code.last_p->bytes[PARSER_CBC_STREAM_PAGE_SIZE - 1] = first_byte; in parser_emit_two_bytes()
82 if ((context_p)->byte_code.last_position >= PARSER_CBC_STREAM_PAGE_SIZE) \
741 if (offset >= PARSER_CBC_STREAM_PAGE_SIZE) in parser_set_branch_to_current_position()
748 if (offset >= PARSER_CBC_STREAM_PAGE_SIZE) in parser_set_branch_to_current_position()
754 if (offset >= PARSER_CBC_STREAM_PAGE_SIZE) in parser_set_branch_to_current_position()
Djs-parser.c333 while (full_distance > PARSER_CBC_STREAM_PAGE_SIZE) in parser_update_forward_branch()
335 new_distance += page_p->bytes[PARSER_CBC_STREAM_PAGE_SIZE - 1] & CBC_LOWER_SEVEN_BIT_MASK; in parser_update_forward_branch()
336 full_distance -= PARSER_CBC_STREAM_PAGE_SIZE; in parser_update_forward_branch()
356 while (full_distance >= PARSER_CBC_STREAM_PAGE_SIZE) in parser_update_backward_branch()
359 new_distance += page_p->bytes[PARSER_CBC_STREAM_PAGE_SIZE - 1] & CBC_LOWER_SEVEN_BIT_MASK; in parser_update_backward_branch()
360 full_distance -= PARSER_CBC_STREAM_PAGE_SIZE; in parser_update_backward_branch()
366 size_t offset = PARSER_CBC_STREAM_PAGE_SIZE - full_distance; in parser_update_backward_branch()
370 new_distance += page_p->bytes[PARSER_CBC_STREAM_PAGE_SIZE - 1] & CBC_LOWER_SEVEN_BIT_MASK; in parser_update_backward_branch()
391 if (last_position >= PARSER_CBC_STREAM_PAGE_SIZE) in parse_update_branches()
480 if (offset >= PARSER_CBC_STREAM_PAGE_SIZE) in parse_update_branches()
[all …]
Djs-parser-mem.c150 parser_data_init (data_p, PARSER_CBC_STREAM_PAGE_SIZE); in parser_cbc_stream_init()
160 sizeof (parser_mem_page_t *) + PARSER_CBC_STREAM_PAGE_SIZE); in parser_cbc_stream_free()
170 size_t size = sizeof (parser_mem_page_t *) + PARSER_CBC_STREAM_PAGE_SIZE; in parser_cbc_stream_alloc_page()
Djs-parser-internal.h219 #define PARSER_CBC_STREAM_PAGE_SIZE \ macro