| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 | 125 |
| 126 class InternalFrameConstants : public AllStatic { | 126 class InternalFrameConstants : public AllStatic { |
| 127 public: | 127 public: |
| 128 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 128 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 | 131 |
| 132 inline Object* JavaScriptFrame::function() const { | 132 inline Object* JavaScriptFrame::function_slot_object() const { |
| 133 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 133 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 134 Object* result = Memory::Object_at(fp() + offset); | 134 return Memory::Object_at(fp() + offset); |
| 135 ASSERT(result->IsJSFunction()); | |
| 136 return result; | |
| 137 } | 135 } |
| 138 | 136 |
| 139 | 137 |
| 140 // ---------------------------------------------------- | 138 // ---------------------------------------------------- |
| 141 | 139 |
| 142 | 140 |
| 143 | 141 |
| 144 | 142 |
| 145 // C Entry frames: | 143 // C Entry frames: |
| 146 | 144 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // 6 | argv | v | 282 // 6 | argv | v |
| 285 // +-------------+ <--- | 283 // +-------------+ <--- |
| 286 // | | | 284 // | | |
| 287 // higher | | | 285 // higher | | |
| 288 // addresses | | | 286 // addresses | | |
| 289 | 287 |
| 290 | 288 |
| 291 } } // namespace v8::internal | 289 } } // namespace v8::internal |
| 292 | 290 |
| 293 #endif // V8_FRAMES_IA32_H_ | 291 #endif // V8_FRAMES_IA32_H_ |
| OLD | NEW |