Index: src/mips64/code-stubs-mips64.h |
diff --git a/src/mips64/code-stubs-mips64.h b/src/mips64/code-stubs-mips64.h |
index 614c3f6692c8f6e53fa66b9fab61dbf3f9ac942d..5cb00044d4e2cf2a1b9c1f8d065dcaf7038bcef3 100644 |
--- a/src/mips64/code-stubs-mips64.h |
+++ b/src/mips64/code-stubs-mips64.h |
@@ -15,24 +15,6 @@ namespace internal { |
void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); |
-class StoreBufferOverflowStub: public PlatformCodeStub { |
- public: |
- StoreBufferOverflowStub(Isolate* isolate, SaveFPRegsMode save_fp) |
- : PlatformCodeStub(isolate), save_doubles_(save_fp) {} |
- |
- void Generate(MacroAssembler* masm); |
- |
- static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
- virtual bool SometimesSetsUpAFrame() { return false; } |
- |
- private: |
- SaveFPRegsMode save_doubles_; |
- |
- Major MajorKey() const { return StoreBufferOverflow; } |
- uint32_t MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
-}; |
- |
- |
class StringHelper : public AllStatic { |
public: |
// Generate code for copying a large number of characters. This function |
@@ -58,20 +40,35 @@ class StringHelper : public AllStatic { |
static void GenerateHashGetHash(MacroAssembler* masm, |
Register hash); |
- private: |
- DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); |
-}; |
- |
+ // Compare two flat ASCII strings and returns result in v0. |
+ static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
+ Register left, |
+ Register right, |
+ Register scratch1, |
+ Register scratch2, |
+ Register scratch3, |
+ Register scratch4); |
-class SubStringStub: public PlatformCodeStub { |
- public: |
- explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
+ // Compares two flat ASCII strings for equality and returns result in v0. |
+ static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, |
+ Register left, |
+ Register right, |
+ Register scratch1, |
+ Register scratch2, |
+ Register scratch3); |
private: |
- Major MajorKey() const { return SubString; } |
- uint32_t MinorKey() const { return 0; } |
+ static void GenerateAsciiCharsCompareLoop(MacroAssembler* masm, |
+ Register left, |
+ Register right, |
+ Register length, |
+ Register scratch1, |
+ Register scratch2, |
+ Register scratch3, |
+ Label* chars_not_equal); |
- void Generate(MacroAssembler* masm); |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); |
}; |
@@ -101,44 +98,6 @@ class RestoreRegistersStateStub: public PlatformCodeStub { |
void Generate(MacroAssembler* masm); |
}; |
-class StringCompareStub: public PlatformCodeStub { |
- public: |
- explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) { } |
- |
- // Compare two flat ASCII strings and returns result in v0. |
- static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
- Register left, |
- Register right, |
- Register scratch1, |
- Register scratch2, |
- Register scratch3, |
- Register scratch4); |
- |
- // Compares two flat ASCII strings for equality and returns result |
- // in v0. |
- static void GenerateFlatAsciiStringEquals(MacroAssembler* masm, |
- Register left, |
- Register right, |
- Register scratch1, |
- Register scratch2, |
- Register scratch3); |
- |
- private: |
- virtual Major MajorKey() const { return StringCompare; } |
- virtual uint32_t MinorKey() const { return 0; } |
- virtual void Generate(MacroAssembler* masm); |
- |
- static void GenerateAsciiCharsCompareLoop(MacroAssembler* masm, |
- Register left, |
- Register right, |
- Register length, |
- Register scratch1, |
- Register scratch2, |
- Register scratch3, |
- Label* chars_not_equal); |
-}; |
- |
- |
// 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. |