Index: src/mips/code-stubs-mips.h |
diff --git a/src/mips/code-stubs-mips.h b/src/mips/code-stubs-mips.h |
index afad32b039a678cf05c2c86d6f9d36c59213b98c..b3d2c45ac2cc577cc976573fe0fd51cd3d11c48e 100644 |
--- a/src/mips/code-stubs-mips.h |
+++ b/src/mips/code-stubs-mips.h |
@@ -73,55 +73,6 @@ class RestoreRegistersStateStub: public PlatformCodeStub { |
}; |
-// This stub can convert a signed int32 to a heap number (double). It does |
-// not work for int32s that are in Smi range! No GC occurs during this stub |
-// so you don't have to set up the frame. |
-class WriteInt32ToHeapNumberStub : public PlatformCodeStub { |
- public: |
- WriteInt32ToHeapNumberStub(Isolate* isolate, Register the_int, |
- Register the_heap_number, Register scratch, |
- Register scratch2) |
- : PlatformCodeStub(isolate) { |
- minor_key_ = IntRegisterBits::encode(the_int.code()) | |
- HeapNumberRegisterBits::encode(the_heap_number.code()) | |
- ScratchRegisterBits::encode(scratch.code()) | |
- SignRegisterBits::encode(scratch2.code()); |
- DCHECK(IntRegisterBits::is_valid(the_int.code())); |
- DCHECK(HeapNumberRegisterBits::is_valid(the_heap_number.code())); |
- DCHECK(ScratchRegisterBits::is_valid(scratch.code())); |
- DCHECK(SignRegisterBits::is_valid(scratch2.code())); |
- } |
- |
- static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
- |
- private: |
- Register the_int() const { |
- return Register::from_code(IntRegisterBits::decode(minor_key_)); |
- } |
- |
- Register the_heap_number() const { |
- return Register::from_code(HeapNumberRegisterBits::decode(minor_key_)); |
- } |
- |
- Register scratch() const { |
- return Register::from_code(ScratchRegisterBits::decode(minor_key_)); |
- } |
- |
- Register sign() const { |
- return Register::from_code(SignRegisterBits::decode(minor_key_)); |
- } |
- |
- // Minor key encoding in 16 bits. |
- class IntRegisterBits: public BitField<int, 0, 4> {}; |
- class HeapNumberRegisterBits: public BitField<int, 4, 4> {}; |
- class ScratchRegisterBits: public BitField<int, 8, 4> {}; |
- class SignRegisterBits: public BitField<int, 12, 4> {}; |
- |
- DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
- DEFINE_PLATFORM_CODE_STUB(WriteInt32ToHeapNumber, PlatformCodeStub); |
-}; |
- |
- |
class RecordWriteStub: public PlatformCodeStub { |
public: |
RecordWriteStub(Isolate* isolate, |