From 104e521c04d1a0cad9c68fb11e250e12ad8917ef Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 17 Oct 2018 07:08:47 -0700 Subject: 4709 --- html/054static_dispatch.cc.html | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'html/054static_dispatch.cc.html') diff --git a/html/054static_dispatch.cc.html b/html/054static_dispatch.cc.html index d7e54744..72eebcac 100644 --- a/html/054static_dispatch.cc.html +++ b/html/054static_dispatch.cc.html @@ -106,7 +106,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("load") << "switching " << result.name << " to " << new_name << end(); + 44 trace("load") << "switching " << result.name << " to " << new_name << end(); 45 result.name = new_name; 46 result.is_autogenerated = true; 47 } @@ -164,9 +164,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) @@ -227,7 +227,7 @@ if ('onhashchange' in window) { 162 :(code) 163 void resolve_ambiguous_calls(const recipe_ordinal r) { 164 recipe& caller_recipe = get(Recipe, r); -165 trace(9991, "transform") << "--- resolve ambiguous calls for recipe " << caller_recipe.name << end(); +165 trace(9991, "transform") << "--- resolve ambiguous calls for recipe " << caller_recipe.name << end(); 166 for (int index = 0; index < SIZE(caller_recipe.steps); ++index) { 167 instruction& inst = caller_recipe.steps.at(index); 168 if (inst.is_label) continue; @@ -238,7 +238,7 @@ if ('onhashchange' in window) { 173 void resolve_ambiguous_call(const recipe_ordinal r, int index, instruction& inst, const recipe& caller_recipe) { 174 // End resolve_ambiguous_call(r, index, inst, caller_recipe) Special-cases 175 if (non_ghost_size(get_or_insert(Recipe_variants, inst.name)) == 0) return; -176 trace(9992, "transform") << "instruction " << to_original_string(inst) << end(); +176 trace(9992, "transform") << "instruction " << to_original_string(inst) << end(); 177 Resolve_stack.push_front(call(r, index)); 178 string new_name = best_variant(inst, caller_recipe); 179 if (!new_name.empty()) @@ -270,30 +270,30 @@ if ('onhashchange' in window) { 205 // error messages 206 if (!is_primitive(get(Recipe_ordinal, inst.name))) { // we currently don't check types for primitive variants 207 if (SIZE(variants) == 1) { -208 raise << maybe(caller_recipe.name) << "types don't match in call for '" << to_original_string(inst) << "'\n" << end(); -209 raise << " which tries to call '" << original_header_label(get(Recipe, variants.at(0))) << "'\n" << end(); +208 raise << maybe(caller_recipe.name) << "types don't match in call for '" << to_original_string(inst) << "'\n" << end(); +209 raise << " which tries to call '" << original_header_label(get(Recipe, variants.at(0))) << "'\n" << end(); 210 } 211 else { -212 raise << maybe(caller_recipe.name) << "failed to find a matching call for '" << to_original_string(inst) << "'\n" << end(); -213 raise << " available variants are:\n" << end(); +212 raise << maybe(caller_recipe.name) << "failed to find a matching call for '" << to_original_string(inst) << "'\n" << end(); +213 raise << " available variants are:\n" << end(); 214 for (int i = 0; i < SIZE(variants); ++i) -215 raise << " " << original_header_label(get(Recipe, variants.at(i))) << '\n' << end(); +215 raise << " " << original_header_label(get(Recipe, variants.at(i))) << '\n' << end(); 216 } -217 for (list<call>::iterator p = /*skip*/++Resolve_stack.begin(); p != Resolve_stack.end(); ++p) { +217 for (list<call>::iterator p = /*skip*/++Resolve_stack.begin(); p != Resolve_stack.end(); ++p) { 218 const recipe& specializer_recipe = get(Recipe, p->running_recipe); 219 const instruction& specializer_inst = specializer_recipe.steps.at(p->running_step_index); 220 if (specializer_recipe.name != "interactive") -221 raise << " (from '" << to_original_string(specializer_inst) << "' in " << specializer_recipe.name << ")\n" << end(); +221 raise << " (from '" << to_original_string(specializer_inst) << "' in " << specializer_recipe.name << ")\n" << end(); 222 else -223 raise << " (from '" << to_original_string(specializer_inst) << "')\n" << end(); +223 raise << " (from '" << to_original_string(specializer_inst) << "')\n" << end(); 224 // One special-case to help with the rewrite_stash transform. (cross-layer) 225 if (specializer_inst.products.at(0).name.find("stash_") == 0) { 226 instruction stash_inst; 227 if (next_stash(*p, &stash_inst)) { 228 if (specializer_recipe.name != "interactive") -229 raise << " (part of '" << to_original_string(stash_inst) << "' in " << specializer_recipe.name << ")\n" << end(); +229 raise << " (part of '" << to_original_string(stash_inst) << "' in " << specializer_recipe.name << ")\n" << end(); 230 else -231 raise << " (part of '" << to_original_string(stash_inst) << "')\n" << end(); +231 raise << " (part of '" << to_original_string(stash_inst) << "')\n" << end(); 232 } 233 } 234 } @@ -306,7 +306,7 @@ if ('onhashchange' in window) { 241 vector<recipe_ordinal> result; 242 for (int i = 0; i < SIZE(variants); ++i) { 243 if (variants.at(i) == -1) continue; -244 trace(9992, "transform") << "checking variant (strict) " << i << ": " << header_label(variants.at(i)) << end(); +244 trace(9992, "transform") << "checking variant (strict) " << i << ": " << header_label(variants.at(i)) << end(); 245 if (all_header_reagents_strictly_match(inst, get(Recipe, variants.at(i)))) 246 result.push_back(variants.at(i)); 247 } @@ -316,14 +316,14 @@ if ('onhashchange' in window) { 251 bool all_header_reagents_strictly_match(const instruction& inst, const recipe& variant) { 252 for (int i = 0; i < min(SIZE(inst.ingredients), SIZE(variant.ingredients)); ++i) { 253 if (!types_strictly_match(variant.ingredients.at(i), inst.ingredients.at(i))) { -254 trace(9993, "transform") << "strict match failed: ingredient " << i << end(); +254 trace(9993, "transform") << "strict match failed: ingredient " << i << end(); 255 return false; 256 } 257 } 258 for (int i = 0; i < min(SIZE(inst.products), SIZE(variant.products)); ++i) { 259 if (is_dummy(inst.products.at(i))) continue; 260 if (!types_strictly_match(variant.products.at(i), inst.products.at(i))) { -261 trace(9993, "transform") << "strict match failed: product " << i << end(); +261 trace(9993, "transform") << "strict match failed: product " << i << end(); 262 return false; 263 } 264 } @@ -335,7 +335,7 @@ if ('onhashchange' in window) { 270 vector<recipe_ordinal> result; 271 for (int i = 0; i < SIZE(variants); ++i) { 272 if (variants.at(i) == -1) continue; -273 trace(9992, "transform") << "checking variant " << i << ": " << header_label(variants.at(i)) << end(); +273 trace(9992, "transform") << "checking variant " << i << ": " << header_label(variants.at(i)) << end(); 274 if (all_header_reagents_match(inst, get(Recipe, variants.at(i)))) 275 result.push_back(variants.at(i)); 276 } @@ -345,14 +345,14 @@ if ('onhashchange' in window) { 280 bool all_header_reagents_match(const instruction& inst, const recipe& variant) { 281 for (int i = 0; i < min(SIZE(inst.ingredients), SIZE(variant.ingredients)); ++i) { 282 if (!types_match(variant.ingredients.at(i), inst.ingredients.at(i))) { -283 trace(9993, "transform") << "match failed: ingredient " << i << end(); +283 trace(9993, "transform") << "match failed: ingredient " << i << end(); 284 return false; 285 } 286 } 287 for (int i = 0; i < min(SIZE(variant.products), SIZE(inst.products)); ++i) { 288 if (is_dummy(inst.products.at(i))) continue; 289 if (!types_match(variant.products.at(i), inst.products.at(i))) { -290 trace(9993, "transform") << "match failed: product " << i << end(); +290 trace(9993, "transform") << "match failed: product " << i << end(); 291 return false; 292 } 293 } -- cgit 1.4.1-2-gfad0