diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-13 15:42:01 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-18 00:44:49 -0700 |
commit | 475ba3ae17f76b1965e8f3359546e0fc944d4a9d (patch) | |
tree | b2fc824f123fbe86b5b962f6fd1c7f2822d3b6ef /apps/mu.subx | |
parent | 456b44fbfb6003195aceef8ed41f194cd2e27b80 (diff) | |
download | mu-475ba3ae17f76b1965e8f3359546e0fc944d4a9d.tar.gz |
-
Remove one local variable and unnecessary copy.
Diffstat (limited to 'apps/mu.subx')
-rw-r--r-- | apps/mu.subx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/mu.subx b/apps/mu.subx index b12df538..8ced94a5 100644 --- a/apps/mu.subx +++ b/apps/mu.subx @@ -11045,19 +11045,15 @@ $test-emit-subx-stmt-primitive:initialize-type: (lookup *ecx *(ecx+4)) # => eax c7 0/subop/copy *eax 1/imm32/true # Tree-is-atom c7 0/subop/copy *(eax+4) 1/imm32/int # Tree-value -$test-emit-subx-stmt-primitive:initialize-name: - # var s/ebx: (handle array byte) - 68/push 0/imm32 - 68/push 0/imm32 - 89/<- %ebx 4/r32/esp - (copy-array Heap "foo" %ebx) $test-emit-subx-stmt-primitive:initialize-var: - # var v/edx: (handle var) = new var("foo", type) + # var v/edx: (handle var) = new var(type) 68/push 0/imm32 68/push 0/imm32 89/<- %edx 4/r32/esp - (new-var Heap *ebx *(ebx+4) %edx) + (new-var Heap 0 0 %edx) # name = null (lookup *edx *(edx+4)) # => eax + # v->name = "foo" + (copy-array Heap "foo" %eax) # Var-name # v->type = type 8b/-> *ecx 3/r32/ebx 89/<- *(eax+8) 3/r32/ebx # Var-type |