-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* correctly spell [un]signed * fix last_index comment We maybe also want to rename the method. * remove unused method * re-order statments to match call and call_indirect * fix comment stating `store` instead of `load` * re-instate panic for CompiledFuncEntity::new Also added comment to state why this check exists. * remove invalid comment about panics This function might return a BranchOffset of 0 for certain inputs. * get_compiled: conditionally panic if debug_assertions are enabled
- Loading branch information
Showing
9 changed files
with
55 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ mod limits; | |
mod resumable; | ||
mod traits; | ||
mod translator; | ||
mod utils; | ||
|
||
#[cfg(test)] | ||
mod tests; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// Expands to | ||
/// | ||
/// - [`core::unreachable`] if `debug_assertions` are enabled. | ||
/// - [`core::hint::unreachable_unchecked`], otherwise. | ||
macro_rules! unreachable_unchecked { | ||
($($arg:tt)*) => {{ | ||
match cfg!(debug_assertions) { | ||
true => ::core::unreachable!( $($arg)* ), | ||
false => ::core::hint::unreachable_unchecked(), | ||
} | ||
}}; | ||
} | ||
pub(crate) use unreachable_unchecked; |