mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix line info computation (#4756)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
parent
6649940ea6
commit
f94a3c80bd
@ -407,7 +407,8 @@ parser_line_info_generate (parser_context_t *context_p) /**< context */
|
||||
|
||||
while (iterator_byte_code_page_offset >= PARSER_CBC_STREAM_PAGE_SIZE)
|
||||
{
|
||||
iterator_byte_code_base += iterator_byte_code_page_p->bytes[PARSER_CBC_STREAM_PAGE_SIZE - 1];
|
||||
uint8_t relative_offset = iterator_byte_code_page_p->bytes[PARSER_CBC_STREAM_PAGE_SIZE - 1];
|
||||
iterator_byte_code_base += relative_offset & CBC_LOWER_SEVEN_BIT_MASK;
|
||||
iterator_byte_code_page_offset -= PARSER_CBC_STREAM_PAGE_SIZE;
|
||||
iterator_byte_code_page_p = iterator_byte_code_page_p->next_p;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user