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

Unified Diff: runtime/vm/object.h

Issue 169223005: Simplify type argument instantiation cache lookup by introducing an array (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 | « runtime/vm/intermediate_language_x64.cc ('k') | 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
===================================================================
--- runtime/vm/object.h (revision 32754)
+++ runtime/vm/object.h (working copy)
@@ -367,6 +367,10 @@
ASSERT(empty_array_ != NULL);
return *empty_array_;
}
+ static const Array& zero_array() {
+ ASSERT(zero_array_ != NULL);
+ return *zero_array_;
+ }
static const PcDescriptors& empty_descriptors() {
ASSERT(empty_descriptors_ != NULL);
@@ -614,6 +618,7 @@
static Instance* null_instance_;
static TypeArguments* null_type_arguments_;
static Array* empty_array_;
+ static Array* zero_array_;
static PcDescriptors* empty_descriptors_;
static Instance* sentinel_;
static Instance* transition_sentinel_;
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698