Address bug 684410 review comments, r=luke.
authorBrian Hackett <bhackett1024@gmail.com>
Tue, 08 Nov 2011 12:11:05 -0800
changeset 81293 2b440868fa72c4903a40eaaf0174b244faed9896
parent 81292 1210706b4576853365358f6b3664f996294d71d6
child 81294 2f06036dae89aa58dfa5736ed7154d5e9db7fa27
push id21565
push userbhackett@mozilla.com
push dateSat, 03 Dec 2011 20:25:52 +0000
treeherdermozilla-central@13afcd4c097c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs684410
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Address bug 684410 review comments, r=luke.
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -5716,17 +5716,17 @@ JSCompartment::NewTypeObjectEntry::match
 bool
 JSObject::hasNewType(TypeObject *type)
 {
     JSCompartment::NewTypeObjectSet &table = compartment()->newTypeObjects;
 
     if (!table.initialized())
         return false;
 
-    JSCompartment::NewTypeObjectSet::AddPtr p = table.lookupForAdd(this);
+    JSCompartment::NewTypeObjectSet::Ptr p = table.lookup(this);
     return p && *p == type;
 }
 #endif /* DEBUG */
 
 TypeObject *
 JSObject::getNewType(JSContext *cx, JSFunction *fun, bool markUnknown)
 {
     if (!setDelegate(cx))