OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 static const int kContextOffset = -1 * kPointerSize; | 187 static const int kContextOffset = -1 * kPointerSize; |
188 static const int kCallerFPOffset = 0 * kPointerSize; | 188 static const int kCallerFPOffset = 0 * kPointerSize; |
189 static const int kCallerPCOffset = +1 * kPointerSize; | 189 static const int kCallerPCOffset = +1 * kPointerSize; |
190 static const int kCallerSPOffset = +2 * kPointerSize; | 190 static const int kCallerSPOffset = +2 * kPointerSize; |
191 | 191 |
192 // Size of the MIPS 4 32-bit argument slots. | 192 // Size of the MIPS 4 32-bit argument slots. |
193 // This is just an alias with a shorter name. Use it from now on. | 193 // This is just an alias with a shorter name. Use it from now on. |
194 static const int kRArgsSlotsSize = 4 * kPointerSize; | 194 static const int kRArgsSlotsSize = 4 * kPointerSize; |
195 static const int kRegularArgsSlotsSize = kRArgsSlotsSize; | 195 static const int kRegularArgsSlotsSize = kRArgsSlotsSize; |
196 | 196 |
197 // C/C++ argument slots size. | |
198 static const int kCArgSlotCount = 4; | |
199 static const int kCArgsSlotsSize = kCArgSlotCount * kPointerSize; | |
200 // JS argument slots size. | 197 // JS argument slots size. |
201 static const int kJSArgsSlotsSize = 0 * kPointerSize; | 198 static const int kJSArgsSlotsSize = 0 * kPointerSize; |
202 // Assembly builtins argument slots size. | 199 // Assembly builtins argument slots size. |
203 static const int kBArgsSlotsSize = 0 * kPointerSize; | 200 static const int kBArgsSlotsSize = 0 * kPointerSize; |
204 }; | 201 }; |
205 | 202 |
206 | 203 |
207 class JavaScriptFrameConstants : public AllStatic { | 204 class JavaScriptFrameConstants : public AllStatic { |
208 public: | 205 public: |
209 // FP-relative. | 206 // FP-relative. |
(...skipping 21 matching lines...) Expand all Loading... |
231 | 228 |
232 inline Object* JavaScriptFrame::function_slot_object() const { | 229 inline Object* JavaScriptFrame::function_slot_object() const { |
233 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 230 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
234 return Memory::Object_at(fp() + offset); | 231 return Memory::Object_at(fp() + offset); |
235 } | 232 } |
236 | 233 |
237 | 234 |
238 } } // namespace v8::internal | 235 } } // namespace v8::internal |
239 | 236 |
240 #endif | 237 #endif |
OLD | NEW |