about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-04-22 16:40:16 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-18 00:44:46 -0700
commitee69e953f6fd554979034db311d02135ecf7f05b (patch)
tree61d2b46eb836078e404b96c96fc30968c733534e /apps
parentc2fde79632589b9885363b872c12385cb28b3355 (diff)
downloadmu-ee69e953f6fd554979034db311d02135ecf7f05b.tar.gz
mu.subx: offsets for type data structures
Diffstat (limited to 'apps')
-rw-r--r--apps/mu.subx16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index c8b48b09..b0cec0f7 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -412,7 +412,7 @@ Type-id:  # (stream (address array byte))
 # Types contain vars with types, but can't specify registers.
 Typeinfo-id:  # type-id
   0/imm32
-Typeinfo-fields:  # (handle table string (handle typeinfo-entry))
+Typeinfo-fields:  # (handle table (handle array byte) (handle typeinfo-entry))
   4/imm32
 # Total size must be >= 0
 # During parsing it may take on two additional values:
@@ -420,16 +420,16 @@ Typeinfo-fields:  # (handle table string (handle typeinfo-entry))
 #   -1: in process of being computed
 # See populate-mu-type-sizes for details.
 Typeinfo-total-size-in-bytes:  # int
-  8/imm32
-Typeinfo-next:  # (handle typeinfo)
   0xc/imm32
-Typeinfo-size:  # (addr int)
+Typeinfo-next:  # (handle typeinfo)
   0x10/imm32
+Typeinfo-size:  # (addr int)
+  0x18/imm32
 
 # Each entry in the typeinfo->fields table has a pointer to a string and a
 # pointer to a typeinfo-entry.
 Typeinfo-fields-row-size:  # (addr int)
-  8/imm32
+  0x10/imm32
 
 # typeinfo-entry objects have information about a field in a single record type
 #
@@ -441,11 +441,11 @@ Typeinfo-fields-row-size:  # (addr int)
 Typeinfo-entry-input-var:  # (handle var)
   0/imm32
 Typeinfo-entry-index:  # int
-  4/imm32
-Typeinfo-entry-output-var:  # (handle var)
   8/imm32
-Typeinfo-entry-size:  # (addr int)
+Typeinfo-entry-output-var:  # (handle var)
   0xc/imm32
+Typeinfo-entry-size:  # (addr int)
+  0x14/imm32
 
 == code