mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Shorten the name of the Symbol for temporary Wasm values
This commit is contained in:
parent
4b3538dc58
commit
daf6771bf5
2 changed files with 3 additions and 3 deletions
|
@ -439,7 +439,7 @@ impl<'a> CodeBuilder<'a> {
|
||||||
let new_len = self.vm_stack.len() - pops as usize;
|
let new_len = self.vm_stack.len() - pops as usize;
|
||||||
self.vm_stack.truncate(new_len);
|
self.vm_stack.truncate(new_len);
|
||||||
if push {
|
if push {
|
||||||
self.vm_stack.push(Symbol::WASM_ANONYMOUS_STACK_VALUE);
|
self.vm_stack.push(Symbol::WASM_TMP);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.code.push(opcode as u8);
|
self.code.push(opcode as u8);
|
||||||
|
|
|
@ -875,8 +875,8 @@ define_builtins! {
|
||||||
// used by the dev backend to store the pointer to where to store large return types
|
// used by the dev backend to store the pointer to where to store large return types
|
||||||
23 RET_POINTER: "#ret_pointer"
|
23 RET_POINTER: "#ret_pointer"
|
||||||
|
|
||||||
// used in wasm dev backend to mark values in the VM stack that have no other Symbol
|
// used in wasm dev backend to mark temporary values in the VM stack
|
||||||
24 WASM_ANONYMOUS_STACK_VALUE: "#wasm_anonymous_stack_value"
|
24 WASM_TMP: "#wasm_tmp"
|
||||||
}
|
}
|
||||||
1 NUM: "Num" => {
|
1 NUM: "Num" => {
|
||||||
0 NUM_NUM: "Num" imported // the Num.Num type alias
|
0 NUM_NUM: "Num" imported // the Num.Num type alias
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue