Bug 576363 - Qualify accesses to dependent base in js. r=nnethercote.
authorEli Friedman <sharparrow1@yahoo.com>
Sun, 04 Jul 2010 19:12:15 -0700
changeset 47590 adce1efdf651eb1283bdb0063d95916d7fcecbdd
parent 47589 9749ef55a16bbee5ad59ca37f70d887b8b6222c6
child 47591 82f9e3bdf5f18f8e26cff373f0ea459d1db0ad32
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersnnethercote
bugs576363
milestone2.0b2pre
Bug 576363 - Qualify accesses to dependent base in js. r=nnethercote.
js/src/nanojit/LIR.h
--- a/js/src/nanojit/LIR.h
+++ b/js/src/nanojit/LIR.h
@@ -1576,20 +1576,20 @@ namespace nanojit
         Allocator& alloc;
 
         template <class Key>
         class CountMap: public HashMap<Key, int> {
         public:
             CountMap(Allocator& alloc) : HashMap<Key, int>(alloc) {}
             int add(Key k) {
                 int c = 1;
-                if (containsKey(k)) {
-                    c = 1+get(k);
+                if (this->containsKey(k)) {
+                    c = 1+this->get(k);
                 }
-                put(k,c);
+                this->put(k,c);
                 return c;
             }
         };
 
         CountMap<int> lircounts;
         CountMap<const CallInfo *> funccounts;
         CountMap<const char *> namecounts;