-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor - Subroutine for emit_validate_and_profile_instruction_count()
#17
base: main
Are you sure you want to change the base?
Refactor - Subroutine for emit_validate_and_profile_instruction_count()
#17
Conversation
5e27777
to
fbe00a0
Compare
src/jit.rs
Outdated
const ANCHOR_COUNT: usize = 34; // Update me when adding or removing anchors | ||
const ANCHOR_VALIDATE_AND_PROFILE_INSTRUCTION_COUNT: usize = 21; | ||
const ANCHOR_TRANSLATE_MEMORY_ADDRESS: usize = 22; | ||
const ANCHOR_COUNT: usize = 35; // Update me when adding or removing anchors |
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.
I realized I didn't increment the Anchor here: https://github.com/solana-labs/rbpf/pull/629/files#diff-7d39efd566d08b201d1e747f11b3909be0d39fd3d4c89cfd28e0b21bab3ec27a
Should this be 36?
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.
Actually, we had a gap in unused indices. I shifted them back down.
fbe00a0
to
d22086f
Compare
d22086f
to
f5868cb
Compare
f5868cb
to
9cb50a4
Compare
Turns 30 bytes:
Into 15 bytes: