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