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.
17 lines
601 B
Text
17 lines
601 B
Text
$f8830e6d expression-identifier-number-format.js:1:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Double(1.1e-32)
|
|
[1] = Int32(42)
|
|
|
|
block0:
|
|
[ 0] NewObject dst:reg5
|
|
[ 10] SetGlobal `x`, src:reg5
|
|
[ 28] GetGlobal dst:reg5, `x`
|
|
[ 40] NewObject dst:reg6
|
|
[ 50] PutByValue base:reg5, property:Double(1.1e-32), src:reg6, kind:Normal (x[Double(1.1e-32)])
|
|
[ 68] GetGlobal dst:reg5, `x`
|
|
[ 80] GetByValue dst:reg7, base:reg5, property:Double(1.1e-32) (x[Double(1.1e-32)])
|
|
[ 98] PutById base:reg7, `foo`, src:Int32(42), kind:Normal (x[1.1e-32].foo)
|
|
[ c0] End value:Int32(42)
|