зеркало из https://github.com/mozilla/gecko-dev.git
Bug 964016 - Part 3: Replace JS_NEVER_INLINE with MOZ_NEVER_INLINE. r=luke
This commit is contained in:
Родитель
1b2b307e88
Коммит
a56cc4a28b
|
@ -72,7 +72,7 @@ class InlineMap
|
|||
return true;
|
||||
}
|
||||
|
||||
JS_NEVER_INLINE
|
||||
MOZ_NEVER_INLINE
|
||||
bool switchAndAdd(const K &key, const V &value) {
|
||||
if (!switchToMap())
|
||||
return false;
|
||||
|
|
|
@ -4823,7 +4823,7 @@ EmitFor(ExclusiveContext *cx, BytecodeEmitter *bce, ParseNode *pn, ptrdiff_t top
|
|||
return EmitNormalFor(cx, bce, pn, top);
|
||||
}
|
||||
|
||||
static JS_NEVER_INLINE bool
|
||||
static MOZ_NEVER_INLINE bool
|
||||
EmitFunc(ExclusiveContext *cx, BytecodeEmitter *bce, ParseNode *pn)
|
||||
{
|
||||
FunctionBox *funbox = pn->pn_funbox;
|
||||
|
|
|
@ -295,7 +295,7 @@ MarkRangeConservativelyAndSkipIon(JSTracer *trc, JSRuntime *rt, const uintptr_t
|
|||
MarkRangeConservatively(trc, i, end);
|
||||
}
|
||||
|
||||
static JS_NEVER_INLINE void
|
||||
static MOZ_NEVER_INLINE void
|
||||
MarkConservativeStackRoots(JSTracer *trc, bool useSavedRoots)
|
||||
{
|
||||
JSRuntime *rt = trc->runtime;
|
||||
|
@ -359,7 +359,7 @@ js::MarkStackRangeConservatively(JSTracer *trc, Value *beginv, Value *endv)
|
|||
#endif
|
||||
}
|
||||
|
||||
JS_NEVER_INLINE void
|
||||
MOZ_NEVER_INLINE void
|
||||
ConservativeGCData::recordStackTop()
|
||||
{
|
||||
/* Update the native stack pointer if it points to a bigger stack. */
|
||||
|
|
|
@ -47,7 +47,7 @@ struct Kennel {
|
|||
// A function for allocating a Kennel and a barker. Only allocating
|
||||
// PersistentRooteds on the heap, and in this function, helps ensure that the
|
||||
// conservative GC doesn't find stray references to the barker. Ugh.
|
||||
JS_NEVER_INLINE static Kennel *
|
||||
MOZ_NEVER_INLINE static Kennel *
|
||||
Allocate(JSContext *cx)
|
||||
{
|
||||
RootedObject barker(cx, JS_NewObject(cx, &BarkWhenTracedClass::class_, JS::NullPtr(), JS::NullPtr()));
|
||||
|
|
|
@ -39,7 +39,7 @@ BEGIN_TEST(testRegExpInstanceProperties)
|
|||
* Do this all in a nested function evaluation so as (hopefully) not to get
|
||||
* screwed up by the conservative stack scanner when GCing.
|
||||
*/
|
||||
JS_NEVER_INLINE bool helper(JSObject *regexpProto)
|
||||
MOZ_NEVER_INLINE bool helper(JSObject *regexpProto)
|
||||
{
|
||||
CHECK(!regexpProto->inDictionaryMode());
|
||||
|
||||
|
|
|
@ -4738,7 +4738,7 @@ JS_DecompileFunctionBody(JSContext *cx, HandleFunction fun, unsigned indent)
|
|||
return FunctionToString(cx, fun, true, !(indent & JS_DONT_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
JS_NEVER_INLINE JS_PUBLIC_API(bool)
|
||||
MOZ_NEVER_INLINE JS_PUBLIC_API(bool)
|
||||
JS_ExecuteScript(JSContext *cx, JSObject *objArg, JSScript *scriptArg, jsval *rval)
|
||||
{
|
||||
RootedObject obj(cx, objArg);
|
||||
|
@ -5967,7 +5967,7 @@ JS_GetCurrentThread()
|
|||
#endif
|
||||
}
|
||||
|
||||
extern JS_NEVER_INLINE JS_PUBLIC_API(void)
|
||||
extern MOZ_NEVER_INLINE JS_PUBLIC_API(void)
|
||||
JS_AbortIfWrongThread(JSRuntime *rt)
|
||||
{
|
||||
if (!CurrentThreadCanAccessRuntime(rt))
|
||||
|
|
|
@ -4746,7 +4746,7 @@ BudgetIncrementalGC(JSRuntime *rt, int64_t *budget)
|
|||
* Returns true if we "reset" an existing incremental GC, which would force us
|
||||
* to run another cycle.
|
||||
*/
|
||||
static JS_NEVER_INLINE bool
|
||||
static MOZ_NEVER_INLINE bool
|
||||
GCCycle(JSRuntime *rt, bool incremental, int64_t budget,
|
||||
JSGCInvocationKind gckind, JS::gcreason::Reason reason)
|
||||
{
|
||||
|
|
|
@ -98,10 +98,6 @@
|
|||
#define JS_ALWAYS_INLINE MOZ_ALWAYS_INLINE
|
||||
#endif
|
||||
|
||||
#ifndef JS_NEVER_INLINE
|
||||
#define JS_NEVER_INLINE MOZ_NEVER_INLINE
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
** MACROS: JS_BEGIN_MACRO
|
||||
** JS_END_MACRO
|
||||
|
|
|
@ -63,11 +63,11 @@ using mozilla::PodCopy;
|
|||
/*
|
||||
* Note: when Clang 3.2 (32-bit) inlines the two functions below in Interpret,
|
||||
* the conservative stack scanner leaks a ton of memory and this negatively
|
||||
* influences performance. The JS_NEVER_INLINE is a temporary workaround until
|
||||
* influences performance. The MOZ_NEVER_INLINE is a temporary workaround until
|
||||
* we can remove the conservative scanner. See bug 849526 for more info.
|
||||
*/
|
||||
#if defined(__clang__) && defined(JS_CPU_X86)
|
||||
static JS_NEVER_INLINE bool
|
||||
static MOZ_NEVER_INLINE bool
|
||||
#else
|
||||
static bool
|
||||
#endif
|
||||
|
@ -78,7 +78,7 @@ ToBooleanOp(const FrameRegs ®s)
|
|||
|
||||
template <bool Eq>
|
||||
#if defined(__clang__) && defined(JS_CPU_X86)
|
||||
static JS_NEVER_INLINE bool
|
||||
static MOZ_NEVER_INLINE bool
|
||||
#else
|
||||
static bool
|
||||
#endif
|
||||
|
@ -366,7 +366,7 @@ js::ValueToCallable(JSContext *cx, HandleValue v, int numToSkip, MaybeConstruct
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
static JS_NEVER_INLINE bool
|
||||
static MOZ_NEVER_INLINE bool
|
||||
Interpret(JSContext *cx, RunState &state);
|
||||
|
||||
StackFrame *
|
||||
|
@ -1315,7 +1315,7 @@ SetObjectElementOperation(JSContext *cx, Handle<JSObject*> obj, HandleId id, con
|
|||
return JSObject::setGeneric(cx, obj, obj, id, &tmp, strict);
|
||||
}
|
||||
|
||||
static JS_NEVER_INLINE bool
|
||||
static MOZ_NEVER_INLINE bool
|
||||
Interpret(JSContext *cx, RunState &state)
|
||||
{
|
||||
/*
|
||||
|
|
|
@ -169,7 +169,7 @@ struct ConservativeGCData
|
|||
#endif
|
||||
}
|
||||
|
||||
JS_NEVER_INLINE void recordStackTop();
|
||||
MOZ_NEVER_INLINE void recordStackTop();
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
void updateForRequestEnd() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче