OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 const RegList kCallerSaved = | 75 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 const int kNumCalleeSaved = 7 + kR9Available; | 83 const int kNumCalleeSaved = 7 + kR9Available; |
84 | 84 |
85 // Double registers d8 to d15 are callee-saved. | |
86 const int kNumDoubleCalleeSaved = 8; | |
87 | |
88 | |
89 // Number of registers for which space is reserved in safepoints. Must be a | 85 // Number of registers for which space is reserved in safepoints. Must be a |
90 // multiple of 8. | 86 // multiple of 8. |
91 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. | 87 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. |
92 const int kNumSafepointRegisters = 16; | 88 const int kNumSafepointRegisters = 16; |
93 | 89 |
94 // Define the list of registers actually saved at safepoints. | 90 // Define the list of registers actually saved at safepoints. |
95 // Note that the number of saved registers may be smaller than the reserved | 91 // Note that the number of saved registers may be smaller than the reserved |
96 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 92 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
97 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; | 93 const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved; |
98 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved; | 94 const int kNumSafepointSavedRegisters = kNumJSCallerSaved + kNumCalleeSaved; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 173 |
178 inline Object* JavaScriptFrame::function_slot_object() const { | 174 inline Object* JavaScriptFrame::function_slot_object() const { |
179 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 175 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
180 return Memory::Object_at(fp() + offset); | 176 return Memory::Object_at(fp() + offset); |
181 } | 177 } |
182 | 178 |
183 | 179 |
184 } } // namespace v8::internal | 180 } } // namespace v8::internal |
185 | 181 |
186 #endif // V8_ARM_FRAMES_ARM_H_ | 182 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |