Index: src/mips/code-stubs-mips.h |
diff --git a/src/mips/code-stubs-mips.h b/src/mips/code-stubs-mips.h |
index a0e01b229ea57b9f5b739d129a5710b3ecfdeebd..3019220e7fd26c0c3177cbb7266e650ee09498a1 100644 |
--- a/src/mips/code-stubs-mips.h |
+++ b/src/mips/code-stubs-mips.h |
@@ -157,6 +157,33 @@ class SubStringStub: public PlatformCodeStub { |
void Generate(MacroAssembler* masm); |
}; |
+class StoreRegistersStateStub: public PlatformCodeStub { |
+ public: |
+ explicit StoreRegistersStateStub(SaveFPRegsMode with_fp) |
+ : save_doubles_(with_fp) {} |
+ |
+ static void GenerateAheadOfTime(Isolate* isolate); |
+ private: |
+ Major MajorKey() { return StoreRegistersState; } |
+ int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
+ SaveFPRegsMode save_doubles_; |
+ |
+ void Generate(MacroAssembler* masm); |
+}; |
+ |
+class RestoreRegistersStateStub: public PlatformCodeStub { |
+ public: |
+ explicit RestoreRegistersStateStub(SaveFPRegsMode with_fp) |
+ : save_doubles_(with_fp) {} |
+ |
+ static void GenerateAheadOfTime(Isolate* isolate); |
+ private: |
+ Major MajorKey() { return RestoreRegistersState; } |
+ int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
+ SaveFPRegsMode save_doubles_; |
+ |
+ void Generate(MacroAssembler* masm); |
+}; |
class StringCompareStub: public PlatformCodeStub { |
public: |