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

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

Issue 240213004: Fixes a problem with the recovery of contexts in the debugger at closure calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698