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

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
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 57bad222844d9320e5e8863b2fb75ee7bd165309..70b59aef4b997ed4091ebd85462d498b5ad5ccab 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) \
Cutch 2013/10/22 03:46:16 These methods internally dispatch on the receiver
+ 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);
Cutch 2013/10/22 03:46:16 Returns true if the target is in the above POLYMOR
static const char* KindToCString(Kind kind);
static void InitializeState();
};

Powered by Google App Engine
This is Rietveld 408576698