Store source map locations as bytecode offset, line, and column. Runtime consumers only emit the start line and column, so source end positions and source text offsets do not need to be carried through Executable source maps, bytecode cache serialization, or the Rust FFI. Keep SourceCode's internal position cache able to track source text offsets so callers can still translate source offsets to line and column pairs when needed. Hash dump-bytecode IDs from the name, first source position, and bytecode size instead of source slices that need end offsets. Bump the bytecode cache format version for the slimmer serialized source map entry shape.
31 lines
977 B
Text
31 lines
977 B
Text
$32b2807a destructuring-no-base-identifier.js:1:1
|
|
Registers: 12
|
|
Blocks: 5
|
|
Constants:
|
|
[0] = Bool(false)
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] NewObject dst:reg5
|
|
[ 10] SetGlobal `x`, src:reg5
|
|
[ 28] NewPrimitiveArray dst:reg5, elements:[42]
|
|
[ 40] Mov dst:reg6, src:Bool(false)
|
|
[ 50] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg5
|
|
[ 68] GetGlobal dst:reg10, `x`
|
|
[ 80] IteratorNextUnpack dst_value:reg11, dst_done:reg6, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9
|
|
[ 98] JumpFalse condition:reg6, target:block2
|
|
|
|
block1:
|
|
[ a8] Mov dst:reg11, src:Undefined
|
|
[ b8] Jump target:block2
|
|
|
|
block2:
|
|
[ c0] PutById base:reg10, `y`, src:reg11, kind:Normal
|
|
[ e8] JumpFalse condition:reg6, target:block4
|
|
|
|
block3:
|
|
[ f8] End value:reg5
|
|
|
|
block4:
|
|
[ 100] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:Undefined
|
|
[ 118] End value:reg5
|