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

Unified Diff: runtime/vm/object.h

Issue 565513002: Optimize LocalVarDescriptor objects for functions that have no local variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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') | runtime/vm/object.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 40130)
+++ runtime/vm/object.h (working copy)
@@ -393,6 +393,11 @@
return *empty_descriptors_;
}
+ static const LocalVarDescriptors& empty_var_descriptors() {
+ ASSERT(empty_var_descriptors_ != NULL);
+ return *empty_var_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.
@@ -670,6 +675,7 @@
static Array* empty_array_;
static Array* zero_array_;
static PcDescriptors* empty_descriptors_;
+ static LocalVarDescriptors* empty_var_descriptors_;
static Instance* sentinel_;
static Instance* transition_sentinel_;
static Instance* unknown_constant_;
@@ -3099,6 +3105,7 @@
private:
FINAL_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors, Object);
friend class Class;
+ friend class Object;
};
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698