Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 9ecc745bf1f497f13764283a37dfa6134c2c8591..6633367021c844d2dc1349b0cb751a3e57fa62a3 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1169,39 +1169,6 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); |
} |
- |
-void LoadIndexedStringStub::Generate(MacroAssembler* masm) { |
- // Return address is in lr. |
- Label miss; |
- |
- Register receiver = LoadDescriptor::ReceiverRegister(); |
- Register index = LoadDescriptor::NameRegister(); |
- Register scratch = r5; |
- Register result = r0; |
- DCHECK(!scratch.is(receiver) && !scratch.is(index)); |
- DCHECK(!scratch.is(LoadWithVectorDescriptor::VectorRegister()) && |
- result.is(LoadWithVectorDescriptor::SlotRegister())); |
- |
- // StringCharAtGenerator doesn't use the result register until it's passed |
- // the different miss possibilities. If it did, we would have a conflict |
- // when FLAG_vector_ics is true. |
- StringCharAtGenerator char_at_generator(receiver, index, scratch, result, |
- &miss, // When not a string. |
- &miss, // When not a number. |
- &miss, // When index out of range. |
- RECEIVER_IS_STRING); |
- char_at_generator.GenerateFast(masm); |
- __ Ret(); |
- |
- StubRuntimeCallHelper call_helper; |
- char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); |
- |
- __ bind(&miss); |
- PropertyAccessCompiler::TailCallBuiltin( |
- masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); |
-} |
- |
- |
void RegExpExecStub::Generate(MacroAssembler* masm) { |
// Just jump directly to runtime if native RegExp is not selected at compile |
// time or if regexp entry in generated code is turned off runtime switch or |
@@ -1849,45 +1816,6 @@ void StringCharCodeAtGenerator::GenerateSlow( |
__ Abort(kUnexpectedFallthroughFromCharCodeAtSlowCase); |
} |
- |
-// ------------------------------------------------------------------------- |
-// StringCharFromCodeGenerator |
- |
-void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
- // Fast case of Heap::LookupSingleCharacterStringFromCode. |
- STATIC_ASSERT(kSmiTag == 0); |
- STATIC_ASSERT(kSmiShiftSize == 0); |
- DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1)); |
- __ tst(code_, Operand(kSmiTagMask | |
- ((~String::kMaxOneByteCharCodeU) << kSmiTagSize))); |
- __ b(ne, &slow_case_); |
- |
- __ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex); |
- // At this point code register contains smi tagged one-byte char code. |
- __ add(result_, result_, Operand::PointerOffsetFromSmiKey(code_)); |
- __ ldr(result_, FieldMemOperand(result_, FixedArray::kHeaderSize)); |
- __ CompareRoot(result_, Heap::kUndefinedValueRootIndex); |
- __ b(eq, &slow_case_); |
- __ bind(&exit_); |
-} |
- |
- |
-void StringCharFromCodeGenerator::GenerateSlow( |
- MacroAssembler* masm, |
- const RuntimeCallHelper& call_helper) { |
- __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
- |
- __ bind(&slow_case_); |
- call_helper.BeforeCall(masm); |
- __ push(code_); |
- __ CallRuntime(Runtime::kStringCharFromCode); |
- __ Move(result_, r0); |
- call_helper.AfterCall(masm); |
- __ jmp(&exit_); |
- |
- __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
-} |
- |
void StringHelper::GenerateFlatOneByteStringEquals( |
MacroAssembler* masm, Register left, Register right, Register scratch1, |
Register scratch2, Register scratch3) { |