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.
54 lines
1.6 KiB
Text
54 lines
1.6 KiB
Text
$298a584c for-in-object-property-iterator-next.js:8:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(2)
|
|
[2] = String("two")
|
|
[3] = String("foo")
|
|
[4] = Int32(7)
|
|
[5] = String("seven")
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `collect`
|
|
[ 18] NewObject dst:reg7
|
|
[ 28] ToPrimitiveWithStringHint dst:Int32(2), value:Int32(2)
|
|
[ 38] PutByValue base:reg7, property:Int32(2), src:String("two"), kind:Own
|
|
[ 50] PutById base:reg7, `foo`, src:String("foo"), kind:Own
|
|
[ 78] ToPrimitiveWithStringHint dst:Int32(7), value:Int32(7)
|
|
[ 88] PutByValue base:reg7, property:Int32(7), src:String("seven"), kind:Own
|
|
[ a0] Call dst:reg5, callee:reg6, this_value:Undefined, collect, arguments:[reg7]
|
|
[ c8] End value:reg5
|
|
|
|
|
|
collect$a74ca55b for-in-object-property-iterator-next.js:2:18
|
|
Registers: 12
|
|
Blocks: 6
|
|
Locals: key~0, keys~1
|
|
|
|
block0:
|
|
[ 0] NewArray dst:keys~1
|
|
[ 10] JumpNullish condition:arg0, true_target:block3, false_target:block4
|
|
|
|
block1:
|
|
[ 20] Return value:keys~1
|
|
|
|
block2:
|
|
[ 28] ObjectPropertyIteratorNext dst_value:reg6, dst_done:reg7, iterator_object:reg5
|
|
[ 38] JumpIf condition:reg7, true_target:block1, false_target:block5
|
|
|
|
block3:
|
|
[ 48] Return value:keys~1
|
|
|
|
block4:
|
|
[ 50] GetObjectPropertyIterator dst_iterator:reg5, object:arg0
|
|
[ 68] Jump target:block2
|
|
|
|
block5:
|
|
[ 70] Mov dst:key~0, src:reg6
|
|
[ 80] GetById dst:reg9, base:keys~1, `push` (keys.push)
|
|
[ a0] Mov dst:reg10, src:keys~1
|
|
[ b0] ThrowIfTDZ src:key~0
|
|
[ b8] Mov dst:reg11, src:key~0
|
|
[ c8] Call dst:reg8, callee:reg9, this_value:reg10, keys.push, arguments:[reg11]
|
|
[ f0] Jump target:block2
|