Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: src/mips/constants-mips.h

Issue 2019693002: MIPS: Fix '[turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPreserveNan'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix instruction selector mips64. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CONSTANTS_H_ 5 #ifndef V8_MIPS_CONSTANTS_H_
6 #define V8_MIPS_CONSTANTS_H_ 6 #define V8_MIPS_CONSTANTS_H_
7 #include "src/globals.h" 7 #include "src/globals.h"
8 // UNIMPLEMENTED_ macro for MIPS. 8 // UNIMPLEMENTED_ macro for MIPS.
9 #ifdef DEBUG 9 #ifdef DEBUG
10 #define UNIMPLEMENTED_MIPS() \ 10 #define UNIMPLEMENTED_MIPS() \
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // 'pref' instruction hints 189 // 'pref' instruction hints
190 const int32_t kPrefHintLoad = 0; 190 const int32_t kPrefHintLoad = 0;
191 const int32_t kPrefHintStore = 1; 191 const int32_t kPrefHintStore = 1;
192 const int32_t kPrefHintLoadStreamed = 4; 192 const int32_t kPrefHintLoadStreamed = 4;
193 const int32_t kPrefHintStoreStreamed = 5; 193 const int32_t kPrefHintStoreStreamed = 5;
194 const int32_t kPrefHintLoadRetained = 6; 194 const int32_t kPrefHintLoadRetained = 6;
195 const int32_t kPrefHintStoreRetained = 7; 195 const int32_t kPrefHintStoreRetained = 7;
196 const int32_t kPrefHintWritebackInvalidate = 25; 196 const int32_t kPrefHintWritebackInvalidate = 25;
197 const int32_t kPrefHintPrepareForStore = 30; 197 const int32_t kPrefHintPrepareForStore = 30;
198 198
199 class FloatConstants {
200 public:
201 static const uint32_t kExponentMask = 0x7f800000;
202 static const uint32_t kMantissaMask = 0x007fffff;
203 static const uint32_t kNanTypeMask = 0x00400000;
204 static const uint32_t kSignMask = 0x80000000;
205 };
206
207 class DoubleConstants {
208 public:
209 static const uint32_t kExponentMask = 0x7ff00000;
210 static const uint32_t kMantissaMask = 0x000fffff;
211 static const uint32_t kNanTypeMask = 0x00080000;
212 static const uint32_t kSignMask = 0x80000000;
213 };
214
199 // Helper functions for converting between register numbers and names. 215 // Helper functions for converting between register numbers and names.
200 class Registers { 216 class Registers {
201 public: 217 public:
202 // Return the name of the register. 218 // Return the name of the register.
203 static const char* Name(int reg); 219 static const char* Name(int reg);
204 220
205 // Lookup the register number for the name provided. 221 // Lookup the register number for the name provided.
206 static int Number(const char* name); 222 static int Number(const char* name);
207 223
208 struct RegisterAlias { 224 struct RegisterAlias {
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 } 1246 }
1231 } 1247 }
1232 } 1248 }
1233 1249
1234 #undef OpcodeToBitNumber 1250 #undef OpcodeToBitNumber
1235 #undef FunctionFieldToBitNumber 1251 #undef FunctionFieldToBitNumber
1236 } // namespace internal 1252 } // namespace internal
1237 } // namespace v8 1253 } // namespace v8
1238 1254
1239 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 1255 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698