mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
wasm_interp: rename ValueStack::len -> depth
This commit is contained in:
parent
76341c7611
commit
ed18bf7709
4 changed files with 11 additions and 11 deletions
|
@ -469,13 +469,13 @@ impl<'a, I: ImportDispatcher> Instance<'a, I> {
|
|||
BLOCK => {
|
||||
self.fetch_immediate_u32(module); // blocktype (ignored)
|
||||
self.blocks.push(Block::Normal {
|
||||
vstack: self.value_stack.len(),
|
||||
vstack: self.value_stack.depth(),
|
||||
});
|
||||
}
|
||||
LOOP => {
|
||||
self.fetch_immediate_u32(module); // blocktype (ignored)
|
||||
self.blocks.push(Block::Loop {
|
||||
vstack: self.value_stack.len(),
|
||||
vstack: self.value_stack.depth(),
|
||||
start_addr: self.program_counter,
|
||||
});
|
||||
}
|
||||
|
@ -483,7 +483,7 @@ impl<'a, I: ImportDispatcher> Instance<'a, I> {
|
|||
self.fetch_immediate_u32(module); // blocktype (ignored)
|
||||
let condition = self.value_stack.pop_i32()?;
|
||||
self.blocks.push(Block::Normal {
|
||||
vstack: self.value_stack.len(),
|
||||
vstack: self.value_stack.depth(),
|
||||
});
|
||||
if condition == 0 {
|
||||
let mut depth = self.blocks.len();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue