| 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; |
| 197 // JS argument slots size. | 200 // JS argument slots size. |
| 198 static const int kJSArgsSlotsSize = 0 * kPointerSize; | 201 static const int kJSArgsSlotsSize = 0 * kPointerSize; |
| 199 // Assembly builtins argument slots size. | 202 // Assembly builtins argument slots size. |
| 200 static const int kBArgsSlotsSize = 0 * kPointerSize; | 203 static const int kBArgsSlotsSize = 0 * kPointerSize; |
| 201 }; | 204 }; |
| 202 | 205 |
| 203 | 206 |
| 204 class JavaScriptFrameConstants : public AllStatic { | 207 class JavaScriptFrameConstants : public AllStatic { |
| 205 public: | 208 public: |
| 206 // FP-relative. | 209 // FP-relative. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 228 | 231 |
| 229 inline Object* JavaScriptFrame::function_slot_object() const { | 232 inline Object* JavaScriptFrame::function_slot_object() const { |
| 230 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 233 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 231 return Memory::Object_at(fp() + offset); | 234 return Memory::Object_at(fp() + offset); |
| 232 } | 235 } |
| 233 | 236 |
| 234 | 237 |
| 235 } } // namespace v8::internal | 238 } } // namespace v8::internal |
| 236 | 239 |
| 237 #endif | 240 #endif |
| OLD | NEW |