chore(core/vm): delete assembler/disassembler #31211#2310
chore(core/vm): delete assembler/disassembler #31211#2310gzliudan wants to merge 2 commits intoXinFinOrg:dev-upgradefrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Removes the EVM assembler/disassembler components and updates the evm CLI and state-test utilities accordingly, aligning tooling around direct bytecode execution and enhanced state-test running/benchmarking.
Changes:
- Deleted
core/asm(assembler/compiler + instruction iterator) and removedevmCLIcompile/disasmcommands that depended on it. - Extended state test execution to optionally return gas used (
StateTest.RunWithGas) and updated theevm statetestrunner to use it (including filtering/bench support). - Refactored
evmCLI flags and reporting: unified tracing flag handling, added a reporter and EEST metadata parsing helper.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/state_test_util.go | Adds RunWithGas to return gas usage alongside post-state; Run delegates to it. |
| core/vm/runtime/runtime_test.go | Removes core/asm usage from a skipped documentation helper. |
| core/asm/lexer.go | Deleted: assembler lexer implementation. |
| core/asm/lex_test.go | Deleted: lexer tests. |
| core/asm/compiler.go | Deleted: assembler compiler implementation. |
| core/asm/asm_test.go | Deleted: instruction iterator tests. |
| core/asm/asm.go | Deleted: instruction iterator + disassembly helpers. |
| cmd/evm/staterunner.go | Adds fork/index filtering, stdin batch mode, benchmarking integration, and uses RunWithGas. |
| cmd/evm/runner.go | Removes EASM compilation path; adds benchmarking/stats collection and prestate/trie setup changes. |
| cmd/evm/main.go | Removes compile/disasm commands, refactors flags (trace-focused), adds helpers for tracing, file collection, and state dumping. |
| cmd/evm/reporter.go | New: human/JSON reporting for state-test results. |
| cmd/evm/eest.go | New: parsing helper for EEST-encoded test metadata in names. |
| cmd/evm/internal/compiler/compiler.go | Deleted: wrapper around core/asm compiler. |
| cmd/evm/disasm.go | Deleted: evm disasm command. |
| cmd/evm/compiler.go | Deleted: evm compile command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8f22086 to
a98db98
Compare
a98db98 to
0654136
Compare
Proposed changes
Ref: ethereum#31211
Types of changes
What types of changes does your code introduce to XDC network?
Put an
✅in the boxes that applyImpacted Components
Which parts of the codebase does this PR touch?
Put an
✅in the boxes that applyChecklist
Put an
✅in the boxes once you have confirmed below actions (or provide reasons on not doing so) that