Repository navigation
refactor(sv): pass constant functions explicitly instead of installing them - #2674
Conversation
|
This pull request is part of a Mergify stack:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dab7b9c2c8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
89c31dc to
9e38238
Compare
dab7b9c to
b0e50cf
Compare
Revision history
|
|
Queued — the merge queue status continues in this comment ↓. |
b0e50cf to
be2cdc1
Compare
be2cdc1 to
6383870
Compare
…g them The constant functions visible in a scope were installed into the shared analysis state behind a RefCell, swapped by guards and tracked by a revision, and the evaluator kept its call depth and the fuel and two-state mode of runtime evaluation in Cells of the same state. The functions are now a value of the analysis context, which entering a module, a generate block or an interface scope derives with the functions it sees, and the constant evaluator takes them as an argument. The depth, fuel and mode are a budget each evaluation owns and lends to its frames, and a call's frame sees the constants of its caller's scope rather than the caller's frame. Code that evaluates constants of an analyzed module takes a context with the module's functions. Change-Id: Icbacebc1ba8721afe2ea0352b393fe06ff625091
6383870 to
aa2e4aa
Compare
✅ Merged into
|
The constant functions visible in a scope were installed into the shared
analysis state behind a RefCell, swapped by guards and tracked by a
revision, and the evaluator kept its call depth and the fuel and two-state
mode of runtime evaluation in Cells of the same state. The functions are
now a value of the analysis context, which entering a module, a generate
block or an interface scope derives with the functions it sees, and the
constant evaluator takes them as an argument. The depth, fuel and mode are
a budget each evaluation owns and lends to its frames, and a call's frame
sees the constants of its caller's scope rather than the caller's frame.
Code that evaluates constants of an analyzed module takes a context with
the module's functions.