mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Silence MSVC warnings. no_r=me.
--HG-- extra : rebase_source : edff65eb68b63b90603d552855023a63f2073626
This commit is contained in:
parent
70ed6d9fcd
commit
0889a9533c
@ -145,7 +145,7 @@ CompartmentHasLiveScripts(JSCompartment *comp)
|
||||
JS_FRIEND_API(JSBool)
|
||||
JS_SetDebugModeForCompartment(JSContext *cx, JSCompartment *comp, JSBool debug)
|
||||
{
|
||||
if (comp->debugMode == debug)
|
||||
if (comp->debugMode == !!debug)
|
||||
return JS_TRUE;
|
||||
|
||||
// This should only be called when no scripts are live. It would even be
|
||||
@ -154,7 +154,7 @@ JS_SetDebugModeForCompartment(JSContext *cx, JSCompartment *comp, JSBool debug)
|
||||
JS_ASSERT(!CompartmentHasLiveScripts(comp));
|
||||
|
||||
// All scripts compiled from this point on should be in the requested debugMode.
|
||||
comp->debugMode = debug;
|
||||
comp->debugMode = !!debug;
|
||||
|
||||
// Discard JIT code for any scripts that change debugMode. This function
|
||||
// assumes that 'comp' is in the same thread as 'cx'.
|
||||
|
@ -13802,7 +13802,7 @@ TraceRecorder::interpretedFunctionCall(Value& fval, JSFunction* fun, uintN argc,
|
||||
if (constructing) {
|
||||
LIns* thisobj_ins;
|
||||
CHECK_STATUS(createThis(fval.toObject(), get(&fval), &thisobj_ins));
|
||||
stack(-argc - 1, thisobj_ins);
|
||||
stack(-int(argc) - 1, thisobj_ins);
|
||||
}
|
||||
|
||||
// Generate a type map for the outgoing frame and stash it in the LIR
|
||||
|
Loading…
Reference in New Issue
Block a user