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

Unified Diff: runtime/vm/intrinsifier.h

Issue 12377082: Recognize more list factories. Recognizing list factories (Array, Bytearrays, etc) allows the type … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.h
===================================================================
--- runtime/vm/intrinsifier.h (revision 19395)
+++ runtime/vm/intrinsifier.h (working copy)
@@ -88,8 +88,12 @@
V(::, cos, Math_cos, 1749547468) \
+// Note that any intrinsified function is not inlined. Some optimizations
+// rely on seeing the factories below instead of their inlined code.
#define SCALARLIST_LIB_INTRINSIC_LIST(V) \
V(_ByteArrayBase, get:length, ByteArrayBase_getLength, 1098081765) \
+ V(_Int64Array, [], Int64Array_getIndexed, 504894128) \
+ V(_Uint64Array, [], Uint64Array_getIndexed, 31272531) \
V(_Int8Array, _new, Int8Array_new, 535958453) \
V(_Uint8Array, _new, Uint8Array_new, 604355565) \
V(_Uint8ClampedArray, _new, Uint8ClampedArray_new, 1070949952) \
@@ -97,14 +101,22 @@
V(_Uint16Array, _new, Uint16Array_new, 133542762) \
V(_Int32Array, _new, Int32Array_new, 8218286) \
V(_Uint32Array, _new, Uint32Array_new, 469402161) \
- V(_Int64Array, [], Int64Array_getIndexed, 504894128) \
V(_Int64Array, _new, Int64Array_new, 60605075) \
- V(_Uint64Array, [], Uint64Array_getIndexed, 31272531) \
V(_Uint64Array, _new, Uint64Array_new, 624354107) \
V(_Float32Array, _new, Float32Array_new, 109944959) \
V(_Float64Array, _new, Float64Array_new, 147668392) \
+ V(Int8List, ., Int8Array_factory, 817410959) \
+ V(Uint8List, ., Uint8Array_factory, 220896178) \
+ V(Uint8ClampedList, ., Uint8ClampedArray_factory, 422034060) \
+ V(Int16List, ., Int16Array_factory, 214246025) \
+ V(Uint16List, ., Uint16Array_factory, 137929963) \
+ V(Int32List, ., Int32Array_factory, 1977571010) \
+ V(Uint32List, ., Uint32Array_factory, 407638944) \
+ V(Int64List, ., Int64Array_factory, 885130273) \
+ V(Uint64List, ., Uint64Array_factory, 1471017221) \
+ V(Float32List, ., Float32Array_factory, 2035252095) \
+ V(Float64List, ., Float64Array_factory, 1037441059) \
-
// TODO(srdjan): Implement _FixedSizeArrayIterator, get:current and
// _FixedSizeArrayIterator, moveNext.
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698