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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 // ----------------------------------------------------------------------------- | 935 // ----------------------------------------------------------------------------- |
936 // MIPS assembly various constants. | 936 // MIPS assembly various constants. |
937 | 937 |
938 // C/C++ argument slots size. | 938 // C/C++ argument slots size. |
939 const int kCArgSlotCount = (kMipsAbi == kN64) ? 0 : 4; | 939 const int kCArgSlotCount = (kMipsAbi == kN64) ? 0 : 4; |
940 | 940 |
941 // TODO(plind): below should be based on kPointerSize | 941 // TODO(plind): below should be based on kPointerSize |
942 // TODO(plind): find all usages and remove the needless instructions for n64. | 942 // TODO(plind): find all usages and remove the needless instructions for n64. |
943 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; | 943 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize * 2; |
944 | 944 |
| 945 const int kInvalidStackOffset = -1; |
945 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 946 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
946 | 947 |
947 } } // namespace v8::internal | 948 } } // namespace v8::internal |
948 | 949 |
949 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 950 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |