about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--apps/tile/rpn.mu12
-rw-r--r--apps/tile/table.mu18
-rw-r--r--apps/tile/value-stack.mu34
-rw-r--r--apps/tile/value.mu17
4 files changed, 0 insertions, 81 deletions
diff --git a/apps/tile/rpn.mu b/apps/tile/rpn.mu
index 935d7bdd..22aa9c19 100644
--- a/apps/tile/rpn.mu
+++ b/apps/tile/rpn.mu
@@ -609,12 +609,6 @@ fn evaluate functions: (addr handle function), bindings: (addr table), scratch:
         top <- decrement
         var dest-offset/edx: (offset value) <- compute-offset data, top
         var target-val/edx: (addr value) <- index data, dest-offset
-#?           {
-#?             print-string 0, "DD: "
-#?             var y0/eax: int <- copy target-val
-#?             print-int32-hex 0, y0
-#?             print-string 0, "\n"
-#?           }
         # create binding from curr-stream to target-val
         var key-h: (handle array byte)
         var key/ecx: (addr handle array byte) <- address key-h
@@ -648,12 +642,6 @@ fn evaluate functions: (addr handle function), bindings: (addr table), scratch:
         var val/eax: (addr value) <- lookup *val-ah
         compare val, 0
         break-if-=
-#?           {
-#?             print-string 0, "UU: "
-#?             var y0/eax: int <- copy val
-#?             print-int32-hex 0, y0
-#?             print-string 0, "\n"
-#?           }
         push-value-stack out, val
         break $evaluate:process-word
       }
diff --git a/apps/tile/table.mu b/apps/tile/table.mu
index 8b8b93f3..b0fdb648 100644
--- a/apps/tile/table.mu
+++ b/apps/tile/table.mu
@@ -36,29 +36,11 @@ fn deep-copy-table _src: (addr table), _dest: (addr table) {
       var src-val-ah/eax: (addr handle value) <- get src-bind, value
       var _src-val/eax: (addr value) <- lookup *src-val-ah
       var src-val/ecx: (addr value) <- copy _src-val
-#?       {
-#?         print-string 0, "src type: "
-#?         var foo/eax: (addr int) <- get src-val, type
-#?         print-int32-decimal 0, *foo
-#?         print-string 0, "\n"
-#?       }
       var dest-val-ah/eax: (addr handle value) <- get dest-bind, value
       allocate dest-val-ah
       var dest-val/eax: (addr value) <- lookup *dest-val-ah
-#?       {
-#?         var foo/eax: int <- copy dest-val
-#?         print-string 0, "iter: "
-#?         print-int32-hex 0, foo
-#?         print-string 0, "\n"
-#?       }
 #?       print-string 0, "deep copy value {\n"
       deep-copy-value src-val, dest-val
-#?       {
-#?         print-string 0, "dest: "
-#?         var foo/eax: (addr int) <- get dest-val, type
-#?         print-int32-decimal 0, *foo
-#?         print-string 0, "\n"
-#?       }
 #?       print-string 0, "}\n"
     }
     i <- increment
diff --git a/apps/tile/value-stack.mu b/apps/tile/value-stack.mu
index e8e05068..a3d05322 100644
--- a/apps/tile/value-stack.mu
+++ b/apps/tile/value-stack.mu
@@ -82,40 +82,6 @@ fn push-value-stack _self: (addr value-stack), val: (addr value) {
   var dest-offset/edx: (offset value) <- compute-offset data, top
   var dest-addr/edx: (addr value) <- index data, dest-offset
   copy-object val, dest-addr
-#?   {
-#?     print-string 0, "push-value-stack/src: "
-#?     var x5/eax: (addr value) <- copy val
-#?     {
-#?       var y0/eax: int <- copy x5
-#?       print-int32-hex 0, y0
-#?       print-string 0, " -- "
-#?     }
-#?     var x6/eax: (addr int) <- get x5, type
-#?     compare x6, 0
-#?     break-if-=
-#?     print-int32-hex 0, *x6
-#?     print-string 0, "\n"
-#?   }
-#?   {
-#?     print-string 0, "push-value-stack/dest: "
-#?     var x5/eax: (addr value) <- copy dest-addr
-#?     {
-#?       var y0/eax: int <- copy x5
-#?       print-int32-hex 0, y0
-#?  d } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
(selective-load "mu.arc" section-level)
(set allow-raw-addresses*)

(reset)
(new-trace "blocking-example")
(add-code
  '((function reader [
      (default-space:space-address <- new space:literal 30:literal/capacity)
      (x:tagged-value 1:channel-address/space:global <- read 1:channel-address/space:global)
     ])
    (function main [
      (default-space:space-address <- new space:literal 30:literal/capacity)
      (1:channel-address <- init-channel 3:literal)
      (2:integer/routine <- fork-helper reader:fn default-space:space-address/globals 50:literal/limit)
      ; write nothing to the channel
;?       (sleep until-routine-done:literal 2:integer/routine)
     ])))
;? (= dump-trace* (obj whitelist '("schedule" "run")))
(run 'main)
;? (prn "completed:")
;? (each r completed-routines*
;?   (prn " " r))
(when (ran-to-completion 'reader)
  (prn "F - reader waits for input"))

(reset)