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

Unified Diff: runtime/vm/object.h

Issue 142233002: Make sure all new Code objects have a non-null PcDescriptors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index a41379387f8a9c0e7bf9e17e9fb88b2125b5d349..2a107dbc680d08490de9a1d8bedfa98e0eaa61dd 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -368,6 +368,11 @@ class Object {
return *empty_array_;
}
+ static const PcDescriptors& empty_descriptors() {
+ ASSERT(empty_descriptors_ != NULL);
+ return *empty_descriptors_;
+ }
+
// The sentinel is a value that cannot be produced by Dart code.
// It can be used to mark special values, for example to distinguish
// "uninitialized" fields.
@@ -614,6 +619,7 @@ class Object {
static Instance* null_instance_;
static AbstractTypeArguments* null_abstract_type_arguments_;
static Array* empty_array_;
+ static PcDescriptors* empty_descriptors_;
static Instance* sentinel_;
static Instance* transition_sentinel_;
static Instance* unknown_constant_;
@@ -2992,6 +2998,7 @@ class PcDescriptors : public Object {
FINAL_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors, Object);
friend class Class;
+ friend class Object;
};
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698