| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef VM_STACK_FRAME_H_ | 5 #ifndef VM_STACK_FRAME_H_ |
| 6 #define VM_STACK_FRAME_H_ | 6 #define VM_STACK_FRAME_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/stub_code.h" | 10 #include "vm/stub_code.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 return 0; | 49 return 0; |
| 50 } | 50 } |
| 51 | 51 |
| 52 void set_pc(uword value) { | 52 void set_pc(uword value) { |
| 53 *reinterpret_cast<uword*>(sp_ + (kSavedPcSlotFromSp * kWordSize)) = value; | 53 *reinterpret_cast<uword*>(sp_ + (kSavedPcSlotFromSp * kWordSize)) = value; |
| 54 } | 54 } |
| 55 | 55 |
| 56 // Visit objects in the frame. | 56 // Visit objects in the frame. |
| 57 virtual void VisitObjectPointers(ObjectPointerVisitor* visitor); | 57 virtual void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 58 | 58 |
| 59 // Print a frame. | 59 const char* ToCString() const; |
| 60 virtual void Print() const; | |
| 61 | 60 |
| 62 // Check validity of a frame, used for assertion purposes. | 61 // Check validity of a frame, used for assertion purposes. |
| 63 virtual bool IsValid() const; | 62 virtual bool IsValid() const; |
| 64 | 63 |
| 65 // Frame type. | 64 // Frame type. |
| 66 virtual bool IsDartFrame() const { | 65 virtual bool IsDartFrame() const { |
| 67 ASSERT(IsValid()); | 66 ASSERT(IsValid()); |
| 68 return !(IsEntryFrame() || IsExitFrame() || IsStubFrame()); | 67 return !(IsEntryFrame() || IsExitFrame() || IsStubFrame()); |
| 69 } | 68 } |
| 70 virtual bool IsStubFrame() const; | 69 virtual bool IsStubFrame() const; |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 uword pc_; | 294 uword pc_; |
| 296 GrowableArray<DeoptInstr*> deopt_instructions_; | 295 GrowableArray<DeoptInstr*> deopt_instructions_; |
| 297 Array& object_table_; | 296 Array& object_table_; |
| 298 | 297 |
| 299 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); | 298 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); |
| 300 }; | 299 }; |
| 301 | 300 |
| 302 } // namespace dart | 301 } // namespace dart |
| 303 | 302 |
| 304 #endif // VM_STACK_FRAME_H_ | 303 #endif // VM_STACK_FRAME_H_ |
| OLD | NEW |