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.
37 lines
1 KiB
Text
37 lines
1 KiB
Text
$3e4f3460 computed-member-access.js:12:1
|
|
Registers: 9
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(0)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `computed_read`
|
|
[ 18] NewPrimitiveArray dst:reg7, elements:[1]
|
|
[ 30] Call dst:reg5, callee:reg6, this_value:Undefined, computed_read, arguments:[reg7]
|
|
[ 58] GetGlobal dst:reg7, `computed_read_expression`
|
|
[ 70] NewPrimitiveArray dst:reg8, elements:[1]
|
|
[ 88] Call dst:reg6, callee:reg7, this_value:Undefined, computed_read_expression, arguments:[reg8, Int32(0)]
|
|
[ b0] End value:reg6
|
|
|
|
|
|
computed_read$f0ef6ac1 computed-member-access.js:5:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(0)
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] GetByValue dst:reg6, base:reg5, property:Int32(0) (a[Int32(0)])
|
|
[ 28] Return value:reg6
|
|
|
|
|
|
computed_read_expression$c18fd380 computed-member-access.js:9:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] GetByValue dst:reg6, base:reg5, property:arg1 (a[arg1])
|
|
[ 28] Return value:reg6
|