OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_CODE_STUBS_ARM_H_ | 5 #ifndef V8_MIPS_CODE_STUBS_ARM_H_ |
6 #define V8_MIPS_CODE_STUBS_ARM_H_ | 6 #define V8_MIPS_CODE_STUBS_ARM_H_ |
7 | 7 |
8 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
9 | 9 |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 private: | 70 private: |
71 Major MajorKey() const { return SubString; } | 71 Major MajorKey() const { return SubString; } |
72 int MinorKey() const { return 0; } | 72 int MinorKey() const { return 0; } |
73 | 73 |
74 void Generate(MacroAssembler* masm); | 74 void Generate(MacroAssembler* masm); |
75 }; | 75 }; |
76 | 76 |
77 | 77 |
78 class StoreRegistersStateStub: public PlatformCodeStub { | 78 class StoreRegistersStateStub: public PlatformCodeStub { |
79 public: | 79 public: |
80 explicit StoreRegistersStateStub(Isolate* isolate, SaveFPRegsMode with_fp) | 80 explicit StoreRegistersStateStub(Isolate* isolate) |
81 : PlatformCodeStub(isolate), save_doubles_(with_fp) {} | 81 : PlatformCodeStub(isolate) {} |
82 | 82 |
83 static void GenerateAheadOfTime(Isolate* isolate); | 83 static void GenerateAheadOfTime(Isolate* isolate); |
84 private: | 84 private: |
85 Major MajorKey() const { return StoreRegistersState; } | 85 Major MajorKey() const { return StoreRegistersState; } |
86 int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 86 int MinorKey() const { return 0; } |
87 SaveFPRegsMode save_doubles_; | |
88 | 87 |
89 void Generate(MacroAssembler* masm); | 88 void Generate(MacroAssembler* masm); |
90 }; | 89 }; |
91 | 90 |
92 class RestoreRegistersStateStub: public PlatformCodeStub { | 91 class RestoreRegistersStateStub: public PlatformCodeStub { |
93 public: | 92 public: |
94 explicit RestoreRegistersStateStub(Isolate* isolate, SaveFPRegsMode with_fp) | 93 explicit RestoreRegistersStateStub(Isolate* isolate) |
95 : PlatformCodeStub(isolate), save_doubles_(with_fp) {} | 94 : PlatformCodeStub(isolate) {} |
96 | 95 |
97 static void GenerateAheadOfTime(Isolate* isolate); | 96 static void GenerateAheadOfTime(Isolate* isolate); |
98 private: | 97 private: |
99 Major MajorKey() const { return RestoreRegistersState; } | 98 Major MajorKey() const { return RestoreRegistersState; } |
100 int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 99 int MinorKey() const { return 0; } |
101 SaveFPRegsMode save_doubles_; | |
102 | 100 |
103 void Generate(MacroAssembler* masm); | 101 void Generate(MacroAssembler* masm); |
104 }; | 102 }; |
105 | 103 |
106 class StringCompareStub: public PlatformCodeStub { | 104 class StringCompareStub: public PlatformCodeStub { |
107 public: | 105 public: |
108 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | 106 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) { } |
109 | 107 |
110 // Compare two flat ASCII strings and returns result in v0. | 108 // Compare two flat ASCII strings and returns result in v0. |
111 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 109 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 439 |
442 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 440 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
443 | 441 |
444 LookupMode mode_; | 442 LookupMode mode_; |
445 }; | 443 }; |
446 | 444 |
447 | 445 |
448 } } // namespace v8::internal | 446 } } // namespace v8::internal |
449 | 447 |
450 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 448 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |