Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: runtime/vm/stack_frame.h

Issue 23445012: Mark exception handlers if they have a stacktrace specified. Do not build a stacktrace if the handl… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual bool IsDartFrame() const { 64 virtual bool IsDartFrame() const {
65 ASSERT(IsValid()); 65 ASSERT(IsValid());
66 return !(IsEntryFrame() || IsExitFrame() || IsStubFrame()); 66 return !(IsEntryFrame() || IsExitFrame() || IsStubFrame());
67 } 67 }
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, bool* needs_stacktrace) 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 protected: 78 protected:
79 StackFrame() : fp_(0), sp_(0), pc_(0) { } 79 StackFrame() : fp_(0), sp_(0), pc_(0) { }
80 80
81 // Name of the frame, used for generic frame printing functionality. 81 // Name of the frame, used for generic frame printing functionality.
82 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; } 82 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; }
83 83
84 private: 84 private:
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 uword pc_; 288 uword pc_;
289 GrowableArray<DeoptInstr*> deopt_instructions_; 289 GrowableArray<DeoptInstr*> deopt_instructions_;
290 Array& object_table_; 290 Array& object_table_;
291 291
292 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); 292 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator);
293 }; 293 };
294 294
295 } // namespace dart 295 } // namespace dart
296 296
297 #endif // VM_STACK_FRAME_H_ 297 #endif // VM_STACK_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698