diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 20:05:52 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 20:17:07 -0800 |
commit | 65c905fe84c0e8b7acd6839469d7bb9727f0632b (patch) | |
tree | b9af97e9191b82675713cda3874677ee81b3bc9b /037new.cc | |
parent | 343bc5359b93d4b589544671804f11d42f67d694 (diff) | |
download | mu-65c905fe84c0e8b7acd6839469d7bb9727f0632b.tar.gz |
2678
Start using type names from the type tree rather than the property tree in most places. Hopefully the only occurrences of 'properties.at(0).second' left are ones where we're managing it. Next we can stop writing to it.
Diffstat (limited to '037new.cc')
-rw-r--r-- | 037new.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/037new.cc b/037new.cc index fdda83fb..c7453ae5 100644 --- a/037new.cc +++ b/037new.cc @@ -34,13 +34,13 @@ type_ordinal shared = put(Type_ordinal, "shared", Next_type_ordinal++); get_or_insert(Type, shared).name = "shared"; :(before "End Drop Address In lookup_memory(x)") -if (x.properties.at(0).second->value == "shared") { +if (x.type->name == "shared") { trace(9999, "mem") << "skipping refcount at " << x.value << end(); x.set_value(x.value+1); // skip refcount drop_from_type(x, "shared"); } :(before "End Drop Address In canonize_type(r)") -if (r.properties.at(0).second->value == "shared") { +if (r.type->name == "shared") { drop_from_type(r, "shared"); } @@ -655,5 +655,5 @@ string read_mu_string(long long int address) { bool is_mu_type_literal(reagent r) { //? if (!r.properties.empty()) //? dump_property(r.properties.at(0).second, cerr); - return is_literal(r) && !r.properties.empty() && r.properties.at(0).second && r.properties.at(0).second->value == "type"; + return is_literal(r) && !r.properties.empty() && r.properties.at(0).second && r.type->name == "type"; } |