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

Unified Diff: vm/raw_object.cc

Issue 11722026: Do not emit pointer information for embedded singleton VM Isolate objects while generating code. Th… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 12 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
« no previous file with comments | « vm/raw_object.h ('k') | vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.cc
===================================================================
--- vm/raw_object.cc (revision 16644)
+++ vm/raw_object.cc (working copy)
@@ -13,6 +13,16 @@
namespace dart {
+bool RawObject::IsVMHeapObject() const {
+ // TODO(asiva): Need a better way to represent VM heap objects, for
+ // now we use the premarked property for identifying objects in the
+ // VM heap.
+ ASSERT(IsHeapObject());
+ ASSERT(!Isolate::Current()->heap()->gc_in_progress());
+ return IsMarked();
+}
+
+
void RawObject::Validate(Isolate* isolate) const {
if (Object::null_class_ == reinterpret_cast<RawClass*>(kHeapObjectTag)) {
// Validation relies on properly initialized class classes. Skip if the
« no previous file with comments | « vm/raw_object.h ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698