From 1c7dc7ec8c3fbce482041e557a81bdc9210ee6d1 Mon Sep 17 00:00:00 2001 From: Igor Bukanov Date: Sun, 26 Jul 2009 08:54:54 +0200 Subject: [PATCH] bug 505460 - followup to fix misspellings --- js/src/jsapi.cpp | 2 +- js/src/jsfun.cpp | 8 ++++---- js/src/jsfun.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index b812687f0b5..28debae7b10 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -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; } diff --git a/js/src/jsfun.cpp b/js/src/jsfun.cpp index b31006e29af..c3076d055a0 100644 --- a/js/src/jsfun.cpp +++ b/js/src/jsfun.cpp @@ -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; } diff --git a/js/src/jsfun.h b/js/src/jsfun.h index 55d4fe04bd5..6be8fb2a097 100644 --- a/js/src/jsfun.h +++ b/js/src/jsfun.h @@ -180,7 +180,7 @@ struct JSFunction { return countLocalNames() != 0; } - uint32 countInterpretedReserveSlots() const; + uint32 countInterpretedReservedSlots() const; }; /*