| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 83ea24770ce89b59cf770395944f11cd266fca53..8d7c8bb0888029ac87decf56b43debb1488d5296 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -39,6 +39,16 @@ namespace v8 {
|
| namespace internal {
|
|
|
|
|
| +void ToNumberStub::InitializeInterfaceDescriptor(
|
| + Isolate* isolate,
|
| + CodeStubInterfaceDescriptor* descriptor) {
|
| + static Register registers[] = { a0 };
|
| + descriptor->register_param_count_ = 1;
|
| + descriptor->register_params_ = registers;
|
| + descriptor->deoptimization_handler_ = NULL;
|
| +}
|
| +
|
| +
|
| void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
|
| Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| @@ -287,16 +297,6 @@ static void EmitStrictTwoHeapObjectCompare(MacroAssembler* masm,
|
| Register rhs);
|
|
|
|
|
| -// Check if the operand is a heap number.
|
| -static void EmitCheckForHeapNumber(MacroAssembler* masm, Register operand,
|
| - Register scratch1, Register scratch2,
|
| - Label* not_a_heap_number) {
|
| - __ lw(scratch1, FieldMemOperand(operand, HeapObject::kMapOffset));
|
| - __ LoadRoot(scratch2, Heap::kHeapNumberMapRootIndex);
|
| - __ Branch(not_a_heap_number, ne, scratch1, Operand(scratch2));
|
| -}
|
| -
|
| -
|
| void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
|
| // Update the static counter each time a new code stub is generated.
|
| Isolate* isolate = masm->isolate();
|
| @@ -321,24 +321,6 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| -void ToNumberStub::Generate(MacroAssembler* masm) {
|
| - // The ToNumber stub takes one argument in a0.
|
| - Label check_heap_number, call_builtin;
|
| - __ JumpIfNotSmi(a0, &check_heap_number);
|
| - __ Ret(USE_DELAY_SLOT);
|
| - __ mov(v0, a0);
|
| -
|
| - __ bind(&check_heap_number);
|
| - EmitCheckForHeapNumber(masm, a0, a1, t0, &call_builtin);
|
| - __ Ret(USE_DELAY_SLOT);
|
| - __ mov(v0, a0);
|
| -
|
| - __ bind(&call_builtin);
|
| - __ push(a0);
|
| - __ InvokeBuiltin(Builtins::TO_NUMBER, JUMP_FUNCTION);
|
| -}
|
| -
|
| -
|
| void FastNewClosureStub::Generate(MacroAssembler* masm) {
|
| // Create a new closure from the given function info in new
|
| // space. Set the context to the current context in cp.
|
|
|