feat(tvix/eval): implement OpPopWith
Change-Id: I752d9428a73f893741746e9d5b79e8d8d570bb81 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6219 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
		
							parent
							
								
									5a497cdf1c
								
							
						
					
					
						commit
						19878c5fef
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -54,6 +54,7 @@ pub enum OpCode {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // `with`-handling
 | 
					    // `with`-handling
 | 
				
			||||||
    OpPushWith(usize),
 | 
					    OpPushWith(usize),
 | 
				
			||||||
 | 
					    OpPopWith,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Lists
 | 
					    // Lists
 | 
				
			||||||
    OpList(usize),
 | 
					    OpList(usize),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -282,6 +282,9 @@ impl VM {
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                OpCode::OpPushWith(idx) => self.with_stack.push(idx),
 | 
					                OpCode::OpPushWith(idx) => self.with_stack.push(idx),
 | 
				
			||||||
 | 
					                OpCode::OpPopWith => {
 | 
				
			||||||
 | 
					                    self.with_stack.pop();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            #[cfg(feature = "disassembler")]
 | 
					            #[cfg(feature = "disassembler")]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue