ristretto_jit 0.30.0

JVM JIT Compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Result;
use crate::operand_stack::OperandStack;

/// # References
/// - [JVMS §6.5.monitorenter](https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-6.html#jvms-6.5.monitorenter)
pub(crate) fn monitorenter(stack: &mut OperandStack) -> Result<()> {
    // The monitorenter instruction is not currently used by this implementation.
    let _ = stack.pop()?;
    Ok(())
}

/// # References
/// - [JVMS §6.5.monitorexit](https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-6.html#jvms-6.5.monitorexit)
pub(crate) fn monitorexit(stack: &mut OperandStack) -> Result<()> {
    // The monitorexit instruction is not currently used by this implementation.
    let _ = stack.pop()?;
    Ok(())
}