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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 DISALLOW_IMPLICIT_CONSTRUCTORS(Instruction); | 917 DISALLOW_IMPLICIT_CONSTRUCTORS(Instruction); |
918 }; | 918 }; |
919 | 919 |
920 | 920 |
921 // ----------------------------------------------------------------------------- | 921 // ----------------------------------------------------------------------------- |
922 // MIPS assembly various constants. | 922 // MIPS assembly various constants. |
923 | 923 |
924 // C/C++ argument slots size. | 924 // C/C++ argument slots size. |
925 const int kCArgSlotCount = 4; | 925 const int kCArgSlotCount = 4; |
926 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize; | 926 const int kCArgsSlotsSize = kCArgSlotCount * Instruction::kInstrSize; |
| 927 const int kInvalidStackOffset = -1; |
927 // JS argument slots size. | 928 // JS argument slots size. |
928 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; | 929 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; |
929 // Assembly builtins argument slots size. | 930 // Assembly builtins argument slots size. |
930 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; | 931 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; |
931 | 932 |
932 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 933 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
933 | 934 |
934 } } // namespace v8::internal | 935 } } // namespace v8::internal |
935 | 936 |
936 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 937 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |