pr9.2
This commit is contained in:
@@ -2,10 +2,10 @@ use crate::call_frame::CallFrame;
|
||||
use prometeu_bytecode::FunctionMeta;
|
||||
use prometeu_bytecode::{TRAP_INVALID_LOCAL, TrapInfo};
|
||||
|
||||
/// Computes the absolute stack index for the start of the current frame's locals (including args).
|
||||
pub fn local_base(frame: &CallFrame) -> usize {
|
||||
frame.stack_base
|
||||
}
|
||||
// /// Computes the absolute stack index for the start of the current frame's locals (including args).
|
||||
// pub fn local_base(frame: &CallFrame) -> usize {
|
||||
// frame.stack_base
|
||||
// }
|
||||
|
||||
/// Computes the absolute stack index for a given local slot.
|
||||
pub fn local_index(frame: &CallFrame, slot: u32) -> usize {
|
||||
|
||||
Reference in New Issue
Block a user