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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // The caller fields are below the frame pointer on the stack. | 118 // The caller fields are below the frame pointer on the stack. |
119 static const int kCallerFPOffset = +0 * kPointerSize; | 119 static const int kCallerFPOffset = +0 * kPointerSize; |
120 // The calling JS function is between FP and PC. | 120 // The calling JS function is between FP and PC. |
121 static const int kCallerPCOffset = +2 * kPointerSize; | 121 static const int kCallerPCOffset = +2 * kPointerSize; |
122 | 122 |
123 // FP-relative displacement of the caller's SP. It points just | 123 // FP-relative displacement of the caller's SP. It points just |
124 // below the saved PC. | 124 // below the saved PC. |
125 static const int kCallerSPDisplacement = +3 * kPointerSize; | 125 static const int kCallerSPDisplacement = +3 * kPointerSize; |
126 }; | 126 }; |
127 | 127 |
| 128 class ExitApiFrameConstants : public AllStatic { |
| 129 public: |
| 130 static const int kSPOffset = -3 * kPointerSize; |
| 131 static const int kMarker = 0x01; |
| 132 }; |
| 133 |
128 | 134 |
129 class StandardFrameConstants : public AllStatic { | 135 class StandardFrameConstants : public AllStatic { |
130 public: | 136 public: |
131 static const int kExpressionsOffset = -3 * kPointerSize; | 137 static const int kExpressionsOffset = -3 * kPointerSize; |
132 static const int kMarkerOffset = -2 * kPointerSize; | 138 static const int kMarkerOffset = -2 * kPointerSize; |
133 static const int kContextOffset = -1 * kPointerSize; | 139 static const int kContextOffset = -1 * kPointerSize; |
134 static const int kCallerFPOffset = 0 * kPointerSize; | 140 static const int kCallerFPOffset = 0 * kPointerSize; |
135 static const int kCallerPCOffset = +1 * kPointerSize; | 141 static const int kCallerPCOffset = +1 * kPointerSize; |
136 static const int kCallerSPOffset = +2 * kPointerSize; | 142 static const int kCallerSPOffset = +2 * kPointerSize; |
137 }; | 143 }; |
(...skipping 26 matching lines...) Expand all Loading... |
164 | 170 |
165 inline Object* JavaScriptFrame::function_slot_object() const { | 171 inline Object* JavaScriptFrame::function_slot_object() const { |
166 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 172 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
167 return Memory::Object_at(fp() + offset); | 173 return Memory::Object_at(fp() + offset); |
168 } | 174 } |
169 | 175 |
170 | 176 |
171 } } // namespace v8::internal | 177 } } // namespace v8::internal |
172 | 178 |
173 #endif // V8_ARM_FRAMES_ARM_H_ | 179 #endif // V8_ARM_FRAMES_ARM_H_ |
OLD | NEW |