diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-29 12:09:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-29 12:09:23 -0700 |
commit | cdd6fd09673faa6ed72d1b7f52333c12100df049 (patch) | |
tree | 1b6355df38822a1daaf4e91df65dce556097d9bc /043new.cc | |
parent | d9025124a102fb7b421699e4e0463a3c62b261cb (diff) | |
download | mu-cdd6fd09673faa6ed72d1b7f52333c12100df049.tar.gz |
2313
Diffstat (limited to '043new.cc')
-rw-r--r-- | 043new.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/043new.cc b/043new.cc index 05c64009..9c76adfb 100644 --- a/043new.cc +++ b/043new.cc @@ -22,7 +22,7 @@ long long int alloc, alloc_max; alloc = Memory_allocated_until; Memory_allocated_until += Initial_memory_per_routine; alloc_max = Memory_allocated_until; -trace(Primitive_recipe_depth, "new") << "routine allocated memory from " << alloc << " to " << alloc_max << end(); +trace(9999, "new") << "routine allocated memory from " << alloc << " to " << alloc_max << end(); //:: First handle 'type' operands. @@ -40,7 +40,7 @@ if (inst.operation == Recipe_ordinal["new"]) { if (Type_ordinal.find(inst.ingredients.at(0).name) == Type_ordinal.end()) raise_error << maybe(Recipe[r].name) << "unknown type " << inst.ingredients.at(0).name << '\n' << end(); inst.ingredients.at(0).set_value(Type_ordinal[inst.ingredients.at(0).name]); - trace(Primitive_recipe_depth, "new") << inst.ingredients.at(0).name << " -> " << inst.ingredients.at(0).name << end(); + trace(9999, "new") << inst.ingredients.at(0).name << " -> " << inst.ingredients.at(0).name << end(); end_new_transform:; } @@ -75,7 +75,7 @@ case NEW: { if (SIZE(current_instruction().ingredients) > 1) { // array array_length = ingredients.at(1).at(0); - trace(Primitive_recipe_depth, "mem") << "array size is " << array_length << end(); + trace(9999, "mem") << "array size is " << array_length << end(); size = array_length*size_of(type) + /*space for length*/1; } else { @@ -90,7 +90,7 @@ case NEW: { // really crappy at the moment ensure_space(size); const long long int result = Current_routine->alloc; - trace(Primitive_recipe_depth, "mem") << "new alloc: " << result << end(); + trace(9999, "mem") << "new alloc: " << result << end(); // save result products.resize(1); products.at(0).push_back(result); @@ -132,7 +132,7 @@ void ensure_space(long long int size) { Current_routine->alloc = Memory_allocated_until; Memory_allocated_until += Initial_memory_per_routine; Current_routine->alloc_max = Memory_allocated_until; - trace(Primitive_recipe_depth, "new") << "routine allocated memory from " << Current_routine->alloc << " to " << Current_routine->alloc_max << end(); + trace(9999, "new") << "routine allocated memory from " << Current_routine->alloc << " to " << Current_routine->alloc_max << end(); } } |