ristretto_jit 0.33.0

JVM JIT Compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::util::create_function;
use ristretto_classfile::attributes::Instruction;
use ristretto_jit::Result;

#[test]
fn compile_object_init() -> Result<()> {
    let instructions = vec![Instruction::Return];
    let function = create_function("()V", &instructions)?;
    let value = function.execute(&[], std::ptr::null())?;
    assert_eq!(value, None);
    Ok(())
}