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.
21 lines
831 B
Text
21 lines
831 B
Text
$ae8c96e2 block-function-declaration-order.js:1:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateMutableBinding environment:reg5, `f1`, can_be_deleted:false
|
|
[ 28] NewFunction dst:reg6, shared_function_data_index:0
|
|
[ 40] InitializeLexicalBinding `f1`, src:reg6
|
|
[ 58] CreateMutableBinding environment:reg5, `f2`, can_be_deleted:false
|
|
[ 68] NewFunction dst:reg6, shared_function_data_index:1
|
|
[ 80] InitializeLexicalBinding `f2`, src:reg6
|
|
[ 98] GetBinding dst:reg6, `f1`
|
|
[ b0] SetVariableBinding `f1`, src:reg6
|
|
[ c8] GetBinding dst:reg6, `f2`
|
|
[ e0] SetVariableBinding `f2`, src:reg6
|
|
[ f8] SetLexicalEnvironment environment:reg4
|
|
[ 100] End value:Undefined
|