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/043space.cc.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'html/043space.cc.html') diff --git a/html/043space.cc.html b/html/043space.cc.html index 2cdff102..657bfe46 100644 --- a/html/043space.cc.html +++ b/html/043space.cc.html @@ -126,7 +126,7 @@ if ('onhashchange' in window) { 62 if (is_raw(x) || is_dummy(x)) return; 63 if (x.name == "default-space") return; 64 if (!x.initialized) - 65 raise << to_original_string(current_instruction()) << ": reagent not initialized: '" << x.original_string << "'\n" << end(); + 65 raise << to_original_string(current_instruction()) << ": reagent not initialized: '" << x.original_string << "'\n" << end(); 66 x.set_value(address(x.value, space_base(x))); 67 x.properties.push_back(pair<string, string_tree*>("raw", NULL)); 68 assert(is_raw(x)); @@ -143,7 +143,7 @@ if ('onhashchange' in window) { 79 int size = get_or_insert(Memory, base); 80 if (offset >= size) { 81 // todo: test - 82 raise << "location " << offset << " is out of bounds " << size << " at " << base << '\n' << end(); + 82 raise << "location " << offset << " is out of bounds " << size << " at " << base << '\n' << end(); 83 return 0; 84 } 85 return base + /*skip length*/1 + offset; @@ -154,7 +154,7 @@ if ('onhashchange' in window) { 90 :(after "Begin Preprocess write_memory(x, data)") 91 if (x.name == "default-space") { 92 if (!scalar(data) || !is_space(x)) - 93 raise << maybe(current_recipe_name()) << "'default-space' should be of type address:array:location, but is " << to_string(x.type) << '\n' << end(); + 93 raise << maybe(current_recipe_name()) << "'default-space' should be of type address:array:location, but is " << to_string(x.type) << '\n' << end(); 94 current_call().default_space = data.at(0); 95 return; 96 } @@ -248,12 +248,12 @@ if ('onhashchange' in window) { 184 vector<double> result; 185 result.push_back(Name[get(Recipe_ordinal, current_recipe_name())][""]); 186 if (result.back() == 0) -187 raise << "no space allocated for default-space in recipe " << current_recipe_name() << "; are you using names?\n" << end(); +187 raise << "no space allocated for default-space in recipe " << current_recipe_name() << "; are you using names?\n" << end(); 188 return result; 189 } 190 :(after "Begin Preprocess write_memory(x, data)") 191 if (x.name == "number-of-locals") { -192 raise << maybe(current_recipe_name()) << "can't write to special name 'number-of-locals'\n" << end(); +192 raise << maybe(current_recipe_name()) << "can't write to special name 'number-of-locals'\n" << end(); 193 return; 194 } 195 @@ -311,12 +311,12 @@ if ('onhashchange' in window) { 247 if (has_property(product, "raw")) continue; // tests often want to check such locations after they run 248 if (escaping(product)) continue; 249 // End Checks For Reclaiming Locals -250 trace(9999, "mem") << "clearing " << product.original_string << end(); +250 trace(9999, "mem") << "clearing " << product.original_string << end(); 251 zeros.resize(size_of(product)); 252 write_memory(product, zeros); 253 } 254 } -255 trace(9999, "mem") << "automatically abandoning " << current_call().default_space << end(); +255 trace(9999, "mem") << "automatically abandoning " << current_call().default_space << end(); 256 abandon(current_call().default_space, 257 inst.products.at(0).type->right, 258 /*refcount*/1 + /*array length*/1 + /*number-of-locals*/Name[r][""]); @@ -377,12 +377,12 @@ if ('onhashchange' in window) { 313 314 void rewrite_default_space_instruction(instruction& curr) { 315 if (!curr.ingredients.empty()) -316 raise << to_original_string(curr) << " can't take any ingredients\n" << end(); +316 raise << to_original_string(curr) << " can't take any ingredients\n" << end(); 317 curr.name = "new"; 318 curr.ingredients.push_back(reagent("location:type")); 319 curr.ingredients.push_back(reagent("number-of-locals:literal")); 320 if (!curr.products.empty()) -321 raise << "new-default-space can't take any results\n" << end(); +321 raise << "new-default-space can't take any results\n" << end(); 322 curr.products.push_back(reagent("default-space:space")); 323 } 324 @@ -466,11 +466,11 @@ if ('onhashchange' in window) { 402 // End check_default_space Special-cases 403 // assume recipes with only numeric addresses know what they're doing (usually tests) 404 if (!contains_non_special_name(r)) return; -405 trace(9991, "transform") << "--- check that recipe " << caller.name << " sets default-space" << end(); +405 trace(9991, "transform") << "--- check that recipe " << caller.name << " sets default-space" << end(); 406 if (caller.steps.empty()) return; 407 if (caller.steps.at(0).products.empty() 408 || caller.steps.at(0).products.at(0).name != "default-space") { -409 raise << caller.name << " does not seem to start with default-space or local-scope\n" << end(); +409 raise << caller.name << " does not seem to start with default-space or local-scope\n" << end(); 410 } 411 } 412 :(after "Load Mu Prelude") @@ -482,7 +482,7 @@ if ('onhashchange' in window) { 418 419 :(code) 420 bool contains_non_special_name(const recipe_ordinal r) { -421 for (map<string, int>::iterator p = Name[r].begin(); p != Name[r].end(); ++p) { +421 for (map<string, int>::iterator p = Name[r].begin(); p != Name[r].end(); ++p) { 422 if (p->first.empty()) continue; 423 if (p->first.find("stash_") == 0) continue; // generated by rewrite_stashes_to_text (cross-layer) 424 if (!is_special_name(p->first)) -- cgit 1.4.1-2-gfad0