mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-20 02:29:47 +00:00
Get rid of VM stack storage
This commit is contained in:
parent
8afb88f5a4
commit
5719384ed9
6 changed files with 67 additions and 252 deletions
|
@ -152,6 +152,11 @@ impl<'a> CodeBuilder<'a> {
|
|||
|
||||
***********************************************************/
|
||||
|
||||
pub fn stack_is_empty(&self) -> bool {
|
||||
let block = self.vm_block_stack.last().unwrap();
|
||||
block.value_stack.is_empty()
|
||||
}
|
||||
|
||||
fn current_stack(&self) -> &Vec<'a, Symbol> {
|
||||
let block = self.vm_block_stack.last().unwrap();
|
||||
&block.value_stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue