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.
22 lines
804 B
Text
22 lines
804 B
Text
$fb46ff7d object-rest-computed-key.js:1:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("foo")
|
|
[1] = Int32(1)
|
|
[2] = Int32(2)
|
|
[3] = Undefined
|
|
|
|
block0:
|
|
[ 0] SetGlobal `a`, src:String("foo")
|
|
[ 18] NewObject dst:reg5
|
|
[ 28] InitObjectLiteralProperty object:reg5, `foo`, src:Int32(1), shape_cache_index:0, property_slot:0
|
|
[ 40] InitObjectLiteralProperty object:reg5, `bar`, src:Int32(2), shape_cache_index:0, property_slot:1
|
|
[ 58] CacheObjectShape object:reg5
|
|
[ 68] ThrowIfNullish src:reg5
|
|
[ 70] GetGlobal dst:reg7, `a`
|
|
[ 88] GetByValue dst:reg6, base:reg5, property:reg7
|
|
[ a0] SetGlobal `b`, src:reg6
|
|
[ b8] CopyObjectExcludingProperties dst:reg6, from_object:reg5, excluded_names:[reg7]
|
|
[ d8] SetGlobal `rest`, src:reg6
|
|
[ f0] End value:Undefined
|