mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 910782 - SpiderMonkey: Eliminate a copy which is no longer hot. r=luke
This commit is contained in:
parent
46ea6ac163
commit
fb65c72deb
@ -1301,8 +1301,7 @@ Interpret(JSContext *cx, RunState &state)
|
||||
|
||||
InterpreterActivation activation(cx, entryFrame, regs, &switchMask);
|
||||
|
||||
/* Copy in hot values that change infrequently. */
|
||||
JSRuntime *const rt = cx->runtime();
|
||||
/* The script is used frequently, so keep a local copy. */
|
||||
RootedScript script(cx);
|
||||
SET_SCRIPT(regs.fp()->script());
|
||||
|
||||
@ -1378,7 +1377,7 @@ Interpret(JSContext *cx, RunState &state)
|
||||
int32_t len;
|
||||
len = 0;
|
||||
|
||||
if (rt->profilingScripts || cx->runtime()->debugHooks.interruptHook)
|
||||
if (cx->runtime()->profilingScripts || cx->runtime()->debugHooks.interruptHook)
|
||||
switchMask = EnableInterruptsPseudoOpcode; /* Enable interrupts. */
|
||||
|
||||
advanceAndDoOp:
|
||||
@ -2251,7 +2250,7 @@ END_CASE(JSOP_TOID)
|
||||
CASE(JSOP_TYPEOFEXPR)
|
||||
CASE(JSOP_TYPEOF)
|
||||
{
|
||||
regs.sp[-1].setString(TypeOfOperation(regs.sp[-1], rt));
|
||||
regs.sp[-1].setString(TypeOfOperation(regs.sp[-1], cx->runtime()));
|
||||
}
|
||||
END_CASE(JSOP_TYPEOF)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user