[mq]: cleanup

This commit is contained in:
Kannan Vijayan 2013-02-21 15:55:08 -05:00
parent 9a80135652
commit 623e30b1cf
2 changed files with 4 additions and 4 deletions

View File

@ -3591,7 +3591,7 @@ ICGetName_Scope<NumHops>::Compiler::generateStubCode(MacroAssembler &masm)
Register walker = regs.takeAny();
Register scratch = regs.takeAny();
for (int index = 0; index < NumHops + 1; index++) {
for (size_t index = 0; index < NumHops + 1; index++) {
Register scope = index ? walker : obj;
// Shape guard.
@ -4824,7 +4824,7 @@ ICTableSwitch::Compiler::getStub(ICStubSpace *space)
jsbytecode *defaultpc = pc_ + GET_JUMP_OFFSET(pc_);
for (size_t i = 0; i < length; i++) {
for (int32_t i = 0; i < length; i++) {
int32_t off = GET_JUMP_OFFSET(pc);
if (off)
table[i] = pc_ + off;
@ -4841,7 +4841,7 @@ ICTableSwitch::fixupJumpTable(HandleScript script, BaselineScript *baseline)
{
defaultTarget_ = baseline->nativeCodeForPC(script, (jsbytecode *) defaultTarget_);
for (size_t i = 0; i < length_; i++)
for (int32_t i = 0; i < length_; i++)
table_[i] = baseline->nativeCodeForPC(script, (jsbytecode *) table_[i]);
}

View File

@ -114,7 +114,7 @@ class BaselineCompilerShared
// Don't add multiple entries for a single pc.
size_t nentries = pcMappingEntries_.length();
if (nentries > 0 && pcMappingEntries_[nentries - 1].pcOffset == pc - script->code)
if (nentries > 0 && pcMappingEntries_[nentries - 1].pcOffset == unsigned(pc - script->code))
return true;
masm.flushBuffer();