There are multiple ways of doing it, the most conservative of which would
just
use dependencies and deoptimization when the slot is mutated.
We do the same thing for global variables already. They are assumed to be
constant, and their values are inlined as long as they stay constant. Upon
inlining you add a dependency to the global variable that will deoptimize
the
code when someone mutates the global variable.
We still haven't decided what the best approach is for context slots, but at
least something like that should work.
If you want to continue working on this, I suggest you go ahead and do the
other
work packages that I suggested, and presume that we'll have some form of
constant context slot tracking at some point.
https://codereview.chromium.org/327173002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.