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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 class ExitFrameConstants : public AllStatic { | 109 class ExitFrameConstants : public AllStatic { |
110 public: | 110 public: |
111 static const int kCodeOffset = -1 * kPointerSize; | 111 static const int kCodeOffset = -1 * kPointerSize; |
112 static const int kSPOffset = -1 * kPointerSize; | 112 static const int kSPOffset = -1 * kPointerSize; |
113 | 113 |
114 // TODO(regis): Use a patched sp value on the stack instead. | 114 // TODO(regis): Use a patched sp value on the stack instead. |
115 // A marker of 0 indicates that double registers are saved. | 115 // A marker of 0 indicates that double registers are saved. |
116 static const int kMarkerOffset = -2 * kPointerSize; | 116 static const int kMarkerOffset = -2 * kPointerSize; |
117 | 117 |
| 118 // TODO(regis): Use fixed place in exit frame for return address and avoid |
| 119 // the marker. |
| 120 static const int kPCOffset = -2 * kPointerSize; |
| 121 |
118 // The caller fields are below the frame pointer on the stack. | 122 // The caller fields are below the frame pointer on the stack. |
119 static const int kCallerFPOffset = +0 * kPointerSize; | 123 static const int kCallerFPOffset = +0 * kPointerSize; |
120 // The calling JS function is between FP and PC. | 124 // The calling JS function is between FP and PC. |
121 static const int kCallerPCOffset = +2 * kPointerSize; | 125 static const int kCallerPCOffset = +2 * kPointerSize; |
122 | 126 |
123 // FP-relative displacement of the caller's SP. It points just | 127 // FP-relative displacement of the caller's SP. It points just |
124 // below the saved PC. | 128 // below the saved PC. |
125 static const int kCallerSPDisplacement = +3 * kPointerSize; | 129 static const int kCallerSPDisplacement = +3 * kPointerSize; |
126 }; | 130 }; |
127 | 131 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 168 |
165 inline Object* JavaScriptFrame::function_slot_object() const { | 169 inline Object* JavaScriptFrame::function_slot_object() const { |
166 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 170 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
167 return Memory::Object_at(fp() + offset); | 171 return Memory::Object_at(fp() + offset); |
168 } | 172 } |
169 | 173 |
170 | 174 |
171 } } // namespace v8::internal | 175 } } // namespace v8::internal |
172 | 176 |
173 #endif // V8_ARM_FRAMES_ARM_H_ | 177 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |