mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
bug 505460 - followup to fix misspellings
This commit is contained in:
parent
4ea30adb7c
commit
40ed24ed94
@ -4355,7 +4355,7 @@ JS_CloneFunctionObject(JSContext *cx, JSObject *funobj, JSObject *parent)
|
||||
if (FUN_FLAT_CLOSURE(fun)) {
|
||||
JS_ASSERT(funobj->dslots);
|
||||
if (!js_EnsureReservedSlots(cx, clone,
|
||||
fun->countInterpretedReserveSlots())) {
|
||||
fun->countInterpretedReservedSlots())) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1838,7 +1838,7 @@ fun_finalize(JSContext *cx, JSObject *obj)
|
||||
}
|
||||
|
||||
uint32
|
||||
JSFunction::countInterpretedReserveSlots() const
|
||||
JSFunction::countInterpretedReservedSlots() const
|
||||
{
|
||||
JS_ASSERT(FUN_INTERPRETED(this));
|
||||
|
||||
@ -1860,7 +1860,7 @@ fun_reserveSlots(JSContext *cx, JSObject *obj)
|
||||
*/
|
||||
JSFunction *fun = (JSFunction *) JS_GetPrivate(cx, obj);
|
||||
return (fun && FUN_INTERPRETED(fun))
|
||||
? fun->countInterpretedReserveSlots()
|
||||
? fun->countInterpretedReservedSlots()
|
||||
: 0;
|
||||
}
|
||||
|
||||
@ -2505,7 +2505,7 @@ js_AllocFlatClosure(JSContext *cx, JSFunction *fun, JSObject *scopeChain)
|
||||
: 0) == fun->u.i.nupvars);
|
||||
|
||||
/*
|
||||
* Assert that fun->countInterpretedReserveSlots returns 0 when
|
||||
* Assert that fun->countInterpretedReservedSlots returns 0 when
|
||||
* fun->u.i.nupvars is zero.
|
||||
*/
|
||||
JS_ASSERT(fun->u.i.script->regexpsOffset == 0);
|
||||
@ -2514,7 +2514,7 @@ js_AllocFlatClosure(JSContext *cx, JSFunction *fun, JSObject *scopeChain)
|
||||
if (!closure || fun->u.i.nupvars == 0)
|
||||
return closure;
|
||||
if (!js_EnsureReservedSlots(cx, closure,
|
||||
fun->countInterpretedReserveSlots())) {
|
||||
fun->countInterpretedReservedSlots())) {
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ struct JSFunction {
|
||||
return countLocalNames() != 0;
|
||||
}
|
||||
|
||||
uint32 countInterpretedReserveSlots() const;
|
||||
uint32 countInterpretedReservedSlots() const;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user