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.
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
$32b2807a super-constructor-call.js:1:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:false
|
|
[ 28] SetLexicalEnvironment environment:reg4
|
|
[ 30] NewClass dst:reg6, class_environment:reg5, class_blueprint_index:0
|
|
[ 50] InitializeLexicalBinding `Base`, src:reg6
|
|
[ 68] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0
|
|
[ 78] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:false
|
|
[ 88] GetGlobal dst:reg5, `Base`
|
|
[ a0] SetLexicalEnvironment environment:reg4
|
|
[ a8] NewClass dst:reg7, super_class:reg5, class_environment:reg6, class_blueprint_index:1
|
|
[ c8] InitializeLexicalBinding `Derived`, src:reg7
|
|
[ e0] GetGlobal dst:reg6, `Derived`
|
|
[ f8] CallConstruct dst:reg7, callee:reg6, Derived, arguments:[Int32(1)]
|
|
[ 118] End value:reg7
|
|
|
|
|
|
Derived$eee8d5da super-constructor-call.js:4:14
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg6, src:arg0
|
|
[ 10] NewArray dst:reg5, elements:[reg6]
|
|
[ 28] SuperCallWithArgumentArray dst:reg6, arguments:reg5, is_synthetic:false
|
|
[ 38] End value:Undefined
|
|
|
|
|
|
Base$a461b108
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] End value:Undefined
|