-
Notifications
You must be signed in to change notification settings - Fork 711
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
Add LDC mode 2, which allows code from memory #611
Conversation
| other | _reserved_ | | ||
|
||
Panic if: | ||
|
||
- `$ssp + $rC` overflows or `> VM_MAX_RAM` | ||
- `$rA + 32` overflows or `> VM_MAX_RAM` | ||
- `imm <= 1` and `$rA + 32` overflows or `> VM_MAX_RAM` | ||
- `$ssp + $rC >= $hp` | ||
- `imm == 0` and `$rC > CONTRACT_MAX_SIZE` | ||
- `imm == 0` and contract with ID `MEM[$rA, 32]` is not in `tx.inputs` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hi light that we return an error if it is called in the context of predicates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already called out in the predicate section of #612, but we could do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Brandon Kite <[email protected]>
Closes #456 Requires #611 VM PR FuelLabs/fuel-vm#848 ### Before requesting review - [x] I have reviewed the code myself --------- Co-authored-by: Brandon Kite <[email protected]>
VM PR FuelLabs/fuel-vm#849
Before requesting review