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

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

Issue 16888013: Revert "Initial implementation of on-stack replacement (OSR)." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/stub_code_ia32.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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
78 protected: 79 protected:
79 StackFrame() : fp_(0), sp_(0), pc_(0) { } 80 StackFrame() : fp_(0), sp_(0), pc_(0) { }
80 81
81 // Name of the frame, used for generic frame printing functionality. 82 // Name of the frame, used for generic frame printing functionality.
82 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; } 83 virtual const char* GetName() const { return IsStubFrame()? "stub" : "dart"; }
83 84
84 private: 85 private:
85 RawCode* GetCodeObject() const; 86 RawCode* GetCodeObject() const;
86 87
87 uword GetCallerSp() const { 88 uword GetCallerSp() const {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 uword pc_; 289 uword pc_;
289 GrowableArray<DeoptInstr*> deopt_instructions_; 290 GrowableArray<DeoptInstr*> deopt_instructions_;
290 Array& object_table_; 291 Array& object_table_;
291 292
292 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator); 293 DISALLOW_COPY_AND_ASSIGN(InlinedFunctionsIterator);
293 }; 294 };
294 295
295 } // namespace dart 296 } // namespace dart
296 297
297 #endif // VM_STACK_FRAME_H_ 298 #endif // VM_STACK_FRAME_H_
299
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698