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.
22 lines
502 B
Text
22 lines
502 B
Text
$acfb7718 bitwise-numeric-preconvert.js:4:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `test`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, test, arguments:[Int32(1)]
|
|
[ 40] End value:reg5
|
|
|
|
|
|
test$e718c164 bitwise-numeric-preconvert.js:2:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(-2147483648)
|
|
|
|
block0:
|
|
[ 0] RightShift dst:reg5, lhs:Int32(-2147483648), rhs:arg0
|
|
[ 10] Return value:reg5
|