| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 | 5 |
| 6 | 6 |
| 7 #ifndef V8_MIPS_FRAMES_MIPS_H_ | 7 #ifndef V8_MIPS_FRAMES_MIPS_H_ |
| 8 #define V8_MIPS_FRAMES_MIPS_H_ | 8 #define V8_MIPS_FRAMES_MIPS_H_ |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // multiple of 8. | 80 // multiple of 8. |
| 81 const int kNumSafepointRegisters = 24; | 81 const int kNumSafepointRegisters = 24; |
| 82 | 82 |
| 83 // Define the list of registers actually saved at safepoints. | 83 // Define the list of registers actually saved at safepoints. |
| 84 // Note that the number of saved registers may be smaller than the reserved | 84 // Note that the number of saved registers may be smaller than the reserved |
| 85 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 85 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
| 86 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 86 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; |
| 87 const int kNumSafepointSavedRegisters = | 87 const int kNumSafepointSavedRegisters = |
| 88 kNumJSCallerSaved + kNumCalleeSaved; | 88 kNumJSCallerSaved + kNumCalleeSaved; |
| 89 | 89 |
| 90 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; | |
| 91 | |
| 92 const int kUndefIndex = -1; | 90 const int kUndefIndex = -1; |
| 93 // Map with indexes on stack that corresponds to codes of saved registers. | 91 // Map with indexes on stack that corresponds to codes of saved registers. |
| 94 const int kSafepointRegisterStackIndexMap[kNumRegs] = { | 92 const int kSafepointRegisterStackIndexMap[kNumRegs] = { |
| 95 kUndefIndex, // zero_reg | 93 kUndefIndex, // zero_reg |
| 96 kUndefIndex, // at | 94 kUndefIndex, // at |
| 97 0, // v0 | 95 0, // v0 |
| 98 1, // v1 | 96 1, // v1 |
| 99 2, // a0 | 97 2, // a0 |
| 100 3, // a1 | 98 3, // a1 |
| 101 4, // a2 | 99 4, // a2 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 206 |
| 209 | 207 |
| 210 inline void StackHandler::SetFp(Address slot, Address fp) { | 208 inline void StackHandler::SetFp(Address slot, Address fp) { |
| 211 Memory::Address_at(slot) = fp; | 209 Memory::Address_at(slot) = fp; |
| 212 } | 210 } |
| 213 | 211 |
| 214 | 212 |
| 215 } } // namespace v8::internal | 213 } } // namespace v8::internal |
| 216 | 214 |
| 217 #endif | 215 #endif |
| OLD | NEW |