mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Add debug logging to CodeBuilder and fix a minor bug
This commit is contained in:
parent
3aaafdefe1
commit
476c1664ec
2 changed files with 40 additions and 8 deletions
|
@ -258,6 +258,8 @@ impl<'a> WasmBackend<'a> {
|
|||
}
|
||||
|
||||
/// Load symbols to the top of the VM stack
|
||||
/// (There is no method for one symbol. This is deliberate, since
|
||||
/// if anyone ever called it in a loop, it would generate inefficient code)
|
||||
fn load_symbols(&mut self, symbols: &[Symbol]) {
|
||||
if self.instructions.verify_stack_match(symbols) {
|
||||
// The symbols were already at the top of the stack, do nothing!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue