| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 142 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 143 | 143 |
| 144 // Caller SP-relative. | 144 // Caller SP-relative. |
| 145 static const int kParam0Offset = -2 * kPointerSize; | 145 static const int kParam0Offset = -2 * kPointerSize; |
| 146 static const int kReceiverOffset = -1 * kPointerSize; | 146 static const int kReceiverOffset = -1 * kPointerSize; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 | 149 |
| 150 class ArgumentsAdaptorFrameConstants : public AllStatic { | 150 class ArgumentsAdaptorFrameConstants : public AllStatic { |
| 151 public: | 151 public: |
| 152 // FP-relative. |
| 152 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 153 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 154 |
| 153 static const int kFrameSize = | 155 static const int kFrameSize = |
| 154 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 156 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 | 159 |
| 160 class ConstructFrameConstants : public AllStatic { |
| 161 public: |
| 162 // FP-relative. |
| 163 static const int kImplicitReceiverOffset = -6 * kPointerSize; |
| 164 static const int kConstructorOffset = -5 * kPointerSize; |
| 165 static const int kLengthOffset = -4 * kPointerSize; |
| 166 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 167 |
| 168 static const int kFrameSize = |
| 169 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize; |
| 170 }; |
| 171 |
| 172 |
| 158 class InternalFrameConstants : public AllStatic { | 173 class InternalFrameConstants : public AllStatic { |
| 159 public: | 174 public: |
| 175 // FP-relative. |
| 160 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 176 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 161 }; | 177 }; |
| 162 | 178 |
| 163 | 179 |
| 164 inline Object* JavaScriptFrame::function_slot_object() const { | 180 inline Object* JavaScriptFrame::function_slot_object() const { |
| 165 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 181 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 166 return Memory::Object_at(fp() + offset); | 182 return Memory::Object_at(fp() + offset); |
| 167 } | 183 } |
| 168 | 184 |
| 169 | 185 |
| 170 } } // namespace v8::internal | 186 } } // namespace v8::internal |
| 171 | 187 |
| 172 #endif // V8_ARM_FRAMES_ARM_H_ | 188 #endif // V8_ARM_FRAMES_ARM_H_ |
| OLD | NEW |