ristretto_jit 0.33.0

JVM JIT Compiler
Documentation
use crate::Error::InternalError;
use crate::Result;

/// # References
///
/// - [JVMS ยง6.5.wide](https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-6.html#jvms-6.5.wide)
pub(crate) fn wide() -> Result<()> {
    // The wide instruction is not directly used by this implementation.  The wide
    // versions of instructions are specifically enumerated in the instruction set.
    Err(InternalError("Wide instruction attempted".to_string()))
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_wide() {
        let result = wide();
        assert!(matches!(result, Err(InternalError(_))));
    }
}