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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 int JSCallerSavedCode(int n); | 59 int JSCallerSavedCode(int n); |
60 | 60 |
61 | 61 |
62 // Callee-saved registers preserved when switching from C to JavaScript | 62 // Callee-saved registers preserved when switching from C to JavaScript |
63 static const RegList kCalleeSaved = | 63 static const RegList kCalleeSaved = |
64 1 << 4 | // r4 v1 | 64 1 << 4 | // r4 v1 |
65 1 << 5 | // r5 v2 | 65 1 << 5 | // r5 v2 |
66 1 << 6 | // r6 v3 | 66 1 << 6 | // r6 v3 |
67 1 << 7 | // r7 v4 | 67 1 << 7 | // r7 v4 |
68 1 << 8 | // r8 v5 (cp in JavaScript code) | 68 1 << 8 | // r8 v5 (cp in JavaScript code) |
69 kR9Available | 69 kR9Available << 9 | // r9 v6 |
70 << 9 | // r9 v6 | |
71 1 << 10 | // r10 v7 | 70 1 << 10 | // r10 v7 |
72 1 << 11; // r11 v8 (fp in JavaScript code) | 71 1 << 11; // r11 v8 (fp in JavaScript code) |
73 | 72 |
74 static const int kNumCalleeSaved = 7 + kR9Available; | 73 static const int kNumCalleeSaved = 7 + kR9Available; |
75 | 74 |
76 | 75 |
77 // Number of registers for which space is reserved in safepoints. Must be a | 76 // Number of registers for which space is reserved in safepoints. Must be a |
78 // multiple of 8. | 77 // multiple of 8. |
79 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. | 78 // TODO(regis): Only 8 registers may actually be sufficient. Revisit. |
80 static const int kNumSafepointRegisters = 16; | 79 static const int kNumSafepointRegisters = 16; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 163 |
165 inline Object* JavaScriptFrame::function_slot_object() const { | 164 inline Object* JavaScriptFrame::function_slot_object() const { |
166 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 165 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
167 return Memory::Object_at(fp() + offset); | 166 return Memory::Object_at(fp() + offset); |
168 } | 167 } |
169 | 168 |
170 | 169 |
171 } } // namespace v8::internal | 170 } } // namespace v8::internal |
172 | 171 |
173 #endif // V8_ARM_FRAMES_ARM_H_ | 172 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |