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 60 matching lines...) Loading... |
71 private: | 71 private: |
72 Major MajorKey() const { return SubString; } | 72 Major MajorKey() const { return SubString; } |
73 int MinorKey() const { return 0; } | 73 int MinorKey() const { return 0; } |
74 | 74 |
75 void Generate(MacroAssembler* masm); | 75 void Generate(MacroAssembler* masm); |
76 }; | 76 }; |
77 | 77 |
78 | 78 |
79 class StoreRegistersStateStub: public PlatformCodeStub { | 79 class StoreRegistersStateStub: public PlatformCodeStub { |
80 public: | 80 public: |
81 explicit StoreRegistersStateStub(Isolate* isolate, SaveFPRegsMode with_fp) | 81 explicit StoreRegistersStateStub(Isolate* isolate) |
82 : PlatformCodeStub(isolate), save_doubles_(with_fp) {} | 82 : PlatformCodeStub(isolate) {} |
83 | 83 |
84 static void GenerateAheadOfTime(Isolate* isolate); | 84 static void GenerateAheadOfTime(Isolate* isolate); |
85 private: | 85 private: |
86 Major MajorKey() const { return StoreRegistersState; } | 86 Major MajorKey() const { return StoreRegistersState; } |
87 int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 87 int MinorKey() const { return 0; } |
88 SaveFPRegsMode save_doubles_; | |
89 | 88 |
90 void Generate(MacroAssembler* masm); | 89 void Generate(MacroAssembler* masm); |
91 }; | 90 }; |
92 | 91 |
93 class RestoreRegistersStateStub: public PlatformCodeStub { | 92 class RestoreRegistersStateStub: public PlatformCodeStub { |
94 public: | 93 public: |
95 explicit RestoreRegistersStateStub(Isolate* isolate, SaveFPRegsMode with_fp) | 94 explicit RestoreRegistersStateStub(Isolate* isolate) |
96 : PlatformCodeStub(isolate), save_doubles_(with_fp) {} | 95 : PlatformCodeStub(isolate) {} |
97 | 96 |
98 static void GenerateAheadOfTime(Isolate* isolate); | 97 static void GenerateAheadOfTime(Isolate* isolate); |
99 private: | 98 private: |
100 Major MajorKey() const { return RestoreRegistersState; } | 99 Major MajorKey() const { return RestoreRegistersState; } |
101 int MinorKey() const { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 100 int MinorKey() const { return 0; } |
102 SaveFPRegsMode save_doubles_; | |
103 | 101 |
104 void Generate(MacroAssembler* masm); | 102 void Generate(MacroAssembler* masm); |
105 }; | 103 }; |
106 | 104 |
107 class StringCompareStub: public PlatformCodeStub { | 105 class StringCompareStub: public PlatformCodeStub { |
108 public: | 106 public: |
109 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | 107 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) { } |
110 | 108 |
111 // Compare two flat ASCII strings and returns result in v0. | 109 // Compare two flat ASCII strings and returns result in v0. |
112 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 110 static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
(...skipping 329 matching lines...) Loading... |
442 | 440 |
443 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 441 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
444 | 442 |
445 LookupMode mode_; | 443 LookupMode mode_; |
446 }; | 444 }; |
447 | 445 |
448 | 446 |
449 } } // namespace v8::internal | 447 } } // namespace v8::internal |
450 | 448 |
451 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 449 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |