OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 static const int kCallerPCOffset = 1 * kPointerSize; | 129 static const int kCallerPCOffset = 1 * kPointerSize; |
130 | 130 |
131 // FP-relative displacement of the caller's SP. It points just | 131 // FP-relative displacement of the caller's SP. It points just |
132 // below the saved PC. | 132 // below the saved PC. |
133 static const int kCallerSPDisplacement = 2 * kPointerSize; | 133 static const int kCallerSPDisplacement = 2 * kPointerSize; |
134 }; | 134 }; |
135 | 135 |
136 | 136 |
137 class StandardFrameConstants : public AllStatic { | 137 class StandardFrameConstants : public AllStatic { |
138 public: | 138 public: |
| 139 static const int kFixedFrameSize = 4; |
139 static const int kExpressionsOffset = -3 * kPointerSize; | 140 static const int kExpressionsOffset = -3 * kPointerSize; |
140 static const int kMarkerOffset = -2 * kPointerSize; | 141 static const int kMarkerOffset = -2 * kPointerSize; |
141 static const int kContextOffset = -1 * kPointerSize; | 142 static const int kContextOffset = -1 * kPointerSize; |
142 static const int kCallerFPOffset = 0 * kPointerSize; | 143 static const int kCallerFPOffset = 0 * kPointerSize; |
143 static const int kCallerPCOffset = 1 * kPointerSize; | 144 static const int kCallerPCOffset = 1 * kPointerSize; |
144 static const int kCallerSPOffset = 2 * kPointerSize; | 145 static const int kCallerSPOffset = 2 * kPointerSize; |
145 }; | 146 }; |
146 | 147 |
147 | 148 |
148 class JavaScriptFrameConstants : public AllStatic { | 149 class JavaScriptFrameConstants : public AllStatic { |
(...skipping 23 matching lines...) Expand all Loading... |
172 | 173 |
173 inline Object* JavaScriptFrame::function_slot_object() const { | 174 inline Object* JavaScriptFrame::function_slot_object() const { |
174 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 175 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
175 return Memory::Object_at(fp() + offset); | 176 return Memory::Object_at(fp() + offset); |
176 } | 177 } |
177 | 178 |
178 | 179 |
179 } } // namespace v8::internal | 180 } } // namespace v8::internal |
180 | 181 |
181 #endif // V8_ARM_FRAMES_ARM_H_ | 182 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |