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.
93 lines
2.5 KiB
Text
93 lines
2.5 KiB
Text
$06b12923 nested-function-decl-source-order.js:15:1
|
|
Registers: 11
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = String(",")
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `console`
|
|
[ 18] GetById dst:reg7, base:reg6, `log` (console.log)
|
|
[ 38] GetGlobal dst:reg10, `outer`
|
|
[ 50] Call dst:reg9, callee:reg10, this_value:Undefined, outer
|
|
[ 70] GetById dst:reg10, base:reg9, `join`
|
|
[ 90] Call dst:reg8, callee:reg10, this_value:reg9, <object>.join, arguments:[String(",")]
|
|
[ b8] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
|
|
[ e0] End value:reg5
|
|
|
|
|
|
outer$f608465a nested-function-decl-source-order.js:12:5
|
|
Registers: 11
|
|
Blocks: 1
|
|
Locals: alpha~0, beta~1, dup~2, gamma~3, delta~4
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] Mov3 dst1:alpha~0, src1:Undefined, dst2:beta~1, src2:Undefined, dst3:dup~2, src3:Undefined
|
|
[ 20] Mov2 dst1:gamma~3, src1:Undefined, dst2:delta~4, src2:Undefined
|
|
[ 38] NewFunction dst:alpha~0, shared_function_data_index:0
|
|
[ 50] NewFunction dst:beta~1, shared_function_data_index:1
|
|
[ 68] NewFunction dst:gamma~3, shared_function_data_index:2
|
|
[ 80] NewFunction dst:dup~2, shared_function_data_index:3
|
|
[ 98] NewFunction dst:delta~4, shared_function_data_index:4
|
|
[ b0] Call dst:reg5, callee:alpha~0, this_value:Undefined, alpha
|
|
[ d0] Call dst:reg6, callee:beta~1, this_value:Undefined, beta
|
|
[ f0] Call dst:reg7, callee:gamma~3, this_value:Undefined, gamma
|
|
[ 110] Call dst:reg8, callee:delta~4, this_value:Undefined, delta
|
|
[ 130] Call dst:reg9, callee:dup~2, this_value:Undefined, dup
|
|
[ 150] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
|
|
[ 178] Return value:reg10
|
|
|
|
|
|
alpha$ddf1e99f nested-function-decl-source-order.js:6:24
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] Return value:Int32(1)
|
|
|
|
|
|
beta$cbe393ff nested-function-decl-source-order.js:7:23
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(2)
|
|
|
|
block0:
|
|
[ 0] Return value:Int32(2)
|
|
|
|
|
|
gamma$4c5374eb nested-function-decl-source-order.js:9:24
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(3)
|
|
|
|
block0:
|
|
[ 0] Return value:Int32(3)
|
|
|
|
|
|
delta$fd075126 nested-function-decl-source-order.js:11:24
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(4)
|
|
|
|
block0:
|
|
[ 0] Return value:Int32(4)
|
|
|
|
|
|
dup$5f4e2278 nested-function-decl-source-order.js:10:22
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("second")
|
|
|
|
block0:
|
|
[ 0] Return value:String("second")
|
|
|
|
|
|
"1,2,3,4,second"
|