Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 05fa79247e5fa6722fbe49f294c7a4ec10ca40ca..bb1b90cd0e9a7460714cf5f0f927d852870389e5 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -1867,9 +1867,11 @@ void LCodeGen::DoBranch(LBranch* instr) { |
Representation r = instr->hydrogen()->value()->representation(); |
if (r.IsInteger32() || r.IsSmi()) { |
+ ASSERT(!info()->IsStub()); |
Register reg = ToRegister(instr->value()); |
EmitBranch(true_block, false_block, ne, reg, Operand(zero_reg)); |
} else if (r.IsDouble()) { |
+ ASSERT(!info()->IsStub()); |
DoubleRegister reg = ToDoubleRegister(instr->value()); |
// Test the double value. Zero and NaN are false. |
EmitBranchF(true_block, false_block, nue, reg, kDoubleRegZero); |
@@ -1878,9 +1880,11 @@ void LCodeGen::DoBranch(LBranch* instr) { |
Register reg = ToRegister(instr->value()); |
HType type = instr->hydrogen()->value()->type(); |
if (type.IsBoolean()) { |
+ ASSERT(!info()->IsStub()); |
__ LoadRoot(at, Heap::kTrueValueRootIndex); |
EmitBranch(true_block, false_block, eq, reg, Operand(at)); |
} else if (type.IsSmi()) { |
+ ASSERT(!info()->IsStub()); |
EmitBranch(true_block, false_block, ne, reg, Operand(zero_reg)); |
} else { |
Label* true_label = chunk_->GetAssemblyLabel(true_block); |