about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--apps/mu.subx6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 2e60edf5..a1d9dcf2 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -8318,8 +8318,7 @@ $translate-mu-index-stmt-with-array-in-register:emit-int-register-index:
         e9/jump $translate-mu-index-stmt-with-array-in-register:emit-register-index-done/disp32
       }
       # if index->type is any other atom, abort
-      # TODO
-      8b/-> *(edx+4) 0/r32/eax  # Var-type
+      (lookup *(edx+8) *(edx+0xc))  # Var-type Var-type => eax
       81 7/subop/compare *eax 0/imm32/false  # Tree-is-atom
       0f 85/jump-if-!= $translate-mu-index-stmt-with-array:error2/disp32
       # if index has type (offset ...)
@@ -8428,8 +8427,7 @@ $translate-mu-index-stmt-with-array-on-stack:emit-int-register-index:
         e9/jump $translate-mu-index-stmt-with-array-on-stack:emit-register-index-done/disp32
       }
       # if index->type is any other atom, abort
-      # TODO
-      8b/-> *(edx+4) 0/r32/eax  # Var-type
+      (lookup *(edx+8) *(edx+0xc))  # Var-type Var-type => eax
       81 7/subop/compare *eax 0/imm32/false  # Tree-is-atom
       0f 85/jump-if-!= $translate-mu-index-stmt-with-array:error2/disp32
       # if index has type (offset ...)
tle='Blame the previous revision' href='/akkartik/mu/blame/build?h=hlt&id=e68dc9ccfb3f63c4c5ba60c63d87237854503b73'>^
248e789e ^
















































72f278ae ^
a3865d86 ^
248e789e ^

bfadbd4b ^




a3865d86 ^
f898ee7a ^
6e1eeeeb ^
248e789e ^

72f278ae ^
9e5e87ca ^
248e789e ^
9e5e87ca ^
248e789e ^

9e5e87ca ^


248e789e ^
9e5e87ca ^
a3865d86 ^
5170e27c ^
75f2c123 ^

248e789e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103