diff --git a/js/src/jit/CodeGenerator.cpp b/js/src/jit/CodeGenerator.cpp index d03cd93239c..b23df7d76e3 100644 --- a/js/src/jit/CodeGenerator.cpp +++ b/js/src/jit/CodeGenerator.cpp @@ -8463,10 +8463,10 @@ CodeGenerator::visitAsmJSCall(LAsmJSCall *ins) } #endif - if (mir->spIncrement()) + if (mir->spIncrement()) masm.freeStack(mir->spIncrement()); - JS_ASSERT((AlignmentAtPrologue + masm.framePushed()) % StackAlignment == 0); + JS_ASSERT((AlignmentAtPrologue + masm.framePushed()) % StackAlignment == 0); #ifdef DEBUG Label ok; diff --git a/js/src/jit/shared/MoveEmitter-x86-shared.cpp b/js/src/jit/shared/MoveEmitter-x86-shared.cpp index 9dbaa794b17..3296632b995 100644 --- a/js/src/jit/shared/MoveEmitter-x86-shared.cpp +++ b/js/src/jit/shared/MoveEmitter-x86-shared.cpp @@ -241,8 +241,8 @@ MoveEmitterX86::breakCycle(const MoveOperand &to, MoveOp::Type type) masm.storeDouble(to.floatReg(), cycleSlot()); } break; -#ifdef JS_CODEGEN_X64 case MoveOp::INT32: +#ifdef JS_CODEGEN_X64 // x64 can't pop to a 32-bit destination, so don't push. if (to.isMemory()) { masm.load32(toAddress(to), ScratchReg); @@ -251,9 +251,6 @@ MoveEmitterX86::breakCycle(const MoveOperand &to, MoveOp::Type type) masm.store32(to.reg(), cycleSlot()); } break; -#endif -#ifndef JS_CODEGEN_X64 - case MoveOp::INT32: #endif case MoveOp::GENERAL: masm.Push(toOperand(to)); @@ -293,8 +290,8 @@ MoveEmitterX86::completeCycle(const MoveOperand &to, MoveOp::Type type) masm.loadDouble(cycleSlot(), to.floatReg()); } break; -#ifdef JS_CODEGEN_X64 case MoveOp::INT32: +#ifdef JS_CODEGEN_X64 JS_ASSERT(pushedAtCycle_ != -1); JS_ASSERT(pushedAtCycle_ - pushedAtStart_ >= sizeof(int32_t)); // x64 can't pop to a 32-bit destination. @@ -305,9 +302,6 @@ MoveEmitterX86::completeCycle(const MoveOperand &to, MoveOp::Type type) masm.load32(cycleSlot(), to.reg()); } break; -#endif -#ifndef JS_CODEGEN_X64 - case MoveOp::INT32: #endif case MoveOp::GENERAL: JS_ASSERT(masm.framePushed() - pushedAtStart_ >= sizeof(intptr_t));