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 | 7 |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #elif(defined(__mips_soft_float) && __mips_soft_float != 0) | 65 #elif(defined(__mips_soft_float) && __mips_soft_float != 0) |
66 // This flag is raised when -msoft-float is passed to the compiler. | 66 // This flag is raised when -msoft-float is passed to the compiler. |
67 // Although FPU is a base requirement for v8, soft-float ABI is used | 67 // Although FPU is a base requirement for v8, soft-float ABI is used |
68 // on soft-float systems with FPU kernel emulation. | 68 // on soft-float systems with FPU kernel emulation. |
69 const bool IsMipsSoftFloatABI = true; | 69 const bool IsMipsSoftFloatABI = true; |
70 #else | 70 #else |
71 const bool IsMipsSoftFloatABI = true; | 71 const bool IsMipsSoftFloatABI = true; |
72 #endif | 72 #endif |
73 | 73 |
74 | 74 |
| 75 #ifndef __STDC_FORMAT_MACROS |
75 #define __STDC_FORMAT_MACROS | 76 #define __STDC_FORMAT_MACROS |
| 77 #endif |
76 #include <inttypes.h> | 78 #include <inttypes.h> |
77 | 79 |
78 | 80 |
79 // Defines constants and accessor classes to assemble, disassemble and | 81 // Defines constants and accessor classes to assemble, disassemble and |
80 // simulate MIPS32 instructions. | 82 // simulate MIPS32 instructions. |
81 // | 83 // |
82 // See: MIPS32 Architecture For Programmers | 84 // See: MIPS32 Architecture For Programmers |
83 // Volume II: The MIPS32 Instruction Set | 85 // Volume II: The MIPS32 Instruction Set |
84 // Try www.cs.cornell.edu/courses/cs3410/2008fa/MIPS_Vol2.pdf. | 86 // Try www.cs.cornell.edu/courses/cs3410/2008fa/MIPS_Vol2.pdf. |
85 | 87 |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 | 867 |
866 // TODO(plind): below should be based on kPointerSize | 868 // TODO(plind): below should be based on kPointerSize |
867 // TODO(plind): find all usages and remove the needless instructions for n64. | 869 // TODO(plind): find all usages and remove the needless instructions for n64. |
868 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; | 870 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; |
869 | 871 |
870 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 872 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
871 | 873 |
872 } } // namespace v8::internal | 874 } } // namespace v8::internal |
873 | 875 |
874 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 876 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |