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.
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
$a036f1fa var-binding-access.js:22:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `var_access`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, var_access
|
|
[ 38] GetGlobal dst:reg7, `let_access`
|
|
[ 50] Call dst:reg6, callee:reg7, this_value:Undefined, let_access
|
|
[ 70] End value:reg6
|
|
|
|
|
|
var_access$52e19afb var-binding-access.js:5:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 10] InitializeVariableBinding `x`, src:Undefined
|
|
[ 28] SetLexicalBinding `x`, src:Int32(1)
|
|
[ 40] NewFunction dst:reg5, shared_function_data_index:0
|
|
[ 58] GetInitializedBinding dst:reg5, `x`
|
|
[ 70] Return value:reg5
|
|
|
|
|
|
let_access$c5263a88 var-binding-access.js:14:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1
|
|
[ 18] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 28] InitializeLexicalBinding `x`, src:Int32(1)
|
|
[ 40] NewFunction dst:reg6, shared_function_data_index:0
|
|
[ 58] GetBinding dst:reg6, `x`
|
|
[ 70] Return value:reg6
|