| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/stack_frame.h" | 5 #include "vm/stack_frame.h" |
| 6 | 6 |
| 7 #include "vm/assembler_macros.h" | 7 #include "vm/assembler_macros.h" |
| 8 #include "vm/deopt_instructions.h" | 8 #include "vm/deopt_instructions.h" |
| 9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 void StackFrame::Print() const { | 28 void StackFrame::Print() const { |
| 29 OS::Print("[%-8s : sp(%#"Px") ]\n", GetName(), sp()); | 29 OS::Print("[%-8s : sp(%#"Px") ]\n", GetName(), sp()); |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 void ExitFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 33 void ExitFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
| 34 // There are no objects to visit in this frame. | 34 // There are no objects to visit in this frame. |
| 35 } | 35 } |
| 36 | 36 |
| 37 | 37 |
| 38 RawContext* EntryFrame::SavedContext() const { |
| 39 return *(reinterpret_cast<RawContext**>(fp() + SavedContextOffset())); |
| 40 } |
| 41 |
| 42 |
| 38 void EntryFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 43 void EntryFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
| 39 // Visit objects between SP and (FP - callee_save_area). | 44 // Visit objects between SP and (FP - callee_save_area). |
| 40 ASSERT(visitor != NULL); | 45 ASSERT(visitor != NULL); |
| 41 RawObject** start = reinterpret_cast<RawObject**>(sp()); | 46 RawObject** start = reinterpret_cast<RawObject**>(sp()); |
| 42 RawObject** end = reinterpret_cast<RawObject**>( | 47 RawObject** end = reinterpret_cast<RawObject**>( |
| 43 fp() - kWordSize + ExitLinkOffset()); | 48 fp() - kWordSize + ExitLinkOffset()); |
| 44 visitor->VisitPointers(start, end); | 49 visitor->VisitPointers(start, end); |
| 45 } | 50 } |
| 46 | 51 |
| 47 | 52 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 &func); | 337 &func); |
| 333 code_ = func.unoptimized_code(); | 338 code_ = func.unoptimized_code(); |
| 334 function_ = func.raw(); | 339 function_ = func.raw(); |
| 335 return; | 340 return; |
| 336 } | 341 } |
| 337 } | 342 } |
| 338 SetDone(); | 343 SetDone(); |
| 339 } | 344 } |
| 340 | 345 |
| 341 } // namespace dart | 346 } // namespace dart |
| OLD | NEW |