Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: per module sidetables #118

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

cemonem
Copy link

@cemonem cemonem commented Jan 20, 2025

Pull Request Overview

per module sidetables instead of per function, sidetables are stored within the Store object.

Formatting

  • Ran cargo fmt
  • Ran cargo check
  • Ran cargo build
  • Ran cargo doc
  • Ran nix fmt

Github Issue

This pull request closes #115

@cemonem
Copy link
Author

cemonem commented Jan 20, 2025

This will probably have to be rewritten when the linker is merged in. what "current" sidetable is will still need to be held in the call stack, as we need to remember which module the caller was in, and if we call or return from a different module, we'll need to update the current sidetable.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/execution/interpreter_loop.rs 92.20% <100.00%> (-0.04%) ⬇️
src/execution/mod.rs 91.95% <100.00%> (+0.01%) ⬆️
src/execution/store.rs 85.41% <ø> (ø)
src/validation/code.rs 63.85% <100.00%> (+0.04%) ⬆️
src/validation/mod.rs 81.43% <100.00%> (+0.22%) ⬆️

@george-cosma
Copy link
Collaborator

Is there a specific reason why we want to do this? Genuinely curious

Signed-off-by: Cem Onem <[email protected]>
@cemonem cemonem force-pushed the dev/cemonem-per-module-sidetable branch from ba3028f to 6076956 Compare January 28, 2025 13:46
@cemonem cemonem marked this pull request as draft January 28, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sidetables should be generated per module, not per function
2 participants