-
Notifications
You must be signed in to change notification settings - Fork 28
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(cairo_native): allow disabling native compilation in the contract class manager #2703
Conversation
Artifacts upload workflows: |
b6bffd0
to
49520e2
Compare
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @noaov1)
crates/blockifier/src/state/contract_class_manager.rs
line 103 at r1 (raw file):
pub fn set_casm(&self, class_hash: ClassHash, compiled_class: RunnableCompiledClass) { self.contract_caches.set_casm(class_hash, compiled_class); }
Why do we need the set casm function?
Code quote:
/// Sets the casm compiled class for the given class hash in the cache.
pub fn set_casm(&self, class_hash: ClassHash, compiled_class: RunnableCompiledClass) {
self.contract_caches.set_casm(class_hash, compiled_class);
}
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @noaov1)
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)
crates/blockifier/src/state/contract_class_manager.rs
line 103 at r1 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
Why do we need the set casm function?
When just getting the casm and not using sierra to native compilation (e.g., when using cairo 0, or when native compilation is disabled).
We need to be able to use the casm cache directly as a normal cache - setting the value obtained from the state when it couldn't be found in cache.
No description provided.