Bug 1268910: Fix unused variable "output" in CodeGeneratorX64.cpp to unbreak build; r=me

MozReview-Commit-ID: L460DqlwPz2

--HG--
extra : rebase_source : 8d80f027155cb9781f3d6142fb1cce4679bf68f3
This commit is contained in:
Benjamin Bouvier 2016-05-10 11:52:50 +02:00
Родитель 64599f507d
Коммит e9d584a553
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -19,6 +19,8 @@
using namespace js;
using namespace js::jit;
using mozilla::DebugOnly;
CodeGeneratorX64::CodeGeneratorX64(MIRGenerator* gen, LIRGraph* graph, MacroAssembler* masm)
: CodeGeneratorX86Shared(gen, graph, masm)
{
@ -463,12 +465,12 @@ CodeGeneratorX64::visitUDivOrMod64(LUDivOrMod64* lir)
{
Register lhs = ToRegister(lir->lhs());
Register rhs = ToRegister(lir->rhs());
Register output = ToRegister(lir->output());
DebugOnly<Register> output = ToRegister(lir->output());
MOZ_ASSERT_IF(lhs != rhs, rhs != rax);
MOZ_ASSERT(rhs != rdx);
MOZ_ASSERT_IF(output == rax, ToRegister(lir->remainder()) == rdx);
MOZ_ASSERT_IF(output == rdx, ToRegister(lir->remainder()) == rax);
MOZ_ASSERT_IF(output.value == rax, ToRegister(lir->remainder()) == rdx);
MOZ_ASSERT_IF(output.value == rdx, ToRegister(lir->remainder()) == rax);
// Put the lhs in rax.
if (lhs != rax)