Evaluate doesn't correctly handle assignments to locals #55423
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
vm-debugger
vm-service
The VM Service Protocol, both the specification and its implementation
Pulling a more specific problem out of #23446,
This should print 2, but currently will print 1. The current compilation strategy for evaluate is roughly to create a new closure function
(var x) => x++
, which fails to write back to frame we're evaluating in. Squeak Smalltalk and Newspeak instead do something like(var context) => context[0] = context[0] + 1)
, wherecontext
is the reified activation record andx
was allocated to slot 0, which makes the evaluation have the expected effect.The text was updated successfully, but these errors were encountered: