rusty-jvm 0.5.0

An implementation of a Java Virtual Machine (JVM).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// use crate::stack::stack_frame::i32toi64;
// 
// pub(crate) fn subtract_exact_wrp(args: &[i32]) -> Vec<i32> {
//     let i = i32toi64(args[1], args[0]);
//     let j = i32toi64(args[3], args[2]);
//     
//     let millis = subtract_exact(i, j);
// 
//     let low = millis as i32;
//     let high = (millis >> 32) as i32;
// 
//     vec![high, low]
// }
// fn subtract_exact(first: i64, second: i64) -> i64 {
//     first.checked_sub(second).expect("Subtraction overflow")
// }