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.h" | 7 #include "vm/assembler.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 GetName(), sp(), fp(), pc()); | 53 GetName(), sp(), fp(), pc()); |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 | 57 |
58 void ExitFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 58 void ExitFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
59 // There are no objects to visit in this frame. | 59 // There are no objects to visit in this frame. |
60 } | 60 } |
61 | 61 |
62 | 62 |
63 RawContext* EntryFrame::SavedContext() const { | |
64 return *(reinterpret_cast<RawContext**>( | |
65 fp() + (kSavedContextSlotFromEntryFp * kWordSize))); | |
66 } | |
67 | |
68 | |
69 void EntryFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 63 void EntryFrame::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
70 ASSERT(isolate() == Isolate::Current()); | 64 ASSERT(isolate() == Isolate::Current()); |
71 // Visit objects between SP and (FP - callee_save_area). | 65 // Visit objects between SP and (FP - callee_save_area). |
72 ASSERT(visitor != NULL); | 66 ASSERT(visitor != NULL); |
73 RawObject** first = reinterpret_cast<RawObject**>(sp()); | 67 RawObject** first = reinterpret_cast<RawObject**>(sp()); |
74 RawObject** last = reinterpret_cast<RawObject**>( | 68 RawObject** last = reinterpret_cast<RawObject**>( |
75 fp() + (kExitLinkSlotFromEntryFp - 1) * kWordSize); | 69 fp() + (kExitLinkSlotFromEntryFp - 1) * kWordSize); |
76 visitor->VisitPointers(first, last); | 70 visitor->VisitPointers(first, last); |
77 } | 71 } |
78 | 72 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 if (deopt_instr->kind() == DeoptInstr::kCallerFp) { | 479 if (deopt_instr->kind() == DeoptInstr::kCallerFp) { |
486 return (index - num_materializations_); | 480 return (index - num_materializations_); |
487 } | 481 } |
488 } | 482 } |
489 UNREACHABLE(); | 483 UNREACHABLE(); |
490 return 0; | 484 return 0; |
491 } | 485 } |
492 | 486 |
493 | 487 |
494 } // namespace dart | 488 } // namespace dart |
OLD | NEW |