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.
98 lines
2.5 KiB
Text
98 lines
2.5 KiB
Text
$752dc5b7 delete-super-property.js:1:1
|
|
Registers: 11
|
|
Blocks: 7
|
|
Locals: e~0, e~1
|
|
Constants:
|
|
[0] = String("foo")
|
|
[1] = String("baz")
|
|
[2] = 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("foo"), element_keys:String("baz")]
|
|
[ 58] InitializeLexicalBinding `A`, src:reg6
|
|
[ 70] Jump target:block3
|
|
|
|
block1:
|
|
[ 78] Catch dst:reg6
|
|
[ 80] SetLexicalEnvironment environment:reg4
|
|
[ 88] Mov3 dst1:e~0, src1:reg6, dst2:reg5, src2:Undefined, dst3:reg7, src3:reg5
|
|
|
|
block2:
|
|
[ a8] Jump target:block6
|
|
|
|
block3:
|
|
[ b0] Mov dst:reg6, src:Undefined
|
|
[ c0] GetGlobal dst:reg9, `A`
|
|
[ d8] CallConstruct dst:reg8, callee:reg9, A
|
|
[ f0] GetById dst:reg9, base:reg8, `foo`
|
|
[ 110] Call dst:reg5, callee:reg9, this_value:reg8, <object>.foo
|
|
[ 130] Mov2 dst1:reg6, src1:reg5, dst2:reg5, src2:reg6
|
|
[ 148] Jump target:block2
|
|
|
|
block4:
|
|
[ 150] Catch dst:reg6
|
|
[ 158] SetLexicalEnvironment environment:reg4
|
|
[ 160] Mov3 dst1:e~1, src1:reg6, dst2:reg7, src2:Undefined, dst3:reg9, src3:reg7
|
|
|
|
block5:
|
|
[ 180] End value:reg7
|
|
|
|
block6:
|
|
[ 188] Mov dst:reg6, src:Undefined
|
|
[ 198] GetGlobal dst:reg10, `A`
|
|
[ 1b0] CallConstruct dst:reg8, callee:reg10, A
|
|
[ 1c8] GetById dst:reg10, base:reg8, `baz`
|
|
[ 1e8] Call dst:reg7, callee:reg10, this_value:reg8, <object>.baz
|
|
[ 208] Mov2 dst1:reg6, src1:reg7, dst2:reg7, src2:reg6
|
|
[ 220] End value:reg7
|
|
|
|
Exception handlers:
|
|
[ b0 .. 150] => handler block1
|
|
[ 188 .. 228] => handler block4
|
|
|
|
|
|
A$ef0589ec
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] End value:Undefined
|
|
|
|
|
|
foo$7707d509 delete-super-property.js:3:9
|
|
Registers: 7
|
|
Blocks: 2
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] ResolveThisBinding
|
|
[ 8] ResolveSuperBase dst:reg5
|
|
[ 10] NewReferenceError dst:reg6, Can't delete a property on 'super'
|
|
[ 20] Throw src:reg6
|
|
|
|
block1:
|
|
[ 28] End value:Undefined
|
|
|
|
|
|
baz$8acb3acb delete-super-property.js:6:9
|
|
Registers: 7
|
|
Blocks: 2
|
|
Constants:
|
|
[0] = String("bar")
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] ResolveThisBinding
|
|
[ 8] ResolveSuperBase dst:reg5
|
|
[ 10] NewReferenceError dst:reg6, Can't delete a property on 'super'
|
|
[ 20] Throw src:reg6
|
|
|
|
block1:
|
|
[ 28] End value:Undefined
|