Fixed GCC complaints (recursion fallout 3, yay).

This commit is contained in:
David Anderson 2009-09-30 19:58:54 -04:00
parent daf2e31aac
commit 560cc2ef8c
3 changed files with 5 additions and 5 deletions

View File

@ -167,7 +167,7 @@ js_TryUnboxInt32(jsval v, int32* i32p)
*i32p = i;
return JS_TRUE;
}
JS_DEFINE_CALLINFO_2(extern, BOOL, js_TryUnboxInt32, JSVAL, INT32PTR, 1, 1);
JS_DEFINE_CALLINFO_2(extern, BOOL, js_TryUnboxInt32, JSVAL, INT32PTR, 1, 1)
int32 FASTCALL
js_DoubleToInt32(jsdouble d)

View File

@ -213,7 +213,7 @@ TraceRecorder::upRecursion()
exit);
}
debug_only_printf(LC_TMRecorder, "guardUpRecursive fragment->root=%p fi=%p\n", fragment->root, fi);
debug_only_printf(LC_TMRecorder, "guardUpRecursive fragment->root=%p fi=%p\n", (void*)fragment->root, (void*)fi);
/* Guard that the FrameInfo above is the same FrameInfo pointer. */
VMSideExit* exit = snapshot(RECURSIVE_MISMATCH_EXIT);
@ -486,7 +486,7 @@ TraceRecorder::slurpDownFrames(jsbytecode* return_pc)
exit->exitType = UNSTABLE_LOOP_EXIT;
else
exit->exitType = RECURSIVE_UNLINKED_EXIT;
debug_only_printf(LC_TMTreeVis, "TREEVIS CHANGEEXIT EXIT=%p TYPE=%s\n", exit,
debug_only_printf(LC_TMTreeVis, "TREEVIS CHANGEEXIT EXIT=%p TYPE=%s\n", (void*)exit,
getExitName(exit->exitType));
JS_ASSERT(treeInfo->recursion >= Recursion_Unwinds);
return closeLoop(slotMap, exit);

View File

@ -6627,7 +6627,7 @@ LeaveTree(InterpState& state, VMSideExit* lr)
js_FramePCToLineNumber(cx, fp),
FramePCOffset(fp),
slots,
*callstack);
(void*)*callstack);
#endif
/*
* Keep track of the additional frames we put on the interpreter stack
@ -12078,7 +12078,7 @@ TraceRecorder::interpretedFunctionCall(jsval& fval, JSFunction* fun, uintN argc,
lir->insStorei(INS_CONSTPTR(fi), lirbuf->rp, callDepth * sizeof(FrameInfo*));
#if defined JS_JIT_SPEW
debug_only_printf(LC_TMTracer, "iFC frameinfo=%p, stack=%d, map=", fi,
debug_only_printf(LC_TMTracer, "iFC frameinfo=%p, stack=%d, map=", (void*)fi,
fi->callerHeight);
for (unsigned i = 0; i < fi->callerHeight; i++)
debug_only_printf(LC_TMTracer, "%c", typeChar[fi->get_typemap()[i]]);