Small style fixes no bu r=lumpy

This commit is contained in:
Tom Schuster 2011-10-22 16:30:28 +02:00
parent 18fe4519ee
commit 5affe6b9bf
2 changed files with 10 additions and 10 deletions

View File

@ -186,7 +186,7 @@ MarkCrossCompartmentObject(JSTracer *trc, JSObject &obj, const char *name)
void
MarkObjectWithPrinter(JSTracer *trc, JSObject &obj, JSTraceNamePrinter printer,
const void *arg, size_t index)
const void *arg, size_t index)
{
JS_ASSERT(trc);
JS_ASSERT(&obj);
@ -996,19 +996,19 @@ JS_TraceChildren(JSTracer *trc, void *thing, JSGCTraceKind kind)
{
switch (kind) {
case JSTRACE_OBJECT:
MarkChildren(trc, static_cast<JSObject *>(thing));
MarkChildren(trc, static_cast<JSObject *>(thing));
break;
case JSTRACE_STRING:
MarkChildren(trc, static_cast<JSString *>(thing));
MarkChildren(trc, static_cast<JSString *>(thing));
break;
case JSTRACE_SCRIPT:
MarkChildren(trc, static_cast<JSScript *>(thing));
MarkChildren(trc, static_cast<JSScript *>(thing));
break;
case JSTRACE_SHAPE:
MarkChildren(trc, static_cast<Shape *>(thing));
MarkChildren(trc, static_cast<Shape *>(thing));
break;
case JSTRACE_TYPE_OBJECT:

View File

@ -56,16 +56,16 @@ class CallObject : public ::JSObject
* JSSLOT_CALL_ARGUMENTS - arguments object for non-strict mode eval stack
* frames (not valid for strict mode eval frames)
*/
static const uint32 CALLEE_SLOT = 0;
static const uint32 ARGUMENTS_SLOT = 1;
static const uintN CALLEE_SLOT = 0;
static const uintN ARGUMENTS_SLOT = 1;
public:
static const uintN RESERVED_SLOTS = 2;
public:
/* Create a CallObject for the given callee function. */
static CallObject *
create(JSContext *cx, JSScript *script, JSObject &scopeChain, JSObject *callee);
static const uint32 RESERVED_SLOTS = 2;
/* True if this is for a strict mode eval frame or for a function call. */
inline bool isForEval() const;