| 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_ARM_FRAMES_ARM_H_ | 5 #ifndef V8_ARM_FRAMES_ARM_H_ |
| 6 #define V8_ARM_FRAMES_ARM_H_ | 6 #define V8_ARM_FRAMES_ARM_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // Caller-saved/arguments registers | 23 // Caller-saved/arguments registers |
| 24 const RegList kJSCallerSaved = | 24 const RegList kJSCallerSaved = |
| 25 1 << 0 | // r0 a1 | 25 1 << 0 | // r0 a1 |
| 26 1 << 1 | // r1 a2 | 26 1 << 1 | // r1 a2 |
| 27 1 << 2 | // r2 a3 | 27 1 << 2 | // r2 a3 |
| 28 1 << 3; // r3 a4 | 28 1 << 3; // r3 a4 |
| 29 | 29 |
| 30 const int kNumJSCallerSaved = 4; | 30 const int kNumJSCallerSaved = 4; |
| 31 | 31 |
| 32 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; | |
| 33 | |
| 34 // Return the code of the n-th caller-saved register available to JavaScript | 32 // Return the code of the n-th caller-saved register available to JavaScript |
| 35 // e.g. JSCallerSavedReg(0) returns r0.code() == 0 | 33 // e.g. JSCallerSavedReg(0) returns r0.code() == 0 |
| 36 int JSCallerSavedCode(int n); | 34 int JSCallerSavedCode(int n); |
| 37 | 35 |
| 38 | 36 |
| 39 // Callee-saved registers preserved when switching from C to JavaScript | 37 // Callee-saved registers preserved when switching from C to JavaScript |
| 40 const RegList kCalleeSaved = | 38 const RegList kCalleeSaved = |
| 41 1 << 4 | // r4 v1 | 39 1 << 4 | // r4 v1 |
| 42 1 << 5 | // r5 v2 | 40 1 << 5 | // r5 v2 |
| 43 1 << 6 | // r6 v3 | 41 1 << 6 | // r6 v3 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 153 |
| 156 | 154 |
| 157 inline void StackHandler::SetFp(Address slot, Address fp) { | 155 inline void StackHandler::SetFp(Address slot, Address fp) { |
| 158 Memory::Address_at(slot) = fp; | 156 Memory::Address_at(slot) = fp; |
| 159 } | 157 } |
| 160 | 158 |
| 161 | 159 |
| 162 } } // namespace v8::internal | 160 } } // namespace v8::internal |
| 163 | 161 |
| 164 #endif // V8_ARM_FRAMES_ARM_H_ | 162 #endif // V8_ARM_FRAMES_ARM_H_ |
| OLD | NEW |