Bug 964016 - Part 2: Replace JS_UNLIKELY with MOZ_UNLIKELY. r=luke
This commit is contained in:
@@ -1657,7 +1657,7 @@ js_InferFlags(JSContext *cx, unsigned defaultFlags)
|
||||
JSObject::nonNativeSetProperty(JSContext *cx, HandleObject obj,
|
||||
HandleId id, MutableHandleValue vp, bool strict)
|
||||
{
|
||||
if (JS_UNLIKELY(obj->watched())) {
|
||||
if (MOZ_UNLIKELY(obj->watched())) {
|
||||
WatchpointMap *wpmap = cx->compartment()->watchpointMap;
|
||||
if (wpmap && !wpmap->triggerWatchpoint(cx, obj, id, vp))
|
||||
return false;
|
||||
@@ -1669,7 +1669,7 @@ JSObject::nonNativeSetProperty(JSContext *cx, HandleObject obj,
|
||||
JSObject::nonNativeSetElement(JSContext *cx, HandleObject obj,
|
||||
uint32_t index, MutableHandleValue vp, bool strict)
|
||||
{
|
||||
if (JS_UNLIKELY(obj->watched())) {
|
||||
if (MOZ_UNLIKELY(obj->watched())) {
|
||||
RootedId id(cx);
|
||||
if (!IndexToId(cx, index, &id))
|
||||
return false;
|
||||
@@ -4874,7 +4874,7 @@ baseops::SetPropertyHelper(typename ExecutionModeTraits<mode>::ContextType cxArg
|
||||
JS_ASSERT(cxArg->isThreadLocal(obj));
|
||||
JS_ASSERT((defineHow & ~DNP_UNQUALIFIED) == 0);
|
||||
|
||||
if (JS_UNLIKELY(obj->watched())) {
|
||||
if (MOZ_UNLIKELY(obj->watched())) {
|
||||
if (mode == ParallelExecution)
|
||||
return false;
|
||||
|
||||
@@ -5924,7 +5924,7 @@ JSObject::addSizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf, JS::Objects
|
||||
|
||||
if (hasDynamicElements()) {
|
||||
js::ObjectElements *elements = getElementsHeader();
|
||||
if (JS_UNLIKELY(elements->isAsmJSArrayBuffer())) {
|
||||
if (MOZ_UNLIKELY(elements->isAsmJSArrayBuffer())) {
|
||||
#if defined (JS_CPU_X64)
|
||||
// On x64, ArrayBufferObject::prepareForAsmJS switches the
|
||||
// ArrayBufferObject to use mmap'd storage.
|
||||
|
||||
Reference in New Issue
Block a user