Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index e6f50f1cca7542d34c91532c834bd8f23c33ba6e..fd2c8924bca422ba842029715d78d12aa59a55cf 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -2587,44 +2587,6 @@ void StringHelper::GenerateOneByteCharsCompareLoop( |
} |
-void StringCompareStub::Generate(MacroAssembler* masm) { |
- // ----------- S t a t e ------------- |
- // -- edx : left string |
- // -- eax : right string |
- // -- esp[0] : return address |
- // ----------------------------------- |
- __ AssertString(edx); |
- __ AssertString(eax); |
- |
- Label not_same; |
- __ cmp(edx, eax); |
- __ j(not_equal, ¬_same, Label::kNear); |
- __ Move(eax, Immediate(Smi::FromInt(EQUAL))); |
- __ IncrementCounter(isolate()->counters()->string_compare_native(), 1); |
- __ Ret(); |
- |
- __ bind(¬_same); |
- |
- // Check that both objects are sequential one-byte strings. |
- Label runtime; |
- __ JumpIfNotBothSequentialOneByteStrings(edx, eax, ecx, ebx, &runtime); |
- |
- // Compare flat one-byte strings. |
- __ IncrementCounter(isolate()->counters()->string_compare_native(), 1); |
- StringHelper::GenerateCompareFlatOneByteStrings(masm, edx, eax, ecx, ebx, |
- edi); |
- |
- // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
- // tagged as a small integer. |
- __ bind(&runtime); |
- __ PopReturnAddressTo(ecx); |
- __ Push(edx); |
- __ Push(eax); |
- __ PushReturnAddressFrom(ecx); |
- __ TailCallRuntime(Runtime::kStringCompare); |
-} |
- |
- |
void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- edx : left |