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.
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
$bced3bd8 assign-to-let-variable-tdz.js:12:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = String("hello")
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `f`
|
|
[ 18] NewObject dst:reg7
|
|
[ 28] InitObjectLiteralProperty object:reg7, `location`, src:String("hello"), shape_cache_index:0, property_slot:0
|
|
[ 40] CacheObjectShape object:reg7
|
|
[ 50] Call dst:reg5, callee:reg6, this_value:Undefined, f, arguments:[reg7]
|
|
[ 78] End value:reg5
|
|
|
|
|
|
f$7105e5e6 assign-to-let-variable-tdz.js:7:5
|
|
Registers: 10
|
|
Blocks: 3
|
|
Locals: a~0
|
|
Constants:
|
|
[0] = String("string")
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] ThrowIfNullish src:arg0
|
|
[ 8] GetById dst:reg5, base:arg0, `location`
|
|
[ 28] Mov dst:a~0, src:reg5
|
|
[ 38] ThrowIfTDZ src:a~0
|
|
[ 40] Typeof dst:reg5, src:a~0
|
|
[ 50] LooselyEquals dst:reg6, lhs:String("string"), rhs:reg5
|
|
[ 60] Mov dst:reg5, src:reg6
|
|
[ 70] JumpFalse condition:reg6, target:block2
|
|
|
|
block1:
|
|
[ 80] GetGlobal dst:reg8, `g`
|
|
[ 98] ThrowIfTDZ src:a~0
|
|
[ a0] Mov dst:reg9, src:a~0
|
|
[ b0] Call dst:reg7, callee:reg8, this_value:Undefined, g, arguments:[reg9]
|
|
[ d8] ThrowIfTDZ src:a~0
|
|
[ e0] Mov2 dst1:a~0, src1:reg7, dst2:reg5, src2:reg7
|
|
|
|
block2:
|
|
[ f8] ThrowIfTDZ src:a~0
|
|
[ 100] Return value:a~0
|
|
|
|
|
|
g$f452072f assign-to-let-variable-tdz.js:4:17
|
|
Registers: 5
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] Return value:arg0
|