From a802f0cedc7b5580d746f46ae62fcf8074ae3c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 04:41:24 -0800 Subject: 3749 --- html/054static_dispatch.cc.html | 46 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'html/054static_dispatch.cc.html') diff --git a/html/054static_dispatch.cc.html b/html/054static_dispatch.cc.html index 3248f049..d4a018c6 100644 --- a/html/054static_dispatch.cc.html +++ b/html/054static_dispatch.cc.html @@ -104,7 +104,7 @@ if ('onhashchange' in window) { 41 put(Recipe_ordinal, new_name, Next_recipe_ordinal++); 42 get_or_insert(Recipe_variants, result.name).push_back(get(Recipe_ordinal, new_name)); 43 } - 44 trace(9999, "load") << "switching " << result.name << " to " << new_name << end(); + 44 trace(9999, "load") << "switching " << result.name << " to " << new_name << end(); 45 result.name = new_name; 46 result.is_autogenerated = true; 47 } @@ -162,9 +162,9 @@ if ('onhashchange' in window) { 99 if (a->name == "literal" && b->name == "literal") 100 return true; 101 if (a->name == "literal") -102 return Literal_type_names.find(b->name) != Literal_type_names.end(); +102 return Literal_type_names.find(b->name) != Literal_type_names.end(); 103 if (b->name == "literal") -104 return Literal_type_names.find(a->name) != Literal_type_names.end(); +104 return Literal_type_names.find(a->name) != Literal_type_names.end(); 105 return a->name == b->name; 106 } 107 return deeply_equal_type_names(a->left, b->left) @@ -218,12 +218,12 @@ if ('onhashchange' in window) { 155 :(code) 156 void resolve_ambiguous_calls(const recipe_ordinal r) { 157 recipe& caller_recipe = get(Recipe, r); -158 trace(9991, "transform") << "--- resolve ambiguous calls for recipe " << caller_recipe.name << end(); +158 trace(9991, "transform") << "--- resolve ambiguous calls for recipe " << caller_recipe.name << end(); 159 for (int index = 0; index < SIZE(caller_recipe.steps); ++index) { 160 instruction& inst = caller_recipe.steps.at(index); 161 if (inst.is_label) continue; 162 if (non_ghost_size(get_or_insert(Recipe_variants, inst.name)) == 0) continue; -163 trace(9992, "transform") << "instruction " << inst.original_string << end(); +163 trace(9992, "transform") << "instruction " << inst.original_string << end(); 164 Resolve_stack.push_front(call(r)); 165 Resolve_stack.front().running_step_index = index; 166 string new_name = best_variant(inst, caller_recipe); @@ -261,22 +261,22 @@ if ('onhashchange' in window) { 198 199 // error messages 200 if (get(Recipe_ordinal, inst.name) >= MAX_PRIMITIVE_RECIPES) { // we currently don't check types for primitive variants -201 raise << maybe(caller_recipe.name) << "failed to find a matching call for '" << inst.original_string << "'\n" << end(); -202 for (list<call>::iterator p = /*skip*/++Resolve_stack.begin(); p != Resolve_stack.end(); ++p) { +201 raise << maybe(caller_recipe.name) << "failed to find a matching call for '" << inst.original_string << "'\n" << end(); +202 for (list<call>::iterator p = /*skip*/++Resolve_stack.begin(); p != Resolve_stack.end(); ++p) { 203 const recipe& specializer_recipe = get(Recipe, p->running_recipe); 204 const instruction& specializer_inst = specializer_recipe.steps.at(p->running_step_index); 205 if (specializer_recipe.name != "interactive") -206 raise << " (from '" << to_original_string(specializer_inst) << "' in " << specializer_recipe.name << ")\n" << end(); +206 raise << " (from '" << to_original_string(specializer_inst) << "' in " << specializer_recipe.name << ")\n" << end(); 207 else -208 raise << " (from '" << to_original_string(specializer_inst) << "')\n" << end(); +208 raise << " (from '" << to_original_string(specializer_inst) << "')\n" << end(); 209 // One special-case to help with the rewrite_stash transform. (cross-layer) 210 if (specializer_inst.products.at(0).name.find("stash_") == 0) { 211 instruction stash_inst; 212 if (next_stash(*p, &stash_inst)) { 213 if (specializer_recipe.name != "interactive") -214 raise << " (part of '" << stash_inst.original_string << "' in " << specializer_recipe.name << ")\n" << end(); +214 raise << " (part of '" << stash_inst.original_string << "' in " << specializer_recipe.name << ")\n" << end(); 215 else -216 raise << " (part of '" << stash_inst.original_string << "')\n" << end(); +216 raise << " (part of '" << stash_inst.original_string << "')\n" << end(); 217 } 218 } 219 } @@ -289,7 +289,7 @@ if ('onhashchange' in window) { 226 vector<recipe_ordinal> result; 227 for (int i = 0; i < SIZE(variants); ++i) { 228 if (variants.at(i) == -1) continue; -229 trace(9992, "transform") << "checking variant (strict) " << i << ": " << header_label(variants.at(i)) << end(); +229 trace(9992, "transform") << "checking variant (strict) " << i << ": " << header_label(variants.at(i)) << end(); 230 if (all_header_reagents_strictly_match(inst, get(Recipe, variants.at(i)))) 231 result.push_back(variants.at(i)); 232 } @@ -299,14 +299,14 @@ if ('onhashchange' in window) { 236 bool all_header_reagents_strictly_match(const instruction& inst, const recipe& variant) { 237 for (int i = 0; i < min(SIZE(inst.ingredients), SIZE(variant.ingredients)); ++i) { 238 if (!types_strictly_match(variant.ingredients.at(i), inst.ingredients.at(i))) { -239 trace(9993, "transform") << "strict match failed: ingredient " << i << end(); +239 trace(9993, "transform") << "strict match failed: ingredient " << i << end(); 240 return false; 241 } 242 } 243 for (int i = 0; i < min(SIZE(inst.products), SIZE(variant.products)); ++i) { 244 if (is_dummy(inst.products.at(i))) continue; 245 if (!types_strictly_match(variant.products.at(i), inst.products.at(i))) { -246 trace(9993, "transform") << "strict match failed: product " << i << end(); +246 trace(9993, "transform") << "strict match failed: product " << i << end(); 247 return false; 248 } 249 } @@ -318,7 +318,7 @@ if ('onhashchange' in window) { 255 vector<recipe_ordinal> result; 256 for (int i = 0; i < SIZE(variants); ++i) { 257 if (variants.at(i) == -1) continue; -258 trace(9992, "transform") << "checking variant (strict except literal-zero-against-address) " << i << ": " << header_label(variants.at(i)) << end(); +258 trace(9992, "transform") << "checking variant (strict except literal-zero-against-address) " << i << ": " << header_label(variants.at(i)) << end(); 259 if (all_header_reagents_strictly_match_except_literal_zero_against_address(inst, get(Recipe, variants.at(i)))) 260 result.push_back(variants.at(i)); 261 } @@ -328,14 +328,14 @@ if ('onhashchange' in window) { 265 bool all_header_reagents_strictly_match_except_literal_zero_against_address(const instruction& inst, const recipe& variant) { 266 for (int i = 0; i < min(SIZE(inst.ingredients), SIZE(variant.ingredients)); ++i) { 267 if (!types_strictly_match_except_literal_zero_against_address(variant.ingredients.at(i), inst.ingredients.at(i))) { -268 trace(9993, "transform") << "match failed: ingredient " << i << end(); +268 trace(9993, "transform") << "match failed: ingredient " << i << end(); 269 return false; 270 } 271 } 272 for (int i = 0; i < min(SIZE(inst.products), SIZE(variant.products)); ++i) { 273 if (is_dummy(inst.products.at(i))) continue; 274 if (!types_strictly_match(variant.products.at(i), inst.products.at(i))) { -275 trace(9993, "transform") << "match failed: product " << i << end(); +275 trace(9993, "transform") << "match failed: product " << i << end(); 276 return false; 277 } 278 } @@ -353,7 +353,7 @@ if ('onhashchange' in window) { 290 vector<recipe_ordinal> result; 291 for (int i = 0; i < SIZE(variants); ++i) { 292 if (variants.at(i) == -1) continue; -293 trace(9992, "transform") << "checking variant (strict except literal-against-boolean) " << i << ": " << header_label(variants.at(i)) << end(); +293 trace(9992, "transform") << "checking variant (strict except literal-against-boolean) " << i << ": " << header_label(variants.at(i)) << end(); 294 if (all_header_reagents_strictly_match_except_literal_against_address_or_boolean(inst, get(Recipe, variants.at(i)))) 295 result.push_back(variants.at(i)); 296 } @@ -363,14 +363,14 @@ if ('onhashchange' in window) { 300 bool all_header_reagents_strictly_match_except_literal_against_address_or_boolean(const instruction& inst, const recipe& variant) { 301 for (int i = 0; i < min(SIZE(inst.ingredients), SIZE(variant.ingredients)); ++i) { 302 if (!types_strictly_match_except_literal_against_address_or_boolean(variant.ingredients.at(i), inst.ingredients.at(i))) { -303 trace(9993, "transform") << "match failed: ingredient " << i << end(); +303 trace(9993, "transform") << "match failed: ingredient " << i << end(); 304 return false; 305 } 306 } 307 for (int i = 0; i < min(SIZE(variant.products), SIZE(inst.products)); ++i) { 308 if (is_dummy(inst.products.at(i))) continue; 309 if (!types_strictly_match_except_literal_against_address_or_boolean(variant.products.at(i), inst.products.at(i))) { -310 trace(9993, "transform") << "match failed: product " << i << end(); +310 trace(9993, "transform") << "match failed: product " << i << end(); 311 return false; 312 } 313 } @@ -388,7 +388,7 @@ if ('onhashchange' in window) { 325 vector<recipe_ordinal> result; 326 for (int i = 0; i < SIZE(variants); ++i) { 327 if (variants.at(i) == -1) continue; -328 trace(9992, "transform") << "checking variant " << i << ": " << header_label(variants.at(i)) << end(); +328 trace(9992, "transform") << "checking variant " << i << ": " << header_label(variants.at(i)) << end(); 329 if (all_header_reagents_match(inst, get(Recipe, variants.at(i)))) 330 result.push_back(variants.at(i)); 331 } @@ -398,14 +398,14 @@ if ('onhashchange' in window) { 335 bool all_header_reagents_match(const instruction& inst, const recipe& variant) { 336 for (int i = 0; i < min(SIZE(inst.ingredients), SIZE(variant.ingredients)); ++i) { 337 if (!types_match(variant.ingredients.at(i), inst.ingredients.at(i))) { -338 trace(9993, "transform") << "match failed: ingredient " << i << end(); +338 trace(9993, "transform") << "match failed: ingredient " << i << end(); 339 return false; 340 } 341 } 342 for (int i = 0; i < min(SIZE(variant.products), SIZE(inst.products)); ++i) { 343 if (is_dummy(inst.products.at(i))) continue; 344 if (!types_match(variant.products.at(i), inst.products.at(i))) { -345 trace(9993, "transform") << "match failed: product " << i << end(); +345 trace(9993, "transform") << "match failed: product " << i << end(); 346 return false; 347 } 348 } -- cgit 1.4.1-2-gfad0