| 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 #include "src/base/logging.h" |
| 9 #include "src/base/macros.h" |
| 10 #include "src/globals.h" |
| 11 |
| 8 // UNIMPLEMENTED_ macro for MIPS. | 12 // UNIMPLEMENTED_ macro for MIPS. |
| 9 #ifdef DEBUG | 13 #ifdef DEBUG |
| 10 #define UNIMPLEMENTED_MIPS() \ | 14 #define UNIMPLEMENTED_MIPS() \ |
| 11 v8::internal::PrintF("%s, \tline %d: \tfunction %s not implemented. \n", \ | 15 v8::internal::PrintF("%s, \tline %d: \tfunction %s not implemented. \n", \ |
| 12 __FILE__, __LINE__, __func__) | 16 __FILE__, __LINE__, __func__) |
| 13 #else | 17 #else |
| 14 #define UNIMPLEMENTED_MIPS() | 18 #define UNIMPLEMENTED_MIPS() |
| 15 #endif | 19 #endif |
| 16 | 20 |
| 17 #define UNSUPPORTED_MIPS() v8::internal::PrintF("Unsupported instruction.\n") | 21 #define UNSUPPORTED_MIPS() v8::internal::PrintF("Unsupported instruction.\n") |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 // TODO(plind): below should be based on kPointerSize | 1074 // TODO(plind): below should be based on kPointerSize |
| 1071 // TODO(plind): find all usages and remove the needless instructions for n64. | 1075 // TODO(plind): find all usages and remove the needless instructions for n64. |
| 1072 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; | 1076 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; |
| 1073 | 1077 |
| 1074 const int kInvalidStackOffset = -1; | 1078 const int kInvalidStackOffset = -1; |
| 1075 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 1079 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
| 1076 | 1080 |
| 1077 } } // namespace v8::internal | 1081 } } // namespace v8::internal |
| 1078 | 1082 |
| 1079 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1083 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |