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

Unified Diff: runtime/vm/intermediate_language.h

Issue 26191002: Hook ByteArrayViewLoad operations into polymorphic inliner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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_optimizer.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
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 4bfc4636cef9a5d5a3b0a67b12517e2b61a46da1..e336c4622efe7d6ac45e6acad3337e20ce29de02 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -177,8 +177,19 @@ class Range;
V(_StringBase, get:length, StringBaseLength, 1483520063) \
V(ListIterator, moveNext, ListIteratorMoveNext, 90930587) \
V(_GrowableList, get:iterator, GrowableArrayIterator, 1305127405) \
- V(_GrowableList, forEach, GrowableArrayForEach, 1675430533)
+ V(_GrowableList, forEach, GrowableArrayForEach, 1675430533) \
+// A list of core functions that internally dispatch based on received id.
+#define POLYMORPHC_TARGET_LIST(V) \
+ V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \
+ V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \
+ V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \
+ V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \
+ V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \
+ V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \
+ V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \
+ V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \
+ V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \
// Class that recognizes the name and owner of a function and returns the
// corresponding enum. See RECOGNIZED_LIST above for list of recognizable
@@ -194,6 +205,7 @@ RECOGNIZED_LIST(DEFINE_ENUM_LIST)
static Kind RecognizeKind(const Function& function);
static bool AlwaysInline(const Function& function);
+ static bool PolymorphicTarget(const Function& function);
static const char* KindToCString(Kind kind);
static void InitializeState();
};
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698