Fix warnings, no bug. r=dvander

This commit is contained in:
Brian Hackett 2012-01-18 18:08:22 -08:00
parent 43d0cd88c2
commit d11ecace5f
3 changed files with 6 additions and 2 deletions

View File

@ -697,7 +697,7 @@ stubs::ScriptProbeOnlyEpilogue(VMFrame &f)
void JS_FASTCALL
stubs::CrossChunkShim(VMFrame &f, void *edge_)
{
CrossChunkEdge *edge = (CrossChunkEdge *) edge_;
DebugOnly<CrossChunkEdge*> edge = (CrossChunkEdge *) edge_;
mjit::ExpandInlineFrames(f.cx->compartment);

View File

@ -749,6 +749,8 @@ struct ChunkDescriptor
/* Optional compiled code for the chunk. */
JITChunk *chunk;
ChunkDescriptor() { PodZero(this); }
};
/* Jump or fallthrough edge in the bytecode which crosses a chunk boundary. */
@ -775,6 +777,8 @@ struct CrossChunkEdge
* the source is compiled but not the target.
*/
void *shimLabel;
CrossChunkEdge() { PodZero(this); }
};
struct JITScript

View File

@ -1569,7 +1569,7 @@ stubs::TableSwitch(VMFrame &f, jsbytecode *origPc)
{
jsbytecode * const originalPC = origPc;
JSOp op = JSOp(*originalPC);
DebugOnly<JSOp> op = JSOp(*originalPC);
JS_ASSERT(op == JSOP_TABLESWITCH);
uint32_t jumpOffset = GET_JUMP_OFFSET(originalPC);