| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 static const RegList kCallerSaved = | 75 static const RegList kCallerSaved = |
| 76 1 << 0 | // r0 | 76 1 << 0 | // r0 |
| 77 1 << 1 | // r1 | 77 1 << 1 | // r1 |
| 78 1 << 2 | // r2 | 78 1 << 2 | // r2 |
| 79 1 << 3 | // r3 | 79 1 << 3 | // r3 |
| 80 1 << 9; // r9 | 80 1 << 9; // r9 |
| 81 | 81 |
| 82 | 82 |
| 83 static const int kNumCalleeSaved = 7 + kR9Available; | 83 static const int kNumCalleeSaved = 7 + kR9Available; |
| 84 | 84 |
| 85 // Double registers d8 to d15 are callee-saved. |
| 86 static const int kNumDoubleCalleeSaved = 8; |
| 87 |
| 85 | 88 |
| 86 // Number of registers for which space is reserved in safepoints. Must be a | 89 // Number of registers for which space is reserved in safepoints. Must be a |
| 87 // multiple of 8. | 90 // multiple of 8. |
| 88 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. | 91 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. |
| 89 static const int kNumSafepointRegisters = 16; | 92 static const int kNumSafepointRegisters = 16; |
| 90 | 93 |
| 91 // Define the list of registers actually saved at safepoints. | 94 // Define the list of registers actually saved at safepoints. |
| 92 // Note that the number of saved registers may be smaller than the reserved | 95 // Note that the number of saved registers may be smaller than the reserved |
| 93 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
| 94 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 97 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 172 |
| 170 inline Object* JavaScriptFrame::function_slot_object() const { | 173 inline Object* JavaScriptFrame::function_slot_object() const { |
| 171 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 174 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 172 return Memory::Object_at(fp() + offset); | 175 return Memory::Object_at(fp() + offset); |
| 173 } | 176 } |
| 174 | 177 |
| 175 | 178 |
| 176 } } // namespace v8::internal | 179 } } // namespace v8::internal |
| 177 | 180 |
| 178 #endif // V8_ARM_FRAMES_ARM_H_ | 181 #endif // V8_ARM_FRAMES_ARM_H_ |
| OLD | NEW |