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.
43 lines
1 KiB
Text
43 lines
1 KiB
Text
$d0083583 for-in-var-function-lhs-name.js:7:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `fn`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, fn
|
|
[ 38] End value:reg5
|
|
|
|
|
|
fn$4477295a for-in-var-function-lhs-name.js:4:19
|
|
Registers: 8
|
|
Blocks: 6
|
|
Locals: f~0
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] Mov dst:f~0, src:Undefined
|
|
[ 10] NewFunction dst:reg5, shared_function_data_index:0 (f)
|
|
[ 28] Mov dst:f~0, src:reg5
|
|
[ 38] NewObject dst:reg5
|
|
[ 48] JumpNullish condition:reg5, true_target:block3, false_target:block4
|
|
|
|
block1:
|
|
[ 58] End value:Undefined
|
|
|
|
block2:
|
|
[ 60] ObjectPropertyIteratorNext dst_value:reg5, dst_done:reg7, iterator_object:reg6
|
|
[ 70] JumpIf condition:reg7, true_target:block1, false_target:block5
|
|
|
|
block3:
|
|
[ 80] Jump target:block1
|
|
|
|
block4:
|
|
[ 88] GetObjectPropertyIterator dst_iterator:reg6, object:reg5
|
|
[ a0] Jump target:block2
|
|
|
|
block5:
|
|
[ a8] Mov dst:f~0, src:reg5
|
|
[ b8] Jump target:block2
|