Bug 1120960 - Remove NativeObject::lookup workaround for MSVC bug. r=Waldo

This commit is contained in:
Jan de Mooij 2015-01-14 10:13:28 +01:00
parent 98fb736d35
commit 845df2597c
2 changed files with 1 additions and 10 deletions

View File

@ -270,9 +270,8 @@ CanEnterBaselineJIT(JSContext *cx, HandleScript script, InterpreterFrame *osrFra
return Method_Compiled;
// Check script warm-up counter.
if (script->incWarmUpCounter() <= js_JitOptions.baselineWarmUpThreshold) {
if (script->incWarmUpCounter() <= js_JitOptions.baselineWarmUpThreshold)
return Method_Skipped;
}
if (script->isCallsiteClone()) {
// Ensure the original function is compiled too, so that bailouts from

View File

@ -270,14 +270,6 @@ js::NativeObject::slotInRange(uint32_t slot, SentinelAllowed sentinel) const
}
#endif /* DEBUG */
#if defined(_MSC_VER)
/*
* Work around a compiler bug in MSVC9 and above, where inlining this function
* causes stack pointer offsets to go awry and spp to refer to something higher
* up the stack.
*/
MOZ_NEVER_INLINE
#endif
Shape *
js::NativeObject::lookup(ExclusiveContext *cx, jsid id)
{