diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-12 16:38:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-12 16:38:59 -0700 |
commit | 8dede22ec64fbbe59ded852592d65efb630151fe (patch) | |
tree | 4ae0272dd59b4733a91b3cd3df085ecda58da005 /078hash.cc | |
parent | ac8acc7b05774ac5777d5a03311728fb14d3f217 (diff) | |
download | mu-8dede22ec64fbbe59ded852592d65efb630151fe.tar.gz |
2955 - back to more refcount housekeeping
Update refcounts of address elements when copying containers. Still lots to do; see todo list at end of 036refcount.cc.
Diffstat (limited to '078hash.cc')
-rw-r--r-- | 078hash.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/078hash.cc b/078hash.cc index 6577373d..ce63a87d 100644 --- a/078hash.cc +++ b/078hash.cc @@ -88,12 +88,6 @@ size_t hash_mu_array(size_t h, const reagent& r) { return h; } -bool is_mu_container(const reagent& r) { - if (r.type->value == 0) return false; - type_info& info = get(Type, r.type->value); - return info.kind == CONTAINER; -} - size_t hash_mu_container(size_t h, const reagent& r) { assert(r.type->value); type_info& info = get(Type, r.type->value); @@ -110,12 +104,6 @@ size_t hash_mu_container(size_t h, const reagent& r) { return h; } -bool is_mu_exclusive_container(const reagent& r) { - if (r.type->value == 0) return false; - type_info& info = get(Type, r.type->value); - return info.kind == EXCLUSIVE_CONTAINER; -} - size_t hash_mu_exclusive_container(size_t h, const reagent& r) { assert(r.type->value); int tag = get(Memory, r.value); |