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

Unified Diff: runtime/vm/intermediate_language.h

Issue 68663003: Merge TRUNCDIV and MOD into TRUNCDIV_MOD single operation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
===================================================================
--- runtime/vm/intermediate_language.h (revision 30236)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -38,12 +38,12 @@
// See intrinsifier for fingerprint computation.
#define RECOGNIZED_LIST(V) \
V(::, identical, ObjectIdentical, 496869842) \
- V(Object, ==, ObjectEquals, 1068471689) \
- V(Object, Object., ObjectConstructor, 1058615085) \
- V(Object, get:_cid, ObjectCid, 1498751301) \
- V(_List, get:length, ObjectArrayLength, 215183186) \
- V(_ImmutableList, get:length, ImmutableArrayLength, 578762861) \
- V(_TypedList, get:length, TypedDataLength, 26646119) \
+ V(Object, ==, ObjectEquals, 695995403) \
+ V(Object, Object., ObjectConstructor, 1058674667) \
+ V(Object, get:_cid, ObjectCid, 1498810883) \
+ V(_List, get:length, ObjectArrayLength, 215242768) \
+ V(_ImmutableList, get:length, ImmutableArrayLength, 578822443) \
+ V(_TypedList, get:length, TypedDataLength, 26705701) \
V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \
V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \
V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \
@@ -54,27 +54,27 @@
V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \
V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \
V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 163795162) \
- V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1793798234) \
- V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 67253374) \
- V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 10467750) \
- V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 1596986894) \
- V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 868037529) \
- V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1776345006) \
- V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1807927533) \
- V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 399659907) \
- V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1612092224) \
- V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 74799321) \
- V(_GrowableList, get:length, GrowableArrayLength, 1654255033) \
- V(_GrowableList, get:_capacity, GrowableArrayCapacity, 817119794) \
- V(_GrowableList, _setData, GrowableArraySetData, 970836644) \
- V(_GrowableList, _setLength, GrowableArraySetLength, 823005129) \
- V(_StringBase, get:length, StringBaseLength, 1483549854) \
- V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1599468763) \
+ V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 347379164) \
+ V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 768317952) \
+ V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 711532328) \
+ V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 150567824) \
+ V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1569102107) \
+ V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 329925936) \
+ V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 361508463) \
+ V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 1100724485) \
+ V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 165673154) \
+ V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 775863899) \
+ V(_GrowableList, get:length, GrowableArrayLength, 1654314615) \
+ V(_GrowableList, get:_capacity, GrowableArrayCapacity, 817179376) \
+ V(_GrowableList, _setData, GrowableArraySetData, 161490018) \
+ V(_GrowableList, _setLength, GrowableArraySetLength, 13658503) \
+ V(_StringBase, get:length, StringBaseLength, 1483609436) \
+ V(_StringBase, get:isEmpty, StringBaseIsEmpty, 891223769) \
V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1958436584) \
- V(_StringBase, [], StringBaseCharAt, 585372763) \
- V(_StringBase, _interpolate, StringBaseInterpolate, 2013078843) \
- V(_OneByteString, _setAt, OneByteStringSetAt, 658941003) \
- V(_IntegerImplementation, toDouble, IntegerToDouble, 1947355341) \
+ V(_StringBase, [], StringBaseCharAt, 1923509785) \
+ V(_StringBase, _interpolate, StringBaseInterpolate, 243135171) \
+ V(_OneByteString, _setAt, OneByteStringSetAt, 1360005581) \
+ V(_IntegerImplementation, toDouble, IntegerToDouble, 1818069007) \
V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \
2095943661) \
V(_Double, toInt, DoubleToInteger, 1328149975) \
@@ -86,21 +86,21 @@
V(::, sqrt, MathSqrt, 465520247) \
V(::, sin, MathSin, 730107143) \
V(::, cos, MathCos, 1282146521) \
- V(::, min, MathMin, 1022567780) \
- V(::, max, MathMax, 612058870) \
- V(::, _doublePow, MathDoublePow, 1591032382) \
- V(Float32x4, Float32x4., Float32x4Constructor, 1314950569) \
- V(Float32x4, Float32x4.zero, Float32x4Zero, 1432281809) \
- V(Float32x4, Float32x4.splat, Float32x4Splat, 1148280442) \
+ V(::, min, MathMin, 1554754212) \
+ V(::, max, MathMax, 1367045238) \
+ V(::, _doublePow, MathDoublePow, 1316755064) \
+ V(Float32x4, Float32x4., Float32x4Constructor, 225029739) \
+ V(Float32x4, Float32x4.zero, Float32x4Zero, 1118078867) \
+ V(Float32x4, Float32x4.splat, Float32x4Splat, 1172331128) \
V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, \
- 872145194) \
+ 896195880) \
V(_Float32x4, shuffle, Float32x4Shuffle, 1178727105) \
V(_Float32x4, shuffleMix, Float32x4ShuffleMix, 927956119) \
- V(_Float32x4, get:x, Float32x4ShuffleX, 1351747629) \
- V(_Float32x4, get:y, Float32x4ShuffleY, 217416201) \
- V(_Float32x4, get:z, Float32x4ShuffleZ, 2144953512) \
- V(_Float32x4, get:w, Float32x4ShuffleW, 1447728910) \
- V(_Float32x4, get:signMask, Float32x4GetSignMask, 1198879138) \
+ V(_Float32x4, get:x, Float32x4ShuffleX, 1351807211) \
+ V(_Float32x4, get:y, Float32x4ShuffleY, 217475783) \
+ V(_Float32x4, get:z, Float32x4ShuffleZ, 2145013094) \
+ V(_Float32x4, get:w, Float32x4ShuffleW, 1447788492) \
+ V(_Float32x4, get:signMask, Float32x4GetSignMask, 1198938720) \
V(_Float32x4, _cmpequal, Float32x4Equal, 1944929844) \
V(_Float32x4, _cmpgt, Float32x4GreaterThan, 499965951) \
V(_Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, 1003006845) \
@@ -120,66 +120,66 @@
V(_Float32x4, withY, Float32x4WithY, 1806065938) \
V(_Float32x4, withZ, Float32x4WithZ, 320659034) \
V(_Float32x4, withW, Float32x4WithW, 1108437255) \
- V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, 295910141) \
+ V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, 80026303) \
V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, \
- 893850947) \
- V(_Int32x4, get:flagX, Int32x4GetFlagX, 729265594) \
- V(_Int32x4, get:flagY, Int32x4GetFlagY, 430870640) \
- V(_Int32x4, get:flagZ, Int32x4GetFlagZ, 1981106287) \
- V(_Int32x4, get:flagW, Int32x4GetFlagW, 629385890) \
- V(_Int32x4, get:signMask, Int32x4GetSignMask, 1598817537) \
+ 917901633) \
+ V(_Int32x4, get:flagX, Int32x4GetFlagX, 729325176) \
+ V(_Int32x4, get:flagY, Int32x4GetFlagY, 430930222) \
+ V(_Int32x4, get:flagZ, Int32x4GetFlagZ, 1981165869) \
+ V(_Int32x4, get:flagW, Int32x4GetFlagW, 629445472) \
+ V(_Int32x4, get:signMask, Int32x4GetSignMask, 1598877119) \
V(_Int32x4, shuffle, Int32x4Shuffle, 599391160) \
V(_Int32x4, shuffleMix, Int32x4ShuffleMix, 1491641197) \
- V(_Int32x4, select, Int32x4Select, 194269493) \
+ V(_Int32x4, select, Int32x4Select, 1532406515) \
V(_Int32x4, withFlagX, Int32x4WithFlagX, 63248661) \
V(_Int32x4, withFlagY, Int32x4WithFlagY, 1498755850) \
V(_Int32x4, withFlagZ, Int32x4WithFlagZ, 457856832) \
V(_Int32x4, withFlagW, Int32x4WithFlagW, 690638779) \
- V(_List, [], ObjectArrayGetIndexed, 675155875) \
- V(_List, []=, ObjectArraySetIndexed, 1228569706) \
- V(_ImmutableList, [], ImmutableArrayGetIndexed, 1768793932) \
- V(_GrowableList, [], GrowableArrayGetIndexed, 1282104248) \
- V(_GrowableList, []=, GrowableArraySetIndexed, 807019110) \
- V(_Float32Array, [], Float32ArrayGetIndexed, 1461569776) \
- V(_Float32Array, []=, Float32ArraySetIndexed, 1318757370) \
- V(_Float64Array, [], Float64ArrayGetIndexed, 1107401598) \
- V(_Float64Array, []=, Float64ArraySetIndexed, 377873481) \
- V(_Int8Array, [], Int8ArrayGetIndexed, 436208801) \
- V(_Int8Array, []=, Int8ArraySetIndexed, 1257450859) \
- V(_Uint8Array, [], Uint8ArrayGetIndexed, 738731818) \
- V(_Uint8Array, []=, Uint8ArraySetIndexed, 1414236073) \
- V(_Uint8ClampedArray, [], Uint8ClampedArrayGetIndexed, 1529176866) \
- V(_Uint8ClampedArray, []=, Uint8ClampedArraySetIndexed, 1902969517) \
- V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 2067666479) \
- V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 745187964) \
+ V(_List, [], ObjectArrayGetIndexed, 2013292897) \
+ V(_List, []=, ObjectArraySetIndexed, 40316074) \
+ V(_ImmutableList, [], ImmutableArrayGetIndexed, 959447306) \
+ V(_GrowableList, [], GrowableArrayGetIndexed, 472757622) \
+ V(_GrowableList, []=, GrowableArraySetIndexed, 1766249126) \
+ V(_Float32Array, [], Float32ArrayGetIndexed, 1934136302) \
+ V(_Float32Array, []=, Float32ArraySetIndexed, 1645961720) \
+ V(_Float64Array, [], Float64ArrayGetIndexed, 1579968124) \
+ V(_Float64Array, []=, Float64ArraySetIndexed, 705077831) \
+ V(_Int8Array, [], Int8ArrayGetIndexed, 908775327) \
+ V(_Int8Array, []=, Int8ArraySetIndexed, 1573963437) \
+ V(_Uint8Array, [], Uint8ArrayGetIndexed, 1211298344) \
+ V(_Uint8Array, []=, Uint8ArraySetIndexed, 1730748651) \
+ V(_Uint8ClampedArray, [], Uint8ClampedArrayGetIndexed, 2001743392) \
+ V(_Uint8ClampedArray, []=, Uint8ClampedArraySetIndexed, 71998447) \
+ V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 392749357) \
+ V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 1061700542) \
V(_ExternalUint8ClampedArray, [], ExternalUint8ClampedArrayGetIndexed, \
- 2068189358) \
+ 393272236) \
V(_ExternalUint8ClampedArray, []=, ExternalUint8ClampedArraySetIndexed, \
- 1251233632) \
- V(_Int16Array, [], Int16ArrayGetIndexed, 1428082706) \
- V(_Int16Array, []=, Int16ArraySetIndexed, 266849900) \
- V(_Uint16Array, [], Uint16ArrayGetIndexed, 1050460407) \
- V(_Uint16Array, []=, Uint16ArraySetIndexed, 1895506641) \
- V(_Int32Array, [], Int32ArrayGetIndexed, 1023604903) \
- V(_Int32Array, []=, Int32ArraySetIndexed, 599753059) \
- V(_Uint32Array, [], Uint32ArrayGetIndexed, 1658205989) \
- V(_Uint32Array, []=, Uint32ArraySetIndexed, 1065461643) \
- V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 2137410088) \
- V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 1583018506) \
- V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 1911863146) \
- V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 973572811) \
+ 1567746210) \
+ V(_Int16Array, [], Int16ArrayGetIndexed, 1900649232) \
+ V(_Int16Array, []=, Int16ArraySetIndexed, 583362478) \
+ V(_Uint16Array, [], Uint16ArrayGetIndexed, 1523026933) \
+ V(_Uint16Array, []=, Uint16ArraySetIndexed, 64535571) \
+ V(_Int32Array, [], Int32ArrayGetIndexed, 1496171429) \
+ V(_Int32Array, []=, Int32ArraySetIndexed, 916265637) \
+ V(_Uint32Array, [], Uint32ArrayGetIndexed, 2130772515) \
+ V(_Uint32Array, []=, Uint32ArraySetIndexed, 1381974221) \
+ V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 462492966) \
+ V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 1910222856) \
+ V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 236946024) \
+ V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 1300777161) \
// A list of core function that should always be inlined.
#define INLINE_WHITE_LIST(V) \
- V(_List, get:length, ObjectArrayLength, 215183186) \
- V(_ImmutableList, get:length, ImmutableArrayLength, 578762861) \
- V(_TypedList, get:length, TypedDataLength, 26646119) \
- V(_GrowableList, get:length, GrowableArrayLength, 1654255033) \
- V(_StringBase, get:length, StringBaseLength, 1483549854) \
- V(ListIterator, moveNext, ListIteratorMoveNext, 881367324) \
- V(_GrowableList, get:iterator, GrowableArrayIterator, 1155241039) \
- V(_GrowableList, forEach, GrowableArrayForEach, 195359970) \
+ V(_List, get:length, ObjectArrayLength, 215242768) \
+ V(_ImmutableList, get:length, ImmutableArrayLength, 578822443) \
+ V(_TypedList, get:length, TypedDataLength, 26705701) \
+ V(_GrowableList, get:length, GrowableArrayLength, 1654314615) \
+ V(_StringBase, get:length, StringBaseLength, 1483609436) \
+ V(ListIterator, moveNext, ListIteratorMoveNext, 314757150) \
+ V(_GrowableList, get:iterator, GrowableArrayIterator, 855468307) \
+ V(_GrowableList, forEach, GrowableArrayForEach, 1530186140) \
// A list of core functions that internally dispatch based on received id.
#define POLYMORPHIC_TARGET_LIST(V) \

Powered by Google App Engine
This is Rietveld 408576698