ladybird/Tests/LibJS/Bytecode/expected/eval-same-function.txt
Andreas Kling 1ce4242b4b LibJS: Store bytecode cache indexes instead of pointers
Store compact cache indexes in bytecode instructions instead of raw
pointers to the executable cache vectors. This keeps the instruction
stream independent from heap addresses and removes pointer fixups when
materializing cached bytecode.

Resolve the mutable cache pointers at execution time from the current
Executable. Bytecode test expectations are updated for the smaller cache
operands and resulting instruction offsets.
2026-05-18 20:35:14 +02:00

39 lines
958 B
Text

$49b95e06 eval-same-function.js:10:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `foo`
[ 10] Call dst:reg5, callee:reg6, this_value:Undefined, foo
[ 30] End value:reg5
foo$c25bdd1c eval-same-function.js:6:9
Registers: 8
Blocks: 1
Constants:
[0] = String("var x = 1")
[1] = Undefined
[2] = Int32(42)
block0:
[ 0] CreateArguments is_immutable:false
[ 10] GetCalleeAndThisFromEnvironment callee:reg6, this_value:reg7, `eval`
[ 28] CallDirectEval dst:reg5, callee:reg6, this_value:reg7, eval, arguments:[String("var x = 1")]
[ 50] GetBinding dst:reg6, `Number`
[ 68] CallConstruct dst:reg5, callee:reg6, Number, arguments:[Int32(42)]
[ 88] Return value:reg5
eval$6295ffeb line 1, column 1
Registers: 5
Blocks: 1
Constants:
[0] = Int32(1)
[1] = Undefined
block0:
[ 0] SetLexicalBinding `x`, src:Int32(1)
[ 18] End value:Undefined