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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 147 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
148 }; | 148 }; |
149 | 149 |
150 | 150 |
151 class InternalFrameConstants : public AllStatic { | 151 class InternalFrameConstants : public AllStatic { |
152 public: | 152 public: |
153 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 153 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
154 }; | 154 }; |
155 | 155 |
156 | 156 |
157 inline Object* JavaScriptFrame::function() const { | 157 inline Object* JavaScriptFrame::function_slot_object() const { |
158 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 158 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
159 Object* result = Memory::Object_at(fp() + offset); | 159 return Memory::Object_at(fp() + offset); |
160 ASSERT(result->IsJSFunction()); | |
161 return result; | |
162 } | 160 } |
163 | 161 |
164 | 162 |
165 // ---------------------------------------------------- | 163 // ---------------------------------------------------- |
166 | 164 |
167 | 165 |
168 | 166 |
169 | 167 |
170 // lower | Stack | | 168 // lower | Stack | |
171 // addresses | ^ | | 169 // addresses | ^ | |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 // | caller | | 370 // | caller | |
373 // | expressions | | 371 // | expressions | |
374 // | | | 372 // | | |
375 // higher | | | 373 // higher | | |
376 // addresses | JS frame | | 374 // addresses | JS frame | |
377 | 375 |
378 | 376 |
379 } } // namespace v8::internal | 377 } } // namespace v8::internal |
380 | 378 |
381 #endif // V8_FRAMES_ARM_H_ | 379 #endif // V8_FRAMES_ARM_H_ |
OLD | NEW |