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.
56 lines
1.4 KiB
Text
56 lines
1.4 KiB
Text
$241c3dcd class-environment.js:9:1
|
|
Registers: 10
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `console`
|
|
[ 18] GetById dst:reg7, base:reg6, `log` (console.log)
|
|
[ 38] GetGlobal dst:reg9, `classWithName`
|
|
[ 50] Call dst:reg8, callee:reg9, this_value:Undefined, classWithName
|
|
[ 70] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
|
|
[ 98] End value:reg5
|
|
|
|
|
|
classWithName$155d62f1 class-environment.js:2:13
|
|
Registers: 8
|
|
Blocks: 1
|
|
Locals: C~0
|
|
Constants:
|
|
[0] = String("method")
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:false
|
|
[ 28] SetLexicalEnvironment environment:reg4
|
|
[ 30] NewClass dst:C~0, class_environment:reg5, class_blueprint_index:0, element_keys:[element_keys:String("method")]
|
|
[ 58] CallConstruct dst:reg6, callee:C~0, C
|
|
[ 70] GetById dst:reg7, base:reg6, `method`
|
|
[ 90] Call dst:reg5, callee:reg7, this_value:reg6, <object>.method
|
|
[ b0] StrictlyEquals dst:reg7, lhs:reg5, rhs:C~0
|
|
[ c0] Return value:reg7
|
|
|
|
|
|
Foo$534d924b
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] End value:Undefined
|
|
|
|
|
|
method$f198ceab class-environment.js:4:13
|
|
Registers: 6
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] GetBinding dst:reg5, `Foo`
|
|
[ 18] Return value:reg5
|
|
|
|
|
|
true
|