Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index 31a0472fd562563e249c62639032ccb35f1d928d..99fe1bc3e5e6658e4cd6f1f6d01851bd6108a60b 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -2366,17 +2366,10 @@ void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
DCHECK(ToRegister(instr->left()).is(r1)); |
DCHECK(ToRegister(instr->right()).is(r0)); |
- if (Token::IsOrderedRelationalCompareOp(instr->op())) { |
- Handle<Code> code = CodeFactory::StringCompare(isolate()).code(); |
- CallCode(code, RelocInfo::CODE_TARGET, instr); |
- __ cmp(r0, Operand::Zero()); |
- } else { |
- Handle<Code> code = CodeFactory::StringEqual(isolate()).code(); |
- CallCode(code, RelocInfo::CODE_TARGET, instr); |
- __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
- } |
- |
- EmitBranch(instr, ComputeCompareCondition(instr->op())); |
+ Handle<Code> code = CodeFactory::StringCompare(isolate(), instr->op()).code(); |
+ CallCode(code, RelocInfo::CODE_TARGET, instr); |
+ __ CompareRoot(r0, Heap::kTrueValueRootIndex); |
+ EmitBranch(instr, eq); |
} |