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

Unified Diff: vm/stack_frame.h

Issue 10223015: Add a stub_code_space in the heap alongside code_space so that stub code generation happens here an… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« vm/heap.cc ('K') | « vm/object.cc ('k') | vm/stack_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stack_frame.h
===================================================================
--- vm/stack_frame.h (revision 6972)
+++ vm/stack_frame.h (working copy)
@@ -41,7 +41,10 @@
virtual bool IsValid() const;
// Frame type.
- virtual bool IsDartFrame() const { return LookupDartCode() != Code::null(); }
+ virtual bool IsDartFrame() const {
+ ASSERT(IsValid());
+ return !(IsStubFrame() || IsEntryFrame() || IsExitFrame());
+ }
virtual bool IsStubFrame() const;
virtual bool IsEntryFrame() const { return false; }
virtual bool IsExitFrame() const { return false; }
« vm/heap.cc ('K') | « vm/object.cc ('k') | vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698