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.
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
$cd444473 parameter-createvariable-order.js:7:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
[2] = Int32(2)
|
|
[3] = Int32(3)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `f`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, f, arguments:[Int32(1), Int32(2), Int32(3)]
|
|
[ 48] End value:reg5
|
|
|
|
|
|
f$8982c134 parameter-createvariable-order.js:2:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
Locals: inner~0
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 10] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 20] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 30] InitializeLexicalBinding `a`, src:arg0
|
|
[ 48] InitializeLexicalBinding `b`, src:arg1
|
|
[ 60] InitializeLexicalBinding `c`, src:arg2
|
|
[ 78] Mov dst:inner~0, src:Undefined
|
|
[ 88] NewFunction dst:reg5, shared_function_data_index:0 (inner)
|
|
[ a0] Mov dst:inner~0, src:reg5
|
|
[ b0] Call dst:reg5, callee:inner~0, this_value:Undefined, inner
|
|
[ d0] Return value:reg5
|
|
|
|
|
|
inner$9e8c0b51 parameter-createvariable-order.js:3:9
|
|
Registers: 8
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] GetBinding dst:reg5, `a`
|
|
[ 18] GetBinding dst:reg6, `b`
|
|
[ 30] Add dst:reg7, lhs:reg5, rhs:reg6
|
|
[ 40] GetBinding dst:reg5, `c`
|
|
[ 58] Add dst:reg6, lhs:reg7, rhs:reg5
|
|
[ 68] Return value:reg6
|