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.
45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
$3122836b for-in-lexical-scope.js:1:12
|
|
Registers: 12
|
|
Blocks: 6
|
|
Constants:
|
|
[0] = Int32(0)
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 28] NewObject dst:reg6
|
|
[ 38] InitObjectLiteralProperty object:reg6, `i`, src:Int32(0), shape_cache_index:0, property_slot:0
|
|
[ 50] CacheObjectShape object:reg6
|
|
[ 60] SetLexicalEnvironment environment:reg4
|
|
[ 68] JumpNullish condition:reg6, true_target:block3, false_target:block4
|
|
|
|
block1:
|
|
[ 78] End value:reg6
|
|
|
|
block2:
|
|
[ 80] ObjectPropertyIteratorNext dst_value:reg7, dst_done:reg8, iterator_object:reg5
|
|
[ 90] JumpIf condition:reg8, true_target:block1, false_target:block5
|
|
|
|
block3:
|
|
[ a0] End value:reg6
|
|
|
|
block4:
|
|
[ a8] GetObjectPropertyIterator dst_iterator:reg5, object:reg6
|
|
[ c0] Mov dst:reg6, src:Undefined
|
|
[ d0] Jump target:block2
|
|
|
|
block5:
|
|
[ d8] CreateLexicalEnvironment dst:reg9, parent:reg4, capacity:0
|
|
[ e8] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
|
|
[ f8] InitializeLexicalBinding `x`, src:reg7
|
|
[ 110] CreateLexicalEnvironment dst:reg10, parent:reg9, capacity:0
|
|
[ 120] CreateMutableBinding environment:reg10, `probeDecl`, can_be_deleted:false
|
|
[ 130] NewFunction dst:reg11, shared_function_data_index:0
|
|
[ 148] InitializeLexicalBinding `probeDecl`, src:reg11
|
|
[ 160] GetBinding dst:reg11, `probeDecl`
|
|
[ 178] SetVariableBinding `probeDecl`, src:reg11
|
|
[ 190] SetLexicalEnvironment environment:reg9
|
|
[ 198] SetLexicalEnvironment environment:reg4
|
|
[ 1a0] Jump target:block2
|