| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual bool IsStubFrame() const; | 68 virtual bool IsStubFrame() const; |
| 69 virtual bool IsEntryFrame() const { return false; } | 69 virtual bool IsEntryFrame() const { return false; } |
| 70 virtual bool IsExitFrame() const { return false; } | 70 virtual bool IsExitFrame() const { return false; } |
| 71 | 71 |
| 72 RawFunction* LookupDartFunction() const; | 72 RawFunction* LookupDartFunction() const; |
| 73 RawCode* LookupDartCode() const; | 73 RawCode* LookupDartCode() const; |
| 74 bool FindExceptionHandler(uword* handler_pc) const; | 74 bool FindExceptionHandler(uword* handler_pc) const; |
| 75 // Returns token_pos of the pc(), or -1 if none exists. | 75 // Returns token_pos of the pc(), or -1 if none exists. |
| 76 intptr_t GetTokenPos() const; | 76 intptr_t GetTokenPos() const; |
| 77 | 77 |
| 78 | |
| 79 protected: | 78 protected: |
| 80 StackFrame() : fp_(0), sp_(0), pc_(0) { } | 79 StackFrame() : fp_(0), sp_(0), pc_(0) { } |
| 81 | 80 |
| 82 // Name of the frame, used for generic frame printing functionality. | 81 // Name of the frame, used for generic frame printing functionality. |
| 83 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; } | 82 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; } |
| 84 | 83 |
| 85 private: | 84 private: |
| 86 RawCode* GetCodeObject() const; | 85 RawCode* GetCodeObject() const; |
| 87 | 86 |
| 88 uword GetCallerSp() const { | 87 uword GetCallerSp() const { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 uword pc_; | 288 uword pc_; |
| 290 GrowableArray<DeoptInstr*> deopt_instructions_; | 289 GrowableArray<DeoptInstr*> deopt_instructions_; |
| 291 Array& object_table_; | 290 Array& object_table_; |
| 292 | 291 |
| 293 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); | 292 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); |
| 294 }; | 293 }; |
| 295 | 294 |
| 296 } // namespace dart | 295 } // namespace dart |
| 297 | 296 |
| 298 #endif // VM_STACK_FRAME_H_ | 297 #endif // VM_STACK_FRAME_H_ |
| 299 | |
| OLD | NEW |