From 9e751bb8c0cdf771d34c839cb6591d892b8e62de Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 7 Mar 2017 01:41:48 -0800 Subject: 3761 --- html/024jump.cc.html | 53 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'html/024jump.cc.html') diff --git a/html/024jump.cc.html b/html/024jump.cc.html index 2d1f7229..93f81698 100644 --- a/html/024jump.cc.html +++ b/html/024jump.cc.html @@ -16,16 +16,17 @@ a { text-decoration: none; } a:hover { text-decoration: underline; } * { font-size: 12pt; font-size: 1em; } .Constant { color: #00a0a0; } -.traceAbsent { color: #c00000; } -.Special { color: #c00000; } .muRecipe { color: #ff8700; } -.cSpecial { color: #008000; } +.Conceal { color: #4e4e4e; } +.Special { color: #c00000; } .Comment { color: #9090ff; } .Delimiter { color: #800080; } .LineNr { color: #444444; } -.traceContains { color: #008000; } -.Normal { color: #eeeeee; background-color: #080808; padding-bottom: 1px; } .Identifier { color: #c0a020; } +.traceAbsent { color: #c00000; } +.Normal { color: #eeeeee; background-color: #080808; padding-bottom: 1px; } +.cSpecial { color: #008000; } +.traceContains { color: #008000; } --> @@ -78,12 +79,12 @@ if ('onhashchange' in window) { 16 :(before "End Primitive Recipe Checks") 17 case JUMP: { 18 if (SIZE(inst.ingredients) != 1) { - 19 raise << maybe(get(Recipe, r).name) << "'jump' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); - 20 break; + 19 ¦ raise << maybe(get(Recipe, r).name) << "'jump' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); + 20 ¦ break; 21 } 22 if (!is_literal(inst.ingredients.at(0))) { - 23 raise << maybe(get(Recipe, r).name) << "first ingredient of 'jump' should be a label or offset, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); - 24 break; + 23 ¦ raise << maybe(get(Recipe, r).name) << "first ingredient of 'jump' should be a label or offset, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); + 24 ¦ break; 25 } 26 break; 27 } @@ -103,7 +104,7 @@ if ('onhashchange' in window) { 41 def main [ 42 jump 1:offset # 0 -+ 43 jump 3:offset # | +-+ 1 - 44 # \/ /\ | + 44 ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦# \/ /\ | 45 jump -2:offset # 2 +-->+ | 46 ] # \/ 3 47 +run: jump {1: "offset"} @@ -117,16 +118,16 @@ if ('onhashchange' in window) { 55 :(before "End Primitive Recipe Checks") 56 case JUMP_IF: { 57 if (SIZE(inst.ingredients) != 2) { - 58 raise << maybe(get(Recipe, r).name) << "'jump-if' requires exactly two ingredients, but got '" << inst.original_string << "'\n" << end(); - 59 break; + 58 ¦ raise << maybe(get(Recipe, r).name) << "'jump-if' requires exactly two ingredients, but got '" << inst.original_string << "'\n" << end(); + 59 ¦ break; 60 } 61 if (!is_mu_scalar(inst.ingredients.at(0))) { - 62 raise << maybe(get(Recipe, r).name) << "'jump-if' requires a boolean for its first ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); - 63 break; + 62 ¦ raise << maybe(get(Recipe, r).name) << "'jump-if' requires a boolean for its first ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); + 63 ¦ break; 64 } 65 if (!is_literal(inst.ingredients.at(1))) { - 66 raise << maybe(get(Recipe, r).name) << "'jump-if' requires a label or offset for its second ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); - 67 break; + 66 ¦ raise << maybe(get(Recipe, r).name) << "'jump-if' requires a label or offset for its second ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); + 67 ¦ break; 68 } 69 // End JUMP_IF Checks 70 break; @@ -135,8 +136,8 @@ if ('onhashchange' in window) { 73 case JUMP_IF: { 74 assert(current_instruction().ingredients.at(1).initialized); 75 if (!ingredients.at(0).at(0)) { - 76 trace(9998, "run") << "jump-if fell through" << end(); - 77 break; + 76 ¦ trace(9998, "run") << "jump-if fell through" << end(); + 77 ¦ break; 78 } 79 current_step_index() += ingredients.at(1).at(0)+1; 80 trace(9998, "run") << "jumping to instruction " << current_step_index() << end(); @@ -170,16 +171,16 @@ if ('onhashchange' in window) { 108 :(before "End Primitive Recipe Checks") 109 case JUMP_UNLESS: { 110 if (SIZE(inst.ingredients) != 2) { -111 raise << maybe(get(Recipe, r).name) << "'jump-unless' requires exactly two ingredients, but got '" << inst.original_string << "'\n" << end(); -112 break; +111 ¦ raise << maybe(get(Recipe, r).name) << "'jump-unless' requires exactly two ingredients, but got '" << inst.original_string << "'\n" << end(); +112 ¦ break; 113 } 114 if (!is_mu_scalar(inst.ingredients.at(0))) { -115 raise << maybe(get(Recipe, r).name) << "'jump-unless' requires a boolean for its first ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); -116 break; +115 ¦ raise << maybe(get(Recipe, r).name) << "'jump-unless' requires a boolean for its first ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +116 ¦ break; 117 } 118 if (!is_literal(inst.ingredients.at(1))) { -119 raise << maybe(get(Recipe, r).name) << "'jump-unless' requires a label or offset for its second ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); -120 break; +119 ¦ raise << maybe(get(Recipe, r).name) << "'jump-unless' requires a label or offset for its second ingredient, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); +120 ¦ break; 121 } 122 // End JUMP_UNLESS Checks 123 break; @@ -188,8 +189,8 @@ if ('onhashchange' in window) { 126 case JUMP_UNLESS: { 127 assert(current_instruction().ingredients.at(1).initialized); 128 if (ingredients.at(0).at(0)) { -129 trace(9998, "run") << "jump-unless fell through" << end(); -130 break; +129 ¦ trace(9998, "run") << "jump-unless fell through" << end(); +130 ¦ break; 131 } 132 current_step_index() += ingredients.at(1).at(0)+1; 133 trace(9998, "run") << "jumping to instruction " << current_step_index() << end(); -- cgit 1.4.1-2-gfad0