OLD | NEW |
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const uint32_t kMipsSwlOffset = 3; | 115 const uint32_t kMipsSwlOffset = 3; |
116 #elif defined(V8_TARGET_BIG_ENDIAN) | 116 #elif defined(V8_TARGET_BIG_ENDIAN) |
117 const uint32_t kMipsLwrOffset = 3; | 117 const uint32_t kMipsLwrOffset = 3; |
118 const uint32_t kMipsLwlOffset = 0; | 118 const uint32_t kMipsLwlOffset = 0; |
119 const uint32_t kMipsSwrOffset = 3; | 119 const uint32_t kMipsSwrOffset = 3; |
120 const uint32_t kMipsSwlOffset = 0; | 120 const uint32_t kMipsSwlOffset = 0; |
121 #else | 121 #else |
122 #error Unknown endianness | 122 #error Unknown endianness |
123 #endif | 123 #endif |
124 | 124 |
| 125 #ifndef __STDC_FORMAT_MACROS |
125 #define __STDC_FORMAT_MACROS | 126 #define __STDC_FORMAT_MACROS |
| 127 #endif |
126 #include <inttypes.h> | 128 #include <inttypes.h> |
127 | 129 |
128 // Defines constants and accessor classes to assemble, disassemble and | 130 // Defines constants and accessor classes to assemble, disassemble and |
129 // simulate MIPS32 instructions. | 131 // simulate MIPS32 instructions. |
130 // | 132 // |
131 // See: MIPS32 Architecture For Programmers | 133 // See: MIPS32 Architecture For Programmers |
132 // Volume II: The MIPS32 Instruction Set | 134 // Volume II: The MIPS32 Instruction Set |
133 // Try www.cs.cornell.edu/courses/cs3410/2008fa/MIPS_Vol2.pdf. | 135 // Try www.cs.cornell.edu/courses/cs3410/2008fa/MIPS_Vol2.pdf. |
134 | 136 |
135 namespace v8 { | 137 namespace v8 { |
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 } | 1348 } |
1347 break; | 1349 break; |
1348 default: | 1350 default: |
1349 return false; | 1351 return false; |
1350 } | 1352 } |
1351 } | 1353 } |
1352 } // namespace internal | 1354 } // namespace internal |
1353 } // namespace v8 | 1355 } // namespace v8 |
1354 | 1356 |
1355 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1357 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |