about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-03-08 18:11:19 -0700
committerKartik Agaram <vc@akkartik.com>2020-03-08 18:13:55 -0700
commite43e0094a7ea7fa626be1a735081798976401baf (patch)
tree38f4d901fa722bee9f9ef2b3b4b11bdbf5f0707a /apps
parentab74038c0d1dbcc9bb18cd53b97f0a9f891338f6 (diff)
downloadmu-e43e0094a7ea7fa626be1a735081798976401baf.tar.gz
6110
Diffstat (limited to 'apps')
-rw-r--r--apps/mu.subx5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 72230aaf..e4e66c04 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -3519,7 +3519,7 @@ pos-or-insert-slice:  # arr: (addr stream (handle array byte)), s: (addr slice)
     (pos-slice *(ebp+8) *(ebp+0xc))  # => eax
     3d/compare-eax-and -1/imm32
     75/jump-if-!= $pos-or-insert-slice:end/disp8
-    #
+$pos-or-insert-slice:insert:
     (slice-to-string Heap *(ebp+0xc))  # => eax
     (write-int *(ebp+8) %eax)
     (pos-slice *(ebp+8) *(ebp+0xc))  # => eax
@@ -5829,12 +5829,13 @@ size-of-type-id:  # t: type-id -> result/eax: int
     {
       3d/compare-eax-and 0/imm32
       74/jump-if-= break/disp8
+$size-of-type-id:user-defined:
       8b/-> *(eax+8) 0/r32/eax  # Typeinfo-total-size-in-bytes
       eb/jump $size-of-type:end/disp8
     }
     # otherwise return the word size
     b8/copy-to-eax 4/imm32
-$size-of-type:end:
+$size-of-type-id:end:
     # . epilogue
     89/<- %esp 5/r32/ebp
     5d/pop-to-ebp