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

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

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « runtime/vm/source_report.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual bool IsEntryFrame() const { return false; } 75 virtual bool IsEntryFrame() const { return false; }
76 virtual bool IsExitFrame() const { return false; } 76 virtual bool IsExitFrame() const { return false; }
77 77
78 RawFunction* LookupDartFunction() const; 78 RawFunction* LookupDartFunction() const;
79 RawCode* LookupDartCode() const; 79 RawCode* LookupDartCode() const;
80 bool FindExceptionHandler(Thread* thread, 80 bool FindExceptionHandler(Thread* thread,
81 uword* handler_pc, 81 uword* handler_pc,
82 bool* needs_stacktrace, 82 bool* needs_stacktrace,
83 bool* is_catch_all) const; 83 bool* is_catch_all) const;
84 // Returns token_pos of the pc(), or -1 if none exists. 84 // Returns token_pos of the pc(), or -1 if none exists.
85 intptr_t GetTokenPos() const; 85 TokenPosition GetTokenPos() const;
86 86
87 protected: 87 protected:
88 explicit StackFrame(Thread* thread) 88 explicit StackFrame(Thread* thread)
89 : fp_(0), sp_(0), pc_(0), thread_(thread) { } 89 : fp_(0), sp_(0), pc_(0), thread_(thread) { }
90 90
91 // Name of the frame, used for generic frame printing functionality. 91 // Name of the frame, used for generic frame printing functionality.
92 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; } 92 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; }
93 93
94 Isolate* isolate() const { return thread_->isolate(); } 94 Isolate* isolate() const { return thread_->isolate(); }
95 95
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 uword pc_; 332 uword pc_;
333 GrowableArray<DeoptInstr*> deopt_instructions_; 333 GrowableArray<DeoptInstr*> deopt_instructions_;
334 ObjectPool& object_table_; 334 ObjectPool& object_table_;
335 335
336 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); 336 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator);
337 }; 337 };
338 338
339 } // namespace dart 339 } // namespace dart
340 340
341 #endif // VM_STACK_FRAME_H_ 341 #endif // VM_STACK_FRAME_H_
OLDNEW
« no previous file with comments | « runtime/vm/source_report.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698