diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-11 15:54:19 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-11 15:54:19 -0800 |
commit | 6d007fda037331e7761d2a9ed3a2e435131daf7e (patch) | |
tree | 656aa7fe284b2b11c01f0389fe81f1b31025ce4e /html/043space.cc.html | |
parent | c9f920da6e6b3e7049f078fea35e08256cae7c5b (diff) | |
download | mu-6d007fda037331e7761d2a9ed3a2e435131daf7e.tar.gz |
3667
Diffstat (limited to 'html/043space.cc.html')
-rw-r--r-- | html/043space.cc.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/html/043space.cc.html b/html/043space.cc.html index d66b6eeb..5de969b0 100644 --- a/html/043space.cc.html +++ b/html/043space.cc.html @@ -81,10 +81,10 @@ put<span class="Delimiter">(</span>Type_abbreviations<span class="Delimiter">,</ <span class="traceContains">+name: assign x 1</span> <span class="traceAbsent">-name: assign default-space 1</span> -<span class="Delimiter">:(before "End is_disqualified Cases")</span> +<span class="Delimiter">:(before "End is_disqualified Special-cases")</span> <span class="Normal">if</span> <span class="Delimiter">(</span>x<span class="Delimiter">.</span>name == <span class="Constant">"default-space"</span><span class="Delimiter">)</span> x<span class="Delimiter">.</span>initialized = <span class="Constant">true</span><span class="Delimiter">;</span> -<span class="Delimiter">:(before "End is_special_name Cases")</span> +<span class="Delimiter">:(before "End is_special_name Special-cases")</span> <span class="Normal">if</span> <span class="Delimiter">(</span>s == <span class="Constant">"default-space"</span><span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">true</span><span class="Delimiter">;</span> <span class="SalientComment">//:: now implement space support</span> @@ -204,10 +204,10 @@ element<span class="Delimiter">.</span>properties<span class="Delimiter">.</span <span class="Comment"># allocate space for x and y, as well as the chaining slot at 0</span> <span class="traceContains">+mem: array length is 3</span> -<span class="Delimiter">:(before "End is_disqualified Cases")</span> +<span class="Delimiter">:(before "End is_disqualified Special-cases")</span> <span class="Normal">if</span> <span class="Delimiter">(</span>x<span class="Delimiter">.</span>name == <span class="Constant">"number-of-locals"</span><span class="Delimiter">)</span> x<span class="Delimiter">.</span>initialized = <span class="Constant">true</span><span class="Delimiter">;</span> -<span class="Delimiter">:(before "End is_special_name Cases")</span> +<span class="Delimiter">:(before "End is_special_name Special-cases")</span> <span class="Normal">if</span> <span class="Delimiter">(</span>s == <span class="Constant">"number-of-locals"</span><span class="Delimiter">)</span> <span class="Identifier">return</span> <span class="Constant">true</span><span class="Delimiter">;</span> <span class="Delimiter">:(before "End Rewrite Instruction(curr, recipe result)")</span> @@ -236,8 +236,8 @@ element<span class="Delimiter">.</span>properties<span class="Delimiter">.</span <span class="Delimiter">:(scenario local_scope)</span> <span class="muRecipe">def</span> main [ - <span class="Constant">1</span>:&<span class="Special"> <- </span>foo - <span class="Constant">2</span>:&<span class="Special"> <- </span>foo + <span class="Constant">1</span>:&:@:location<span class="Special"> <- </span>foo + <span class="Constant">2</span>:&:@:location<span class="Special"> <- </span>foo <span class="Constant">3</span>:<span class="Normal">bool</span><span class="Special"> <- </span>equal <span class="Constant">1</span>:&<span class="Delimiter">,</span> <span class="Constant">2</span>:& ] <span class="muRecipe">def</span> foo [ @@ -260,7 +260,7 @@ element<span class="Delimiter">.</span>properties<span class="Delimiter">.</span rewrite_default_space_instruction<span class="Delimiter">(</span>curr<span class="Delimiter">);</span> <span class="Delimiter">}</span> -<span class="Comment">//: todo: do this in a transform, rather than magically in the reply instruction</span> +<span class="Comment">//: todo: do this in a transform, rather than magically in the 'return' instruction</span> <span class="Delimiter">:(after "Falling Through End Of Recipe")</span> try_reclaim_locals<span class="Delimiter">();</span> <span class="Delimiter">:(after "Starting Reply")</span> @@ -297,7 +297,7 @@ try_reclaim_locals<span class="Delimiter">();</span> <span class="Delimiter">}</span> <span class="Delimiter">:(code)</span> -<span class="Comment">// is this reagent one of the values returned by the current (reply) instruction?</span> +<span class="Comment">// is this reagent one of the values returned by the current (return) instruction?</span> <span class="Comment">// is the corresponding ingredient saved in the caller?</span> <span class="Normal">bool</span> escaping<span class="Delimiter">(</span><span class="Normal">const</span> reagent& r<span class="Delimiter">)</span> <span class="Delimiter">{</span> assert<span class="Delimiter">(</span>Current_routine<span class="Delimiter">);</span> <span class="Comment">// run-time only</span> @@ -408,7 +408,7 @@ Update_refcounts_in_write_memory = <span class="Constant">true</span><span class <span class="muRecipe">def</span> f [ local-scope <span class="Normal">x</span>:&:num<span class="Special"> <- </span><span class="Normal">new</span> <span class="Constant">number:type</span> - reply x:&:num + <span class="Identifier">return</span> x:&:num ] <span class="muRecipe">def</span> main [ f <span class="Comment"># doesn't save result</span> |