Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 65959346d854f3f16f2616e47b19f59b8f10f704..09025d8648ecd99df9af9986c66558155535c09b 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -2236,10 +2236,12 @@ void LCodeGen::DoBranch(LBranch* instr) { |
Representation r = instr->hydrogen()->value()->representation(); |
if (r.IsInteger32() || r.IsSmi()) { |
+ ASSERT(!info()->IsStub()); |
Register reg = ToRegister(instr->value()); |
__ cmp(reg, Operand::Zero()); |
EmitBranch(true_block, false_block, ne); |
} else if (r.IsDouble()) { |
+ ASSERT(!info()->IsStub()); |
DwVfpRegister reg = ToDoubleRegister(instr->value()); |
// Test the double value. Zero and NaN are false. |
__ VFPCompareAndSetFlags(reg, 0.0); |
@@ -2250,9 +2252,11 @@ void LCodeGen::DoBranch(LBranch* instr) { |
Register reg = ToRegister(instr->value()); |
HType type = instr->hydrogen()->value()->type(); |
if (type.IsBoolean()) { |
+ ASSERT(!info()->IsStub()); |
__ CompareRoot(reg, Heap::kTrueValueRootIndex); |
EmitBranch(true_block, false_block, eq); |
} else if (type.IsSmi()) { |
+ ASSERT(!info()->IsStub()); |
__ cmp(reg, Operand::Zero()); |
EmitBranch(true_block, false_block, ne); |
} else { |