about summary refs log tree commit diff stats
path: root/mu.arc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-10-14 17:51:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-10-14 17:51:30 -0700
commitb9a05206d6927c2238a666ae798285fee6b50e41 (patch)
treed74e2021402dc5504a22fd6875f41022af8b59de /mu.arc
parente6041858846f4d31b11600b1ab856a08a14a7dd1 (diff)
downloadmu-b9a05206d6927c2238a666ae798285fee6b50e41.tar.gz
147
Diffstat (limited to 'mu.arc')
-rw-r--r--mu.arc22
1 files changed, 11 insertions, 11 deletions
diff --git a/mu.arc b/mu.arc
index ded330dd..f540e776 100644
--- a/mu.arc
+++ b/mu.arc
@@ -290,11 +290,11 @@
                   (>= (m arg.0) (m arg.1))
 
                 ; control flow
-                jmp
+                jump
                   (do (= pc.context (+ 1 pc.context (v arg.0)))
 ;?                       (prn "jumping to " pc.context)
                       (continue))
-                jif
+                jump-if
                   (when (is t (m arg.0))
                     (= pc.context (+ 1 pc.context (v arg.1)))
 ;?                     (prn "jumping to " pc.context)
@@ -511,22 +511,22 @@
                     (do
                       (assert:is oarg nil)
                       (assert:is arg nil)
-                      (yield `(jmp (,(close-offset pc locs) offset))))
-                  breakif
+                      (yield `(jump (,(close-offset pc locs) offset))))
+                  break-if
                     (do
-;?                       (prn "breakif: " instr)
+;?                       (prn "break-if: " instr)
                       (assert:is oarg nil)
-                      (yield `(jif ,arg.0 (,(close-offset pc locs) offset))))
+                      (yield `(jump-if ,arg.0 (,(close-offset pc locs) offset))))
                   continue
                     (do
                       (assert:is oarg nil)
                       (assert:is arg nil)
-                      (yield `(jmp (,(- stack.0 pc) offset))))
-                  continueif
+                      (yield `(jump (,(- stack.0 pc) offset))))
+                  continue-if
                     (do
-                      (trace "cvt0" "continueif: " instr " => " (- stack.0 1))
+                      (trace "cvt0" "continue-if: " instr " => " (- stack.0 1))
                       (assert:is oarg nil)
-                      (yield `(jif ,arg.0 (,(- stack.0 1 pc) offset))))
+                      (yield `(jump-if ,arg.0 (,(- stack.0 1 pc) offset))))
                   ;else
                     (yield instr))))
             (++ pc))))))))
@@ -564,7 +564,7 @@
   ((xtype type) <- get (x tagged-value-address deref) (0 offset))
   ((match? boolean) <- eq (xtype type) (p type))
   { begin
-    (breakif (match? boolean))
+    (break-if (match? boolean))
     (reply (0 literal) (nil boolean))
   }
   ((xvalue location) <- get (x tagged-value-address deref) (1 offset))