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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 #else | 98 #else |
99 #define IsFp64Mode() \ | 99 #define IsFp64Mode() \ |
100 (CpuFeatures::IsSupported(FP64FPU)) | 100 (CpuFeatures::IsSupported(FP64FPU)) |
101 #endif | 101 #endif |
102 | 102 |
103 #ifndef _MIPS_ARCH_MIPS32RX | 103 #ifndef _MIPS_ARCH_MIPS32RX |
104 #define IsMipsArchVariant(check) \ | 104 #define IsMipsArchVariant(check) \ |
105 (kArchVariant == check) | 105 (kArchVariant == check) |
106 #else | 106 #else |
107 #define IsMipsArchVariant(check) \ | 107 #define IsMipsArchVariant(check) \ |
108 (CpuFeatures::IsSupported(check)) | 108 (CpuFeatures::IsSupported(static_cast<CpuFeature>(check))) |
109 #endif | 109 #endif |
110 | 110 |
111 | 111 |
112 #define __STDC_FORMAT_MACROS | 112 #define __STDC_FORMAT_MACROS |
113 #include <inttypes.h> | 113 #include <inttypes.h> |
114 | 114 |
115 // Defines constants and accessor classes to assemble, disassemble and | 115 // Defines constants and accessor classes to assemble, disassemble and |
116 // simulate MIPS32 instructions. | 116 // simulate MIPS32 instructions. |
117 // | 117 // |
118 // See: MIPS32 Architecture For Programmers | 118 // See: MIPS32 Architecture For Programmers |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 // JS argument slots size. | 930 // JS argument slots size. |
931 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; | 931 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; |
932 // Assembly builtins argument slots size. | 932 // Assembly builtins argument slots size. |
933 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; | 933 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; |
934 | 934 |
935 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 935 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
936 | 936 |
937 } } // namespace v8::internal | 937 } } // namespace v8::internal |
938 | 938 |
939 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 939 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |