| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index b0a221d902870759380e243bc51a39c47cc29316..8776d205c160d12a7a88de8e619e87b0423e2f07 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -1272,35 +1272,6 @@ void JSEntryStub::Generate(MacroAssembler* masm) {
|
| __ Jump(ra);
|
| }
|
|
|
| -
|
| -void LoadIndexedStringStub::Generate(MacroAssembler* masm) {
|
| - // Return address is in ra.
|
| - Label miss;
|
| -
|
| - Register receiver = LoadDescriptor::ReceiverRegister();
|
| - Register index = LoadDescriptor::NameRegister();
|
| - Register scratch = a5;
|
| - Register result = v0;
|
| - DCHECK(!scratch.is(receiver) && !scratch.is(index));
|
| - DCHECK(!scratch.is(LoadWithVectorDescriptor::VectorRegister()));
|
| -
|
| - 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 FunctionPrototypeStub::Generate(MacroAssembler* masm) {
|
| Label miss;
|
| Register receiver = LoadDescriptor::ReceiverRegister();
|
| @@ -1998,44 +1969,6 @@ void StringCharCodeAtGenerator::GenerateSlow(
|
| __ Abort(kUnexpectedFallthroughFromCharCodeAtSlowCase);
|
| }
|
|
|
| -
|
| -// -------------------------------------------------------------------------
|
| -// StringCharFromCodeGenerator
|
| -
|
| -void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) {
|
| - // Fast case of Heap::LookupSingleCharacterStringFromCode.
|
| - __ JumpIfNotSmi(code_, &slow_case_);
|
| - __ Branch(&slow_case_, hi, code_,
|
| - Operand(Smi::FromInt(String::kMaxOneByteCharCode)));
|
| -
|
| - __ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex);
|
| - // At this point code register contains smi tagged one_byte char code.
|
| - __ SmiScale(at, code_, kPointerSizeLog2);
|
| - __ Daddu(result_, result_, at);
|
| - __ ld(result_, FieldMemOperand(result_, FixedArray::kHeaderSize));
|
| - __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
|
| - __ Branch(&slow_case_, eq, result_, Operand(at));
|
| - __ 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_, v0);
|
| -
|
| - call_helper.AfterCall(masm);
|
| - __ Branch(&exit_);
|
| -
|
| - __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase);
|
| -}
|
| -
|
| void StringHelper::GenerateFlatOneByteStringEquals(
|
| MacroAssembler* masm, Register left, Register right, Register scratch1,
|
| Register scratch2, Register scratch3) {
|
|
|