Preload java/lang/ref/Reference

This commit is contained in:
vegowotenks 2024-11-15 11:14:35 +01:00
parent 5cf17d5ca3
commit c4da80f23c
4 changed files with 173 additions and 9 deletions

View file

@ -246,6 +246,7 @@ impl Bytecode {
}
0xAC => (Instruction::ReturnInt(), 1),
0xAD => (Instruction::ReturnLong(), 1),
0xAE => (Instruction::ReturnFloat(), 1),
0xAF => (Instruction::ReturnDouble(), 1),
0xB0 => (Instruction::ReturnReference(), 1),
@ -454,6 +455,7 @@ pub enum Instruction {
LookupSwitch(i32, Box<[(i32, i32)]>) = 0xAB, // jump based on switch value
ReturnInt() = 0xAC, // return integer from function
ReturnLong() = 0xAD, // return long from function
ReturnFloat() = 0xAE, // return float from function
ReturnDouble() = 0xAF, // return double from function
ReturnReference() = 0xB0, // return top-ref from current function