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.
64 lines
1.8 KiB
Text
64 lines
1.8 KiB
Text
$9431c529 destructuring-assignment-in-logical-and.js:5:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Null
|
|
[2] = Int32(0)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `f`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, f, arguments:[Null, Int32(0)]
|
|
[ 40] End value:reg5
|
|
|
|
|
|
f$bd59b03f destructuring-assignment-in-logical-and.js:2:5
|
|
Registers: 12
|
|
Blocks: 10
|
|
Locals: a~0, b~1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Bool(false)
|
|
|
|
block0:
|
|
[ 0] Mov3 dst1:a~0, src1:Undefined, dst2:b~1, src2:Undefined, dst3:reg5, src3:arg0
|
|
[ 20] JumpFalse condition:arg0, target:block2
|
|
|
|
block1:
|
|
[ 30] Mov2 dst1:reg7, src1:arg0, dst2:reg8, src2:arg1
|
|
[ 48] Call dst:reg6, callee:reg7, this_value:Undefined, t, arguments:[reg8]
|
|
[ 70] Mov dst:reg7, src:Bool(false)
|
|
[ 80] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6
|
|
[ 98] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
|
|
[ b0] JumpIf condition:reg7, true_target:block3, false_target:block4
|
|
|
|
block2:
|
|
[ c0] End value:Undefined
|
|
|
|
block3:
|
|
[ c8] Mov dst:reg11, src:Undefined
|
|
[ d8] Jump target:block4
|
|
|
|
block4:
|
|
[ e0] Mov dst:a~0, src:reg11
|
|
[ f0] JumpFalse condition:reg7, target:block6
|
|
|
|
block5:
|
|
[ 100] Mov dst:reg11, src:Undefined
|
|
[ 110] Jump target:block7
|
|
|
|
block6:
|
|
[ 118] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
|
|
[ 130] JumpTrue condition:reg7, target:block5
|
|
|
|
block7:
|
|
[ 140] Mov dst:b~1, src:reg11
|
|
[ 150] JumpFalse condition:reg7, target:block9
|
|
|
|
block8:
|
|
[ 160] Mov dst:reg5, src:reg6
|
|
[ 170] Jump target:block2
|
|
|
|
block9:
|
|
[ 178] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
|
|
[ 190] Jump target:block8
|