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

chore(debugger): Inject abstract foreign call executor to debugger #3550

Conversation

mverzilli
Copy link
Contributor

@mverzilli mverzilli commented Nov 23, 2023

Description

Small refactor to allow the debugger to work with different specific foreign call executor implementations.

Problem

Part of #3015.

We're working on a WASM version of the debugger and this change is a pre-requisite to have the debugger work with oracles defined in TypeScript (which in turn will eventually let the ACIR simulator run circuits through the debugger).

Summary

Modifies DebugContext so that it is constructed with an abstract foreign call executor. Removes its direct dependency to DefaultForeignCallExecutor, leaving the choice of implementation to the module user.

Documentation

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@mverzilli mverzilli changed the title Inject abstract foreign call executor to debugger chore(debugger): Inject abstract foreign call executor to debugger Nov 23, 2023
@TomAFrench TomAFrench added this pull request to the merge queue Nov 24, 2023
Merged via the queue into noir-lang:master with commit 2f3fd75 Nov 24, 2023
33 checks passed
TomAFrench added a commit that referenced this pull request Nov 27, 2023
* master:
  feat: codegen typed interfaces for functions in `noir_codegen` (#3533)
  chore: add dependency on noir_js from docs package (#3559)
  chore: Docs 0.19.3 (#3545)
  chore(debugger): Inject abstract foreign call executor to debugger (#3550)
  chore: nargo fmt (#3549)
TomAFrench added a commit that referenced this pull request Nov 27, 2023
* master:
  feat: codegen typed interfaces for functions in `noir_codegen` (#3533)
  chore: add dependency on noir_js from docs package (#3559)
  chore: Docs 0.19.3 (#3545)
  chore(debugger): Inject abstract foreign call executor to debugger (#3550)
  chore: nargo fmt (#3549)
TomAFrench added a commit that referenced this pull request Nov 27, 2023
* master: (39 commits)
  chore: Rename error2 variable (#3584)
  chore: nargo fmt (#3587)
  feat: codegen typed interfaces for functions in `noir_codegen` (#3533)
  chore: add dependency on noir_js from docs package (#3559)
  chore: Docs 0.19.3 (#3545)
  chore(debugger): Inject abstract foreign call executor to debugger (#3550)
  chore: nargo fmt (#3549)
  fix: Compiler version error message (#3558)
  chore(docs): Update link to docs' GitHub (#3555)
  chore(fmt): refactor the way we handle shapes in the formatter (#3546)
  feat: add --check option to nargo fmt for dry-run formatting verification (#3530)
  chore: Update ACIR artifacts (#3528)
  chore: Release Noir(0.19.3) (#3514)
  chore: Updates bb dependency to 0.15.1 (#3536)
  fix(debugger): Step through foreign calls and breakpoints inside Brillig blocks (#3511)
  chore: Add build profiles that optimize for size (#3534)
  chore: clippy fixes (#3529)
  chore: remove early return from build.rs (#3531)
  feat: enable the `fmt` command in the help menu (#3328)
  chore: Remove panic on arm64 linux builds for bb binary at compile time (#3527)
  ...
TomAFrench added a commit that referenced this pull request Nov 27, 2023
* master: (56 commits)
  chore: Remove concept of storage slot from the compiler (#3582)
  chore: Update ACIR artifacts (#3591)
  feat: export `CompiledCircuit` from codegened TS (#3589)
  fix: use 128 bits for constant bit shift (#3586)
  fix: Somewhat reduce mem2reg memory usage (#3572)
  fix: Remove quotes from println output (#3574)
  chore: Rename error2 variable (#3584)
  chore: nargo fmt (#3587)
  feat: codegen typed interfaces for functions in `noir_codegen` (#3533)
  chore: add dependency on noir_js from docs package (#3559)
  chore: Docs 0.19.3 (#3545)
  chore(debugger): Inject abstract foreign call executor to debugger (#3550)
  chore: nargo fmt (#3549)
  fix: Compiler version error message (#3558)
  chore(docs): Update link to docs' GitHub (#3555)
  chore(fmt): refactor the way we handle shapes in the formatter (#3546)
  feat: add --check option to nargo fmt for dry-run formatting verification (#3530)
  chore: Update ACIR artifacts (#3528)
  chore: Release Noir(0.19.3) (#3514)
  chore: Updates bb dependency to 0.15.1 (#3536)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants