Skip to content

fix(evm): add JIT MIR threshold for libdtvm#347

Merged
zoowii merged 5 commits intoDTVMStack:mainfrom
starwarfan:jit-len-limit
Feb 12, 2026
Merged

fix(evm): add JIT MIR threshold for libdtvm#347
zoowii merged 5 commits intoDTVMStack:mainfrom
starwarfan:jit-len-limit

Conversation

@starwarfan
Copy link
Contributor

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

  • N
  • Y

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains CI/CD configuration changes
  • Contains documentation changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

6. Release note

None

if (VM->Config.Mode == RunMode::MultipassMode &&
CodeSize > MAX_JIT_BYTECODE_SIZE) {
(CodeSize > MAX_JIT_BYTECODE_SIZE ||
estimateMirInstructionCount(Code, CodeSize) > MAX_JIT_MIR_ESTIMATE)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only when FALLBACK_MACRO enabled

@zoowii zoowii merged commit 8a5c394 into DTVMStack:main Feb 12, 2026
11 checks passed
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

Comments