OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_CONSTANTS_PPC_H_ | 5 #ifndef V8_PPC_CONSTANTS_PPC_H_ |
6 #define V8_PPC_CONSTANTS_PPC_H_ | 6 #define V8_PPC_CONSTANTS_PPC_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "src/base/logging.h" |
| 11 #include "src/base/macros.h" |
| 12 #include "src/globals.h" |
| 13 |
8 namespace v8 { | 14 namespace v8 { |
9 namespace internal { | 15 namespace internal { |
10 | 16 |
11 // Number of registers | 17 // Number of registers |
12 const int kNumRegisters = 32; | 18 const int kNumRegisters = 32; |
13 | 19 |
14 // FP support. | 20 // FP support. |
15 const int kNumFPDoubleRegisters = 32; | 21 const int kNumFPDoubleRegisters = 32; |
16 const int kNumFPRegisters = kNumFPDoubleRegisters; | 22 const int kNumFPRegisters = kNumFPDoubleRegisters; |
17 | 23 |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 // Lookup the register number for the name provided. | 589 // Lookup the register number for the name provided. |
584 static int Number(const char* name); | 590 static int Number(const char* name); |
585 | 591 |
586 private: | 592 private: |
587 static const char* names_[kNumFPRegisters]; | 593 static const char* names_[kNumFPRegisters]; |
588 }; | 594 }; |
589 } | 595 } |
590 } // namespace v8::internal | 596 } // namespace v8::internal |
591 | 597 |
592 #endif // V8_PPC_CONSTANTS_PPC_H_ | 598 #endif // V8_PPC_CONSTANTS_PPC_H_ |
OLD | NEW |