Disable PGO for ObjectImpl::nativeLookup (bug 844580, r=billm).

This commit is contained in:
David Anderson 2013-03-12 11:32:06 -07:00
parent 019596e0ab
commit 289f7a0ee6

View File

@ -282,6 +282,11 @@ js::ObjectImpl::slotInRange(uint32_t slot, SentinelAllowed sentinel) const
}
#endif /* DEBUG */
// See bug 844580.
#if defined(_MSC_VER)
# pragma optimize("g", off)
#endif
#if defined(_MSC_VER) && _MSC_VER >= 1500
/*
* Work around a compiler bug in MSVC9 and above, where inlining this function
@ -298,6 +303,10 @@ js::ObjectImpl::nativeLookup(JSContext *cx, jsid id)
return Shape::search(cx, lastProperty(), id, &spp);
}
#if defined(_MSC_VER)
# pragma optimize("", on)
#endif
void
js::ObjectImpl::markChildren(JSTracer *trc)
{