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.
76 lines
2.2 KiB
Text
76 lines
2.2 KiB
Text
$ccb44156 class-literal-fields.js:12:1
|
|
Registers: 15
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `test`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, test
|
|
[ 38] InitializeLexicalBinding `a`, src:reg5
|
|
[ 50] GetGlobal dst:reg6, `console`
|
|
[ 68] GetById dst:reg7, base:reg6, `log` (console.log)
|
|
[ 88] GetGlobal dst:reg8, `a`
|
|
[ a0] GetById dst:reg9, base:reg8, `x` (a.x)
|
|
[ c0] GetGlobal dst:reg8, `a`
|
|
[ d8] GetById dst:reg10, base:reg8, `y` (a.y)
|
|
[ f8] GetGlobal dst:reg8, `a`
|
|
[ 110] GetById dst:reg11, base:reg8, `z` (a.z)
|
|
[ 130] GetGlobal dst:reg8, `a`
|
|
[ 148] GetById dst:reg12, base:reg8, `w` (a.w)
|
|
[ 168] GetGlobal dst:reg8, `a`
|
|
[ 180] GetById dst:reg13, base:reg8, `s` (a.s)
|
|
[ 1a0] GetGlobal dst:reg8, `a`
|
|
[ 1b8] GetById dst:reg14, base:reg8, `computed` (a.computed)
|
|
[ 1d8] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg9, reg10, reg11, reg12, reg13, reg14]
|
|
[ 210] End value:reg5
|
|
|
|
|
|
test$7bd6515c class-literal-fields.js:2:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Locals: A~0
|
|
Constants:
|
|
[0] = String("x")
|
|
[1] = String("y")
|
|
[2] = String("z")
|
|
[3] = String("w")
|
|
[4] = String("s")
|
|
[5] = String("computed")
|
|
[6] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:false
|
|
[ 28] SetLexicalEnvironment environment:reg4
|
|
[ 30] NewClass dst:reg6, class_environment:reg5, class_blueprint_index:0, element_keys:[element_keys:String("x"), element_keys:String("y"), element_keys:String("z"), element_keys:String("w"), element_keys:String("s"), element_keys:String("computed")]
|
|
[ 68] Mov dst:A~0, src:reg6
|
|
[ 78] ThrowIfTDZ src:A~0
|
|
[ 80] CallConstruct dst:reg6, callee:A~0, A
|
|
[ 98] Return value:reg6
|
|
|
|
|
|
A$ef0589ec
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] End value:Undefined
|
|
|
|
|
|
field$d016a301 class-literal-fields.js:8:22
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
[1] = Int32(2)
|
|
[2] = Int32(3)
|
|
|
|
block0:
|
|
[ 0] Return value:Int32(3)
|
|
|
|
|
|
42 -1 true null "hi" 3
|