| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 static const int kJSArgsSlotsSize = 0 * kPointerSize; | 140 static const int kJSArgsSlotsSize = 0 * kPointerSize; |
| 141 // Assembly builtins argument slots size. | 141 // Assembly builtins argument slots size. |
| 142 static const int kBArgsSlotsSize = 0 * kPointerSize; | 142 static const int kBArgsSlotsSize = 0 * kPointerSize; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 | 145 |
| 146 class JavaScriptFrameConstants : public AllStatic { | 146 class JavaScriptFrameConstants : public AllStatic { |
| 147 public: | 147 public: |
| 148 // FP-relative. | 148 // FP-relative. |
| 149 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 149 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 150 static const int kLastParameterOffset = +2 * kPointerSize; | 150 static const int kSavedRegistersOffset = +2 * kPointerSize; |
| 151 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 151 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 152 | 152 |
| 153 // Caller SP-relative. | 153 // Caller SP-relative. |
| 154 static const int kParam0Offset = -2 * kPointerSize; | 154 static const int kParam0Offset = -2 * kPointerSize; |
| 155 static const int kReceiverOffset = -1 * kPointerSize; | 155 static const int kReceiverOffset = -1 * kPointerSize; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 | 158 |
| 159 class ArgumentsAdaptorFrameConstants : public AllStatic { | 159 class ArgumentsAdaptorFrameConstants : public AllStatic { |
| 160 public: | 160 public: |
| 161 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 161 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 | 164 |
| 165 class InternalFrameConstants : public AllStatic { | 165 class InternalFrameConstants : public AllStatic { |
| 166 public: | 166 public: |
| 167 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 167 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 | 170 |
| 171 inline Object* JavaScriptFrame::function_slot_object() const { | 171 inline Object* JavaScriptFrame::function_slot_object() const { |
| 172 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 172 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 173 return Memory::Object_at(fp() + offset); | 173 return Memory::Object_at(fp() + offset); |
| 174 } | 174 } |
| 175 | 175 |
| 176 | 176 |
| 177 } } // namespace v8::internal | 177 } } // namespace v8::internal |
| 178 | 178 |
| 179 #endif | 179 #endif |
| OLD | NEW |