зеркало из https://github.com/mozilla/gecko-dev.git
Bug 576363 - Qualify accesses to dependent base in js. r=nnethercote.
--HG-- extra : convert_revision : 5c5cacef53d6a42f6226636c0fa71c13e428b52f
This commit is contained in:
Родитель
61bc026152
Коммит
90226a86a3
|
@ -1581,10 +1581,10 @@ namespace nanojit
|
||||||
CountMap(Allocator& alloc) : HashMap<Key, int>(alloc) {}
|
CountMap(Allocator& alloc) : HashMap<Key, int>(alloc) {}
|
||||||
int add(Key k) {
|
int add(Key k) {
|
||||||
int c = 1;
|
int c = 1;
|
||||||
if (containsKey(k)) {
|
if (this->containsKey(k)) {
|
||||||
c = 1+get(k);
|
c = 1+this->get(k);
|
||||||
}
|
}
|
||||||
put(k,c);
|
this->put(k,c);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче