diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-07-26 22:44:25 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-07-26 22:51:21 -0700 |
commit | e2c22ad4d9cbc99f4f256559819650c4d74261af (patch) | |
tree | 8dea6c84dd2de5443627bdeeba3dc09ea106f713 | |
parent | f7a90521d13e193dbddffae02d1eba6f729f6e59 (diff) | |
download | mu-e2c22ad4d9cbc99f4f256559819650c4d74261af.tar.gz |
6681
-rwxr-xr-x | apps/mu | bin | 362269 -> 362269 bytes | |||
-rw-r--r-- | apps/mu.subx | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/mu b/apps/mu index db6c157a..7ae8daf3 100755 --- a/apps/mu +++ b/apps/mu Binary files differdiff --git a/apps/mu.subx b/apps/mu.subx index 06c963b9..536bca5d 100644 --- a/apps/mu.subx +++ b/apps/mu.subx @@ -12810,7 +12810,7 @@ size-of-deref: # v: (addr var) -> result/eax: int 3d/compare-eax-and 0/imm32/false 74/jump-if-= break/disp8 (size-of-array %ecx) # => eax - eb/jump $size-of:end/disp8 + eb/jump $size-of-deref:end/disp8 } # if (!t->is-atom?) t = lookup(t->left) { @@ -12879,7 +12879,7 @@ size-of-array: # a: (addr type-tree) -> result/eax: int (lookup *(ecx+0xc) *(ecx+0x10)) # Type-tree-right Type-tree-right => eax (lookup *(eax+4) *(eax+8)) # Type-tree-left Type-tree-left => eax 8b/-> *(eax+8) 1/r32/ecx # Type-tree-value-size - # return array-size * size-of(elem-type) + # return 4 + array-size * size-of(elem-type) (size-of-type-id-as-array-element %edx) # => eax f7 4/subop/multiply-into-eax %ecx 05/add-to-eax 4/imm32 # for array size |