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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 inline void JavaScriptFrame::set_receiver(Object* value) { | 267 inline void JavaScriptFrame::set_receiver(Object* value) { |
268 Memory::Object_at(GetParameterSlot(-1)) = value; | 268 Memory::Object_at(GetParameterSlot(-1)) = value; |
269 } | 269 } |
270 | 270 |
271 | 271 |
272 inline bool JavaScriptFrame::has_adapted_arguments() const { | 272 inline bool JavaScriptFrame::has_adapted_arguments() const { |
273 return IsArgumentsAdaptorFrame(caller_fp()); | 273 return IsArgumentsAdaptorFrame(caller_fp()); |
274 } | 274 } |
275 | 275 |
276 | 276 |
277 inline Object* JavaScriptFrame::function() const { | 277 inline JSFunction* JavaScriptFrame::function() const { |
278 Object* result = function_slot_object(); | 278 Object* result = function_slot_object(); |
279 ASSERT(result->IsJSFunction()); | 279 ASSERT(result->IsJSFunction()); |
Toon Verwaest
2013/07/11 15:23:46
You can remove this assert, it's implicit in the c
titzer
2013/07/11 15:30:19
Done.
| |
280 return result; | 280 return JSFunction::cast(result); |
281 } | 281 } |
282 | 282 |
283 | 283 |
284 inline StubFrame::StubFrame(StackFrameIteratorBase* iterator) | 284 inline StubFrame::StubFrame(StackFrameIteratorBase* iterator) |
285 : StandardFrame(iterator) { | 285 : StandardFrame(iterator) { |
286 } | 286 } |
287 | 287 |
288 | 288 |
289 inline OptimizedFrame::OptimizedFrame(StackFrameIteratorBase* iterator) | 289 inline OptimizedFrame::OptimizedFrame(StackFrameIteratorBase* iterator) |
290 : JavaScriptFrame(iterator) { | 290 : JavaScriptFrame(iterator) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 inline JavaScriptFrame* SafeStackFrameIterator::frame() const { | 339 inline JavaScriptFrame* SafeStackFrameIterator::frame() const { |
340 ASSERT(!done()); | 340 ASSERT(!done()); |
341 ASSERT(frame_->is_java_script()); | 341 ASSERT(frame_->is_java_script()); |
342 return static_cast<JavaScriptFrame*>(frame_); | 342 return static_cast<JavaScriptFrame*>(frame_); |
343 } | 343 } |
344 | 344 |
345 | 345 |
346 } } // namespace v8::internal | 346 } } // namespace v8::internal |
347 | 347 |
348 #endif // V8_FRAMES_INL_H_ | 348 #endif // V8_FRAMES_INL_H_ |
OLD | NEW |