Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 7be35447ce3132366d7669ebf3a43d09afa9e66b..9816296b6dda7710f4e350f9b450f0348185f71c 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2850,42 +2850,6 @@ void StringHelper::GenerateOneByteCharsCompareLoop( |
} |
-void StringCompareStub::Generate(MacroAssembler* masm) { |
- // ----------- S t a t e ------------- |
- // -- r1 : left |
- // -- r0 : right |
- // -- lr : return address |
- // ----------------------------------- |
- __ AssertString(r1); |
- __ AssertString(r0); |
- |
- Label not_same; |
- __ cmp(r0, r1); |
- __ b(ne, ¬_same); |
- __ mov(r0, Operand(Smi::FromInt(EQUAL))); |
- __ IncrementCounter(isolate()->counters()->string_compare_native(), 1, r1, |
- r2); |
- __ Ret(); |
- |
- __ bind(¬_same); |
- |
- // Check that both objects are sequential one-byte strings. |
- Label runtime; |
- __ JumpIfNotBothSequentialOneByteStrings(r1, r0, r2, r3, &runtime); |
- |
- // Compare flat one-byte strings natively. |
- __ IncrementCounter(isolate()->counters()->string_compare_native(), 1, r2, |
- r3); |
- StringHelper::GenerateCompareFlatOneByteStrings(masm, r1, r0, r2, r3, r4, r5); |
- |
- // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
- // tagged as a small integer. |
- __ bind(&runtime); |
- __ Push(r1, r0); |
- __ TailCallRuntime(Runtime::kStringCompare); |
-} |
- |
- |
void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- r1 : left |