You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requires a little extra bookkeeping but there are two good reasons to
accept that overhead:
1. OP_source_loc is pretty big at 9 bytes so duplicates bloat the
bytecode considerably
2. An OP_source_loc opcode can throw off the peephole optimizer if it's
between two opcodes the optimizer is trying to match; removing
duplicates reduces the chance of that happening
Fixes: quickjs-ng#916
Example phase 1 bytecode:
Not really a bug, just mildly inefficient. All what emitting the same location twice accomplishes is bloating the bytecode.
Probably easy to fix by remembering the last emitted source location.
The text was updated successfully, but these errors were encountered: