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

Unified Diff: runtime/vm/intermediate_language.h

Issue 19223002: Always try to inline certain core library functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 25008)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -121,6 +121,11 @@
V(_Uint32x4, _toFloat32x4, Uint32x4ToUint32x4, 912844231) \
+// A list of core function that should always be inlined.
+#define INLINE_WHITE_LIST(V) \
+ V(ListIterator, moveNext, ListIteratorMoveNext, 203118278) \
+ V(_GrowableObjectArray, get:iterator, GrowableArrayIterator, 810824939)
+
// Class that recognizes the name and owner of a function and returns the
// corresponding enum. See RECOGNIZED_LIST above for list of recognizable
// functions.
@@ -134,6 +139,7 @@
};
static Kind RecognizeKind(const Function& function);
+ static bool AlwaysInline(const Function& function);
static const char* KindToCString(Kind kind);
};
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698