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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 228 } |
229 | 229 |
230 | 230 |
231 inline Object* JavaScriptFrame::function() const { | 231 inline Object* JavaScriptFrame::function() const { |
232 Object* result = function_slot_object(); | 232 Object* result = function_slot_object(); |
233 ASSERT(result->IsJSFunction()); | 233 ASSERT(result->IsJSFunction()); |
234 return result; | 234 return result; |
235 } | 235 } |
236 | 236 |
237 | 237 |
| 238 inline CompiledFrame::CompiledFrame(StackFrameIterator* iterator) |
| 239 : JavaScriptFrame(iterator) { |
| 240 } |
| 241 |
| 242 |
| 243 inline StubFrame::StubFrame(StackFrameIterator* iterator) |
| 244 : CompiledFrame(iterator) { |
| 245 } |
| 246 |
| 247 |
238 inline OptimizedFrame::OptimizedFrame(StackFrameIterator* iterator) | 248 inline OptimizedFrame::OptimizedFrame(StackFrameIterator* iterator) |
239 : JavaScriptFrame(iterator) { | 249 : CompiledFrame(iterator) { |
240 } | 250 } |
241 | 251 |
242 | 252 |
243 inline ArgumentsAdaptorFrame::ArgumentsAdaptorFrame( | 253 inline ArgumentsAdaptorFrame::ArgumentsAdaptorFrame( |
244 StackFrameIterator* iterator) : JavaScriptFrame(iterator) { | 254 StackFrameIterator* iterator) : JavaScriptFrame(iterator) { |
245 } | 255 } |
246 | 256 |
247 | 257 |
248 inline InternalFrame::InternalFrame(StackFrameIterator* iterator) | 258 inline InternalFrame::InternalFrame(StackFrameIterator* iterator) |
249 : StandardFrame(iterator) { | 259 : StandardFrame(iterator) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 template<typename Iterator> | 329 template<typename Iterator> |
320 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { | 330 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { |
321 iterator_.Reset(); | 331 iterator_.Reset(); |
322 if (!done()) Advance(); | 332 if (!done()) Advance(); |
323 } | 333 } |
324 | 334 |
325 | 335 |
326 } } // namespace v8::internal | 336 } } // namespace v8::internal |
327 | 337 |
328 #endif // V8_FRAMES_INL_H_ | 338 #endif // V8_FRAMES_INL_H_ |
OLD | NEW |