Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index 2ba7b3fa0ac913d8d8b80c8f84858deddbd22a61..29439e6ba2d2551c1cb019a405ba5de91cf690b0 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -2168,17 +2168,10 @@ void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
DCHECK(ToRegister(instr->left()).is(edx)); |
DCHECK(ToRegister(instr->right()).is(eax)); |
- if (Token::IsOrderedRelationalCompareOp(instr->op())) { |
- Handle<Code> code = CodeFactory::StringCompare(isolate()).code(); |
- CallCode(code, RelocInfo::CODE_TARGET, instr); |
- __ test(eax, eax); |
- } else { |
- Handle<Code> code = CodeFactory::StringEqual(isolate()).code(); |
- CallCode(code, RelocInfo::CODE_TARGET, instr); |
- __ CompareRoot(eax, Heap::kTrueValueRootIndex); |
- } |
- |
- EmitBranch(instr, ComputeCompareCondition(instr->op())); |
+ Handle<Code> code = CodeFactory::StringCompare(isolate(), instr->op()).code(); |
+ CallCode(code, RelocInfo::CODE_TARGET, instr); |
+ __ CompareRoot(eax, Heap::kTrueValueRootIndex); |
+ EmitBranch(instr, equal); |
} |