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
695 B
Text
31 lines
695 B
Text
$3b8b4350 argument-variables.js:12:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
[2] = Int32(2)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `identity`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, identity, arguments:[Int32(1)]
|
|
[ 40] GetGlobal dst:reg7, `swap`
|
|
[ 58] Call dst:reg6, callee:reg7, this_value:Undefined, swap, arguments:[Int32(1), Int32(2)]
|
|
[ 80] End value:reg6
|
|
|
|
|
|
identity$753f961b argument-variables.js:5:5
|
|
Registers: 5
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] Return value:arg0
|
|
|
|
|
|
swap$556fb42c argument-variables.js:9:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] Add dst:reg5, lhs:arg1, rhs:arg0
|
|
[ 10] Return value:reg5
|