OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_METHOD_RECOGNIZER_H_ | 5 #ifndef VM_METHOD_RECOGNIZER_H_ |
6 #define VM_METHOD_RECOGNIZER_H_ | 6 #define VM_METHOD_RECOGNIZER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
11 | 11 |
12 // (class-name, function-name, recognized enum, fingerprint). | 12 // (class-name, function-name, recognized enum, fingerprint). |
13 // When adding a new function add a 0 as fingerprint, build and run to get the | 13 // When adding a new function add a 0 as fingerprint, build and run to get the |
14 // correct fingerprint from the mismatch error. | 14 // correct fingerprint from the mismatch error. |
15 #define OTHER_RECOGNIZED_LIST(V) \ | 15 #define OTHER_RECOGNIZED_LIST(V) \ |
16 V(::, identical, ObjectIdentical, 317103244) \ | 16 V(::, identical, ObjectIdentical, 317103244) \ |
17 V(ClassID, getID, ClassIDgetID, 1385157717) \ | 17 V(ClassID, getID, ClassIDgetID, 1385157717) \ |
18 V(Object, Object., ObjectConstructor, 1746278398) \ | 18 V(Object, Object., ObjectConstructor, 1746278398) \ |
19 V(_List, ., ObjectArrayAllocate, 184405219) \ | 19 V(_List, ., ObjectArrayAllocate, 1661438741) \ |
20 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 187609847) \ | 20 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1508321565) \ |
21 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1826086346) \ | 21 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 953411007) \ |
22 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1174755987) \ | 22 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 433971756) \ |
23 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1936358273) \ | 23 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1329446488) \ |
24 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1123951931) \ | 24 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 137212209) \ |
25 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 853172551) \ | 25 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 499907480) \ |
26 V(_TypedList, _getInt64, ByteArrayBaseGetInt64, 1115954619) \ | 26 V(_TypedList, _getInt64, ByteArrayBaseGetInt64, 1639388276) \ |
27 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 165422183) \ | 27 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 1672834581) \ |
28 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1564825450) \ | 28 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 966634744) \ |
29 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1123952315) \ | 29 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1197581758) \ |
30 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 831892409) \ | 30 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 810805548) \ |
31 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 2043203289) \ | 31 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1317196265) \ |
32 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1759261408) \ | 32 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1328908284) \ |
33 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 267848339) \ | 33 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 1827614958) \ |
34 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 350952121) \ | 34 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 1694054572) \ |
35 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1170619358) \ | 35 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 915652649) \ |
36 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1325523969) \ | 36 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1958474336) \ |
37 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, 935451230) \ | 37 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, 1970687707) \ |
38 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 541136999) \ | 38 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1853026980) \ |
39 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 365317124) \ | 39 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 1197862362) \ |
40 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1766802707) \ | 40 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 2093630771) \ |
41 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 2075229300) \ | 41 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 1982971324) \ |
42 V(_StringBase, _interpolate, StringBaseInterpolate, 1597087225) \ | 42 V(_StringBase, _interpolate, StringBaseInterpolate, 1872292681) \ |
43 V(_IntegerImplementation, toDouble, IntegerToDouble, 150718448) \ | 43 V(_IntegerImplementation, toDouble, IntegerToDouble, 792762465) \ |
44 V(_Double, _add, DoubleAdd, 1190606283) \ | 44 V(_Double, _add, DoubleAdd, 2213216) \ |
45 V(_Double, _sub, DoubleSub, 1086286468) \ | 45 V(_Double, _sub, DoubleSub, 1100692582) \ |
46 V(_Double, _mul, DoubleMul, 166332351) \ | 46 V(_Double, _mul, DoubleMul, 436784097) \ |
47 V(_Double, _div, DoubleDiv, 821396195) \ | 47 V(_Double, _div, DoubleDiv, 953317135) \ |
48 V(::, min, MathMin, 1115051548) \ | 48 V(::, min, MathMin, 1115051548) \ |
49 V(::, max, MathMax, 1410473322) \ | 49 V(::, max, MathMax, 1410473322) \ |
50 V(::, _doublePow, MathDoublePow, 562154128) \ | 50 V(::, _doublePow, MathDoublePow, 1770960781) \ |
51 V(Float32x4, Float32x4., Float32x4Constructor, 93751705) \ | 51 V(Float32x4, Float32x4., Float32x4Constructor, 93751705) \ |
52 V(Float32x4, Float32x4.zero, Float32x4Zero, 1193954374) \ | 52 V(Float32x4, Float32x4.zero, Float32x4Zero, 1193954374) \ |
53 V(Float32x4, Float32x4.splat, Float32x4Splat, 12296613) \ | 53 V(Float32x4, Float32x4.splat, Float32x4Splat, 12296613) \ |
54 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, 1188039061)\ | 54 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, 1188039061)\ |
55 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, 1750763218) \ | 55 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, 1750763218) \ |
56 V(Float32x4, shuffle, Float32x4Shuffle, 2015957023) \ | 56 V(Float32x4, shuffle, Float32x4Shuffle, 2015957023) \ |
57 V(Float32x4, shuffleMix, Float32x4ShuffleMix, 1099087979) \ | 57 V(Float32x4, shuffleMix, Float32x4ShuffleMix, 1099087979) \ |
58 V(Float32x4, get:signMask, Float32x4GetSignMask, 487049875) \ | 58 V(Float32x4, get:signMask, Float32x4GetSignMask, 487049875) \ |
59 V(Float32x4, _cmpequal, Float32x4Equal, 1069901308) \ | 59 V(Float32x4, _cmpequal, Float32x4Equal, 127403211) \ |
60 V(Float32x4, _cmpgt, Float32x4GreaterThan, 2112381651) \ | 60 V(Float32x4, _cmpgt, Float32x4GreaterThan, 2118391173) \ |
61 V(Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, 1088241265) \ | 61 V(Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, 557807661) \ |
62 V(Float32x4, _cmplt, Float32x4LessThan, 2001171012) \ | 62 V(Float32x4, _cmplt, Float32x4LessThan, 1061691185) \ |
63 V(Float32x4, _cmplte, Float32x4LessThanOrEqual, 1568686387) \ | 63 V(Float32x4, _cmplte, Float32x4LessThanOrEqual, 102608993) \ |
64 V(Float32x4, _cmpnequal, Float32x4NotEqual, 1833412828) \ | 64 V(Float32x4, _cmpnequal, Float32x4NotEqual, 1873649982) \ |
65 V(Float32x4, _min, Float32x4Min, 1194113943) \ | 65 V(Float32x4, _min, Float32x4Min, 1158016632) \ |
66 V(Float32x4, _max, Float32x4Max, 1876936155) \ | 66 V(Float32x4, _max, Float32x4Max, 118915526) \ |
67 V(Float32x4, _scale, Float32x4Scale, 1176743640) \ | 67 V(Float32x4, _scale, Float32x4Scale, 415757469) \ |
68 V(Float32x4, _sqrt, Float32x4Sqrt, 526238610) \ | 68 V(Float32x4, _sqrt, Float32x4Sqrt, 1934518992) \ |
69 V(Float32x4, _reciprocalSqrt, Float32x4ReciprocalSqrt, 860560177) \ | 69 V(Float32x4, _reciprocalSqrt, Float32x4ReciprocalSqrt, 1586141174) \ |
70 V(Float32x4, _reciprocal, Float32x4Reciprocal, 1703468100) \ | 70 V(Float32x4, _reciprocal, Float32x4Reciprocal, 1651466502) \ |
71 V(Float32x4, _negate, Float32x4Negate, 1409902640) \ | 71 V(Float32x4, _negate, Float32x4Negate, 2142478676) \ |
72 V(Float32x4, _abs, Float32x4Absolute, 2116840471) \ | 72 V(Float32x4, _abs, Float32x4Absolute, 337704007) \ |
73 V(Float32x4, _clamp, Float32x4Clamp, 1789892357) \ | 73 V(Float32x4, _clamp, Float32x4Clamp, 1107305005) \ |
74 V(Float32x4, withX, Float32x4WithX, 1311992575) \ | 74 V(Float32x4, withX, Float32x4WithX, 1311992575) \ |
75 V(Float32x4, withY, Float32x4WithY, 175290640) \ | 75 V(Float32x4, withY, Float32x4WithY, 175290640) \ |
76 V(Float32x4, withZ, Float32x4WithZ, 837367384) \ | 76 V(Float32x4, withZ, Float32x4WithZ, 837367384) \ |
77 V(Float32x4, withW, Float32x4WithW, 1625145605) \ | 77 V(Float32x4, withW, Float32x4WithW, 1625145605) \ |
78 V(Float64x2, Float64x2., Float64x2Constructor, 423355933) \ | 78 V(Float64x2, Float64x2., Float64x2Constructor, 423355933) \ |
79 V(Float64x2, Float64x2.zero, Float64x2Zero, 2066666975) \ | 79 V(Float64x2, Float64x2.zero, Float64x2Zero, 2066666975) \ |
80 V(Float64x2, Float64x2.splat, Float64x2Splat, 716962994) \ | 80 V(Float64x2, Float64x2.splat, Float64x2Splat, 716962994) \ |
81 V(Float64x2, Float64x2.fromFloat32x4, Float64x2FromFloat32x4, 792974246) \ | 81 V(Float64x2, Float64x2.fromFloat32x4, Float64x2FromFloat32x4, 792974246) \ |
82 V(Float64x2, get:x, Float64x2GetX, 1488958362) \ | 82 V(Float64x2, get:x, Float64x2GetX, 1488958362) \ |
83 V(Float64x2, get:y, Float64x2GetY, 1022688506) \ | 83 V(Float64x2, get:y, Float64x2GetY, 1022688506) \ |
84 V(Float64x2, _negate, Float64x2Negate, 960840275) \ | 84 V(Float64x2, _negate, Float64x2Negate, 1693416311) \ |
85 V(Float64x2, abs, Float64x2Abs, 52403783) \ | 85 V(Float64x2, abs, Float64x2Abs, 52403783) \ |
86 V(Float64x2, sqrt, Float64x2Sqrt, 2012680669) \ | 86 V(Float64x2, sqrt, Float64x2Sqrt, 2012680669) \ |
87 V(Float64x2, get:signMask, Float64x2GetSignMask, 668856717) \ | 87 V(Float64x2, get:signMask, Float64x2GetSignMask, 668856717) \ |
88 V(Float64x2, scale, Float64x2Scale, 646122081) \ | 88 V(Float64x2, scale, Float64x2Scale, 646122081) \ |
89 V(Float64x2, withX, Float64x2WithX, 489409269) \ | 89 V(Float64x2, withX, Float64x2WithX, 489409269) \ |
90 V(Float64x2, withY, Float64x2WithY, 943642284) \ | 90 V(Float64x2, withY, Float64x2WithY, 943642284) \ |
91 V(Float64x2, min, Float64x2Min, 685235702) \ | 91 V(Float64x2, min, Float64x2Min, 685235702) \ |
92 V(Float64x2, max, Float64x2Max, 198659675) \ | 92 V(Float64x2, max, Float64x2Max, 198659675) \ |
93 V(Int32x4, Int32x4., Int32x4Constructor, 649173415) \ | 93 V(Int32x4, Int32x4., Int32x4Constructor, 649173415) \ |
94 V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, 458597857) \ | 94 V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, 458597857) \ |
95 V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, 2122470988) \ | 95 V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, 2122470988) \ |
96 V(Int32x4, get:flagX, Int32x4GetFlagX, 1446544324) \ | 96 V(Int32x4, get:flagX, Int32x4GetFlagX, 1446544324) \ |
97 V(Int32x4, get:flagY, Int32x4GetFlagY, 1148149370) \ | 97 V(Int32x4, get:flagY, Int32x4GetFlagY, 1148149370) \ |
98 V(Int32x4, get:flagZ, Int32x4GetFlagZ, 550901369) \ | 98 V(Int32x4, get:flagZ, Int32x4GetFlagZ, 550901369) \ |
99 V(Int32x4, get:flagW, Int32x4GetFlagW, 1346664620) \ | 99 V(Int32x4, get:flagW, Int32x4GetFlagW, 1346664620) \ |
100 V(Int32x4, get:signMask, Int32x4GetSignMask, 740215269) \ | 100 V(Int32x4, get:signMask, Int32x4GetSignMask, 740215269) \ |
101 V(Int32x4, shuffle, Int32x4Shuffle, 549194518) \ | 101 V(Int32x4, shuffle, Int32x4Shuffle, 549194518) \ |
102 V(Int32x4, shuffleMix, Int32x4ShuffleMix, 1550866145) \ | 102 V(Int32x4, shuffleMix, Int32x4ShuffleMix, 1550866145) \ |
103 V(Int32x4, select, Int32x4Select, 614943686) \ | 103 V(Int32x4, select, Int32x4Select, 1368318775) \ |
104 V(Int32x4, withFlagX, Int32x4WithFlagX, 250974159) \ | 104 V(Int32x4, withFlagX, Int32x4WithFlagX, 250974159) \ |
105 V(Int32x4, withFlagY, Int32x4WithFlagY, 1686481348) \ | 105 V(Int32x4, withFlagY, Int32x4WithFlagY, 1686481348) \ |
106 V(Int32x4, withFlagZ, Int32x4WithFlagZ, 645582330) \ | 106 V(Int32x4, withFlagZ, Int32x4WithFlagZ, 645582330) \ |
107 V(Int32x4, withFlagW, Int32x4WithFlagW, 878364277) \ | 107 V(Int32x4, withFlagW, Int32x4WithFlagW, 878364277) \ |
108 V(Float32List, [], Float32ArrayGetIndexed, 1002307136) \ | 108 V(Float32List, [], Float32ArrayGetIndexed, 1451643535) \ |
109 V(Float32List, []=, Float32ArraySetIndexed, 279546769) \ | 109 V(Float32List, []=, Float32ArraySetIndexed, 453873887) \ |
110 V(Int8List, [], Int8ArrayGetIndexed, 1141846285) \ | 110 V(Int8List, [], Int8ArrayGetIndexed, 110819507) \ |
111 V(Int8List, []=, Int8ArraySetIndexed, 1486839324) \ | 111 V(Int8List, []=, Int8ArraySetIndexed, 865684695) \ |
112 V(Uint8ClampedList, [], Uint8ClampedArrayGetIndexed, 513704632) \ | 112 V(Uint8ClampedList, [], Uint8ClampedArrayGetIndexed, 41288685) \ |
113 V(Uint8ClampedList, []=, Uint8ClampedArraySetIndexed, 1015846567) \ | 113 V(Uint8ClampedList, []=, Uint8ClampedArraySetIndexed, 687206488) \ |
114 V(_ExternalUint8ClampedArray, [], ExternalUint8ClampedArrayGetIndexed, \ | 114 V(_ExternalUint8ClampedArray, [], ExternalUint8ClampedArrayGetIndexed, \ |
115 513704632) \ | 115 41288685) \ |
116 V(_ExternalUint8ClampedArray, []=, ExternalUint8ClampedArraySetIndexed, \ | 116 V(_ExternalUint8ClampedArray, []=, ExternalUint8ClampedArraySetIndexed, \ |
117 1015846567) \ | 117 687206488) \ |
118 V(Int16List, [], Int16ArrayGetIndexed, 1826359619) \ | 118 V(Int16List, [], Int16ArrayGetIndexed, 389863073) \ |
119 V(Int16List, []=, Int16ArraySetIndexed, 1108689116) \ | 119 V(Int16List, []=, Int16ArraySetIndexed, 855133756) \ |
120 V(Uint16List, [], Uint16ArrayGetIndexed, 118958722) \ | 120 V(Uint16List, [], Uint16ArrayGetIndexed, 1053739567) \ |
121 V(Uint16List, []=, Uint16ArraySetIndexed, 658824450) \ | 121 V(Uint16List, []=, Uint16ArraySetIndexed, 1547307961) \ |
122 V(Int32List, [], Int32ArrayGetIndexed, 681203163) \ | 122 V(Int32List, [], Int32ArrayGetIndexed, 640610057) \ |
123 V(Int32List, []=, Int32ArraySetIndexed, 1786886245) \ | 123 V(Int32List, []=, Int32ArraySetIndexed, 453358705) \ |
124 V(Int64List, [], Int64ArrayGetIndexed, 1883155004) \ | 124 V(Int64List, [], Int64ArrayGetIndexed, 202150810) \ |
125 V(Int64List, []=, Int64ArraySetIndexed, 905815059) \ | 125 V(Int64List, []=, Int64ArraySetIndexed, 924110852) \ |
126 V(Float32x4List, [], Float32x4ArrayGetIndexed, 694822356) \ | 126 V(Float32x4List, [], Float32x4ArrayGetIndexed, 29819259) \ |
127 V(Float32x4List, []=, Float32x4ArraySetIndexed, 1166109127) \ | 127 V(Float32x4List, []=, Float32x4ArraySetIndexed, 1458062250) \ |
128 V(Int32x4List, [], Int32x4ArrayGetIndexed, 668249259) \ | 128 V(Int32x4List, [], Int32x4ArrayGetIndexed, 137707405) \ |
129 V(Int32x4List, []=, Int32x4ArraySetIndexed, 654739449) \ | 129 V(Int32x4List, []=, Int32x4ArraySetIndexed, 496650149) \ |
130 V(Float64x2List, [], Float64x2ArrayGetIndexed, 196472005) \ | 130 V(Float64x2List, [], Float64x2ArrayGetIndexed, 1721439384) \ |
131 V(Float64x2List, []=, Float64x2ArraySetIndexed, 1421858500) \ | 131 V(Float64x2List, []=, Float64x2ArraySetIndexed, 1994027006) \ |
132 V(_Bigint, get:_neg, Bigint_getNeg, 1681019799) \ | 132 V(_Bigint, get:_neg, Bigint_getNeg, 2079423063) \ |
133 V(_Bigint, get:_used, Bigint_getUsed, 1439136438) \ | 133 V(_Bigint, get:_used, Bigint_getUsed, 1426329619) \ |
134 V(_Bigint, get:_digits, Bigint_getDigits, 769722770) \ | 134 V(_Bigint, get:_digits, Bigint_getDigits, 1185333683) \ |
135 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 2048715833) \ | 135 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 2104211307) \ |
136 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 1882796480) \ | 136 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 1273697266) \ |
137 V(_HashVMBase, get:_data, LinkedHashMap_getData, 942992497) \ | 137 V(_HashVMBase, get:_data, LinkedHashMap_getData, 1274399923) \ |
138 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1410623019) \ | 138 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1611093357) \ |
139 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 1698421819) \ | 139 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 367462469) \ |
140 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1858754514) \ | 140 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1049390812) \ |
141 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 98745045) \ | 141 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 902147072) \ |
142 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 340628211) \ | 142 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1236137630) \ |
143 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 1340385546) \ | 143 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 812542585) \ |
144 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 638315987) \ | 144 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 1072259010) \ |
145 | 145 |
146 | 146 |
147 // List of intrinsics: | 147 // List of intrinsics: |
148 // (class-name, function-name, intrinsification method, fingerprint). | 148 // (class-name, function-name, intrinsification method, fingerprint). |
149 #define CORE_LIB_INTRINSIC_LIST(V) \ | 149 #define CORE_LIB_INTRINSIC_LIST(V) \ |
150 V(_Smi, ~, Smi_bitNegate, 1673522705) \ | 150 V(_Smi, ~, Smi_bitNegate, 1673522705) \ |
151 V(_Smi, get:bitLength, Smi_bitLength, 632480332) \ | 151 V(_Smi, get:bitLength, Smi_bitLength, 632480332) \ |
152 V(_Bigint, _lsh, Bigint_lsh, 834311957) \ | 152 V(_Bigint, _lsh, Bigint_lsh, 1557746963) \ |
153 V(_Bigint, _rsh, Bigint_rsh, 333337658) \ | 153 V(_Bigint, _rsh, Bigint_rsh, 761843937) \ |
154 V(_Bigint, _absAdd, Bigint_absAdd, 473436659) \ | 154 V(_Bigint, _absAdd, Bigint_absAdd, 1227835493) \ |
155 V(_Bigint, _absSub, Bigint_absSub, 1018678324) \ | 155 V(_Bigint, _absSub, Bigint_absSub, 390740532) \ |
156 V(_Bigint, _mulAdd, Bigint_mulAdd, 571005736) \ | 156 V(_Bigint, _mulAdd, Bigint_mulAdd, 617534446) \ |
157 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 372896038) \ | 157 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1623635507) \ |
158 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 540033329) \ | 158 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 797340802) \ |
159 V(_Montgomery, _mulMod, Montgomery_mulMod, 118781828) \ | 159 V(_Montgomery, _mulMod, Montgomery_mulMod, 1947987219) \ |
160 V(_Double, >, Double_greaterThan, 1413076759) \ | 160 V(_Double, >, Double_greaterThan, 1453001345) \ |
161 V(_Double, >=, Double_greaterEqualThan, 1815180096) \ | 161 V(_Double, >=, Double_greaterEqualThan, 1815180096) \ |
162 V(_Double, <, Double_lessThan, 652059836) \ | 162 V(_Double, <, Double_lessThan, 652059836) \ |
163 V(_Double, <=, Double_lessEqualThan, 512138528) \ | 163 V(_Double, <=, Double_lessEqualThan, 512138528) \ |
164 V(_Double, ==, Double_equal, 752327620) \ | 164 V(_Double, ==, Double_equal, 1468668497) \ |
165 V(_Double, +, Double_add, 854024064) \ | 165 V(_Double, +, Double_add, 1269587413) \ |
166 V(_Double, -, Double_sub, 685132889) \ | 166 V(_Double, -, Double_sub, 1644506555) \ |
167 V(_Double, *, Double_mul, 542254390) \ | 167 V(_Double, *, Double_mul, 600860888) \ |
168 V(_Double, /, Double_div, 1145710768) \ | 168 V(_Double, /, Double_div, 1220198876) \ |
169 V(_Double, get:isNaN, Double_getIsNaN, 184085483) \ | 169 V(_Double, get:isNaN, Double_getIsNaN, 184085483) \ |
170 V(_Double, get:isNegative, Double_getIsNegative, 978911030) \ | 170 V(_Double, get:isNegative, Double_getIsNegative, 978911030) \ |
171 V(_Double, _mulFromInteger, Double_mulFromInteger, 543831179) \ | 171 V(_Double, _mulFromInteger, Double_mulFromInteger, 1893886883) \ |
172 V(_Double, .fromInteger, DoubleFromInteger, 1453449234) \ | 172 V(_Double, .fromInteger, DoubleFromInteger, 2129942595) \ |
173 V(_List, []=, ObjectArraySetIndexed, 886228780) \ | 173 V(_List, []=, ObjectArraySetIndexed, 886228780) \ |
174 V(_GrowableList, .withData, GrowableArray_Allocate, 131424500) \ | 174 V(_GrowableList, .withData, GrowableArray_Allocate, 631736030) \ |
175 V(_GrowableList, add, GrowableArray_add, 242296201) \ | 175 V(_GrowableList, add, GrowableArray_add, 219371757) \ |
176 V(_RegExp, _ExecuteMatch, RegExp_ExecuteMatch, 2077783530) \ | 176 V(_RegExp, _ExecuteMatch, RegExp_ExecuteMatch, 1614206970) \ |
177 V(Object, ==, ObjectEquals, 291909336) \ | 177 V(Object, ==, ObjectEquals, 291909336) \ |
178 V(Object, get:runtimeType, ObjectRuntimeType, 15188587) \ | 178 V(Object, get:runtimeType, ObjectRuntimeType, 15188587) \ |
179 V(_StringBase, get:hashCode, String_getHashCode, 2026040200) \ | 179 V(_StringBase, get:hashCode, String_getHashCode, 2026040200) \ |
180 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1958879178) \ | 180 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1958879178) \ |
181 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1436590579) \ | 181 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1436590579) \ |
182 V(_StringBase, _substringMatches, StringBaseSubstringMatches, 1548648995) \ | 182 V(_StringBase, _substringMatches, StringBaseSubstringMatches, 797253099) \ |
183 V(_StringBase, [], StringBaseCharAt, 754527301) \ | 183 V(_StringBase, [], StringBaseCharAt, 754527301) \ |
184 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 2026040200) \ | 184 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 2026040200) \ |
185 V(_OneByteString, _substringUncheckedNative, \ | 185 V(_OneByteString, _substringUncheckedNative, \ |
186 OneByteString_substringUnchecked, 2063670029) \ | 186 OneByteString_substringUnchecked, 1670133538) \ |
187 V(_OneByteString, _setAt, OneByteStringSetAt, 929822971) \ | 187 V(_OneByteString, _setAt, OneByteStringSetAt, 1160066031) \ |
188 V(_OneByteString, _allocate, OneByteString_allocate, 1737851380) \ | 188 V(_OneByteString, _allocate, OneByteString_allocate, 1028631946) \ |
189 V(_OneByteString, ==, OneByteString_equality, 1062844160) \ | 189 V(_OneByteString, ==, OneByteString_equality, 1062844160) \ |
190 V(_TwoByteString, ==, TwoByteString_equality, 1062844160) \ | 190 V(_TwoByteString, ==, TwoByteString_equality, 1062844160) \ |
191 | 191 |
192 | 192 |
193 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ | 193 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ |
194 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, 298045644)\ | 194 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ |
195 V(_IntegerImplementation, +, Integer_add, 364498398) \ | 195 2042488139) \ |
196 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, 422157928)\ | 196 V(_IntegerImplementation, +, Integer_add, 239272130) \ |
197 V(_IntegerImplementation, -, Integer_sub, 1682674911) \ | 197 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, 957923759)\ |
198 V(_IntegerImplementation, -, Integer_sub, 216175811) \ | |
198 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ | 199 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ |
199 2074733333) \ | 200 2032062140) \ |
200 V(_IntegerImplementation, *, Integer_mul, 1651115456) \ | 201 V(_IntegerImplementation, *, Integer_mul, 1301152164) \ |
201 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \ | 202 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \ |
202 2100319763) \ | 203 779285842) \ |
203 V(_IntegerImplementation, ~/, Integer_truncDivide, 108494012) \ | 204 V(_IntegerImplementation, ~/, Integer_truncDivide, 1018128256) \ |
204 V(_IntegerImplementation, unary-, Integer_negate, 1507648892) \ | 205 V(_IntegerImplementation, unary-, Integer_negate, 1507648892) \ |
205 V(_IntegerImplementation, _bitAndFromInteger, Integer_bitAndFromInteger, \ | 206 V(_IntegerImplementation, _bitAndFromInteger, Integer_bitAndFromInteger, \ |
206 363854564) \ | 207 503046514) \ |
207 V(_IntegerImplementation, &, Integer_bitAnd, 286231290) \ | 208 V(_IntegerImplementation, &, Integer_bitAnd, 1500136766) \ |
208 V(_IntegerImplementation, _bitOrFromInteger, Integer_bitOrFromInteger, \ | 209 V(_IntegerImplementation, _bitOrFromInteger, Integer_bitOrFromInteger, \ |
209 1623085924) \ | 210 1031383580) \ |
210 V(_IntegerImplementation, |, Integer_bitOr, 1111108792) \ | 211 V(_IntegerImplementation, |, Integer_bitOr, 119412028) \ |
211 V(_IntegerImplementation, _bitXorFromInteger, Integer_bitXorFromInteger, \ | 212 V(_IntegerImplementation, _bitXorFromInteger, Integer_bitXorFromInteger, \ |
212 140783758) \ | 213 1339506501) \ |
213 V(_IntegerImplementation, ^, Integer_bitXor, 1884808537) \ | 214 V(_IntegerImplementation, ^, Integer_bitXor, 210430781) \ |
214 V(_IntegerImplementation, _greaterThanFromInteger, \ | 215 V(_IntegerImplementation, _greaterThanFromInteger, \ |
215 Integer_greaterThanFromInt, 814932166) \ | 216 Integer_greaterThanFromInt, 780147656) \ |
216 V(_IntegerImplementation, >, Integer_greaterThan, 293890061) \ | 217 V(_IntegerImplementation, >, Integer_greaterThan, 673741711) \ |
217 V(_IntegerImplementation, ==, Integer_equal, 4489308) \ | 218 V(_IntegerImplementation, ==, Integer_equal, 272474439) \ |
218 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, \ | 219 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, \ |
219 1818326386) \ | 220 2004079901) \ |
220 V(_IntegerImplementation, <, Integer_lessThan, 652059836) \ | 221 V(_IntegerImplementation, <, Integer_lessThan, 652059836) \ |
221 V(_IntegerImplementation, <=, Integer_lessEqualThan, 512138528) \ | 222 V(_IntegerImplementation, <=, Integer_lessEqualThan, 512138528) \ |
222 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1815180096) \ | 223 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1815180096) \ |
223 V(_IntegerImplementation, <<, Integer_shl, 293751452) \ | 224 V(_IntegerImplementation, <<, Integer_shl, 1127538624) \ |
224 V(_IntegerImplementation, >>, Integer_sar, 125091101) \ | 225 V(_IntegerImplementation, >>, Integer_sar, 1243972513) \ |
225 V(_Double, toInt, DoubleToInteger, 653210699) | 226 V(_Double, toInt, DoubleToInteger, 653210699) |
226 | 227 |
227 | 228 |
228 #define MATH_LIB_INTRINSIC_LIST(V) \ | 229 #define MATH_LIB_INTRINSIC_LIST(V) \ |
229 V(::, sqrt, MathSqrt, 1446681622) \ | 230 V(::, sqrt, MathSqrt, 417912310) \ |
230 V(_Random, _nextState, Random_nextState, 1241583299) \ | 231 V(_Random, _nextState, Random_nextState, 508231939) \ |
231 | 232 |
232 #define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ | 233 #define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ |
233 V(::, sin, MathSin, 939048573) \ | 234 V(::, sin, MathSin, 65032) \ |
234 V(::, cos, MathCos, 1148850331) \ | 235 V(::, cos, MathCos, 2006233918) \ |
235 V(::, tan, MathTan, 179725235) \ | 236 V(::, tan, MathTan, 1276867325) \ |
236 V(::, asin, MathAsin, 848695059) \ | 237 V(::, asin, MathAsin, 1678592173) \ |
237 V(::, acos, MathAcos, 337299516) \ | 238 V(::, acos, MathAcos, 1121218433) \ |
238 V(::, atan, MathAtan, 866406810) \ | 239 V(::, atan, MathAtan, 1109653625) \ |
239 V(::, atan2, MathAtan2, 1901969510) \ | 240 V(::, atan2, MathAtan2, 894696289) \ |
240 | 241 |
241 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 242 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
242 V(Int8List, ., TypedData_Int8Array_factory, 779569635) \ | 243 V(Int8List, ., TypedData_Int8Array_factory, 779569635) \ |
243 V(Uint8List, ., TypedData_Uint8Array_factory, 1790399545) \ | 244 V(Uint8List, ., TypedData_Uint8Array_factory, 1790399545) \ |
244 V(Uint8ClampedList, ., TypedData_Uint8ClampedArray_factory, 405875159) \ | 245 V(Uint8ClampedList, ., TypedData_Uint8ClampedArray_factory, 405875159) \ |
245 V(Int16List, ., TypedData_Int16Array_factory, 347431914) \ | 246 V(Int16List, ., TypedData_Int16Array_factory, 347431914) \ |
246 V(Uint16List, ., TypedData_Uint16Array_factory, 121990116) \ | 247 V(Uint16List, ., TypedData_Uint16Array_factory, 121990116) \ |
247 V(Int32List, ., TypedData_Int32Array_factory, 1540657744) \ | 248 V(Int32List, ., TypedData_Int32Array_factory, 1540657744) \ |
248 V(Uint32List, ., TypedData_Uint32Array_factory, 1012511652) \ | 249 V(Uint32List, ., TypedData_Uint32Array_factory, 1012511652) \ |
249 V(Int64List, ., TypedData_Int64Array_factory, 1473796807) \ | 250 V(Int64List, ., TypedData_Int64Array_factory, 1473796807) \ |
250 V(Uint64List, ., TypedData_Uint64Array_factory, 738799620) \ | 251 V(Uint64List, ., TypedData_Uint64Array_factory, 738799620) \ |
251 V(Float32List, ., TypedData_Float32Array_factory, 1938690635) \ | 252 V(Float32List, ., TypedData_Float32Array_factory, 1938690635) \ |
252 V(Float64List, ., TypedData_Float64Array_factory, 1344005361) \ | 253 V(Float64List, ., TypedData_Float64Array_factory, 1344005361) \ |
253 V(Float32x4List, ., TypedData_Float32x4Array_factory, 2055067416) \ | 254 V(Float32x4List, ., TypedData_Float32x4Array_factory, 2055067416) \ |
254 V(Int32x4List, ., TypedData_Int32x4Array_factory, 504220232) \ | 255 V(Int32x4List, ., TypedData_Int32x4Array_factory, 504220232) \ |
255 V(Float64x2List, ., TypedData_Float64x2Array_factory, 416019673) \ | 256 V(Float64x2List, ., TypedData_Float64x2Array_factory, 416019673) \ |
256 | 257 |
257 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ | 258 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ |
258 V(Uint8List, [], Uint8ArrayGetIndexed, 513704632) \ | 259 V(Uint8List, [], Uint8ArrayGetIndexed, 41288685) \ |
259 V(Uint8List, []=, Uint8ArraySetIndexed, 2123520783) \ | 260 V(Uint8List, []=, Uint8ArraySetIndexed, 101536342) \ |
260 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 513704632) \ | 261 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 41288685) \ |
261 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 2123520783) \ | 262 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 101536342) \ |
262 V(Uint32List, [], Uint32ArrayGetIndexed, 1179675338) \ | 263 V(Uint32List, [], Uint32ArrayGetIndexed, 1614870523) \ |
263 V(Uint32List, []=, Uint32ArraySetIndexed, 1455695417) \ | 264 V(Uint32List, []=, Uint32ArraySetIndexed, 978194713) \ |
264 V(Float64List, []=, Float64ArraySetIndexed, 1929239576) \ | 265 V(Float64List, []=, Float64ArraySetIndexed, 328934501) \ |
265 V(Float64List, [], Float64ArrayGetIndexed, 816943529) \ | 266 V(Float64List, [], Float64ArrayGetIndexed, 2049378701) \ |
266 V(_TypedList, get:length, TypedDataLength, 546364442) \ | 267 V(_TypedList, get:length, TypedDataLength, 546364442) \ |
267 V(Float32x4, get:x, Float32x4ShuffleX, 1674625343) \ | 268 V(Float32x4, get:x, Float32x4ShuffleX, 1674625343) \ |
268 V(Float32x4, get:y, Float32x4ShuffleY, 540293915) \ | 269 V(Float32x4, get:y, Float32x4ShuffleY, 540293915) \ |
269 V(Float32x4, get:z, Float32x4ShuffleZ, 320347578) \ | 270 V(Float32x4, get:z, Float32x4ShuffleZ, 320347578) \ |
270 V(Float32x4, get:w, Float32x4ShuffleW, 1770606624) \ | 271 V(Float32x4, get:w, Float32x4ShuffleW, 1770606624) \ |
271 V(Float32x4, _mul, Float32x4Mul, 861549065) \ | 272 V(Float32x4, _mul, Float32x4Mul, 42807622) \ |
272 V(Float32x4, _sub, Float32x4Sub, 460363214) \ | 273 V(Float32x4, _sub, Float32x4Sub, 103774455) \ |
273 V(Float32x4, _add, Float32x4Add, 1487592255) \ | 274 V(Float32x4, _add, Float32x4Add, 1352634374) \ |
274 | 275 |
275 #define GRAPH_CORE_INTRINSICS_LIST(V) \ | 276 #define GRAPH_CORE_INTRINSICS_LIST(V) \ |
276 V(_List, get:length, ObjectArrayLength, 630471378) \ | 277 V(_List, get:length, ObjectArrayLength, 630471378) \ |
277 V(_List, [], ObjectArrayGetIndexed, 360400496) \ | 278 V(_List, [], ObjectArrayGetIndexed, 360400496) \ |
278 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \ | 279 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \ |
279 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \ | 280 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \ |
280 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \ | 281 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \ |
281 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 193746510) \ | 282 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 41110914) \ |
282 V(_GrowableList, _setData, GrowableArraySetData, 1496536873) \ | 283 V(_GrowableList, _setData, GrowableArraySetData, 210059283) \ |
283 V(_GrowableList, _setLength, GrowableArraySetLength, 32203572) \ | 284 V(_GrowableList, _setLength, GrowableArraySetLength, 335652822) \ |
284 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \ | 285 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \ |
285 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \ | 286 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \ |
286 V(_StringBase, get:length, StringBaseLength, 707533587) \ | 287 V(_StringBase, get:length, StringBaseLength, 707533587) \ |
287 V(_Double, unary-, DoubleFlipSignBit, 1783281169) \ | 288 V(_Double, unary-, DoubleFlipSignBit, 1783281169) \ |
288 V(_Double, truncateToDouble, DoubleTruncate, 791143891) \ | 289 V(_Double, truncateToDouble, DoubleTruncate, 791143891) \ |
289 V(_Double, roundToDouble, DoubleRound, 797558034) \ | 290 V(_Double, roundToDouble, DoubleRound, 797558034) \ |
290 V(_Double, floorToDouble, DoubleFloor, 1789426271) \ | 291 V(_Double, floorToDouble, DoubleFloor, 1789426271) \ |
291 V(_Double, ceilToDouble, DoubleCeil, 453271198) \ | 292 V(_Double, ceilToDouble, DoubleCeil, 453271198) \ |
292 V(_Double, _modulo, DoubleMod, 1093862165) | 293 V(_Double, _modulo, DoubleMod, 776062204) |
293 | 294 |
294 | 295 |
295 #define GRAPH_INTRINSICS_LIST(V) \ | 296 #define GRAPH_INTRINSICS_LIST(V) \ |
296 GRAPH_CORE_INTRINSICS_LIST(V) \ | 297 GRAPH_CORE_INTRINSICS_LIST(V) \ |
297 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ | 298 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ |
298 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ | 299 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ |
299 | 300 |
300 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ | 301 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ |
301 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \ | 302 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \ |
302 V(::, _getDefaultTag, UserTag_defaultTag, 1872263331) \ | 303 V(::, _getDefaultTag, UserTag_defaultTag, 350077879) \ |
303 V(::, _getCurrentTag, Profiler_getCurrentTag, 692104531) \ | 304 V(::, _getCurrentTag, Profiler_getCurrentTag, 1215225901) \ |
304 | 305 |
305 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ | 306 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ |
306 CORE_LIB_INTRINSIC_LIST(V) \ | 307 CORE_LIB_INTRINSIC_LIST(V) \ |
307 DEVELOPER_LIB_INTRINSIC_LIST(V) \ | 308 DEVELOPER_LIB_INTRINSIC_LIST(V) \ |
308 MATH_LIB_INTRINSIC_LIST(V) \ | 309 MATH_LIB_INTRINSIC_LIST(V) \ |
309 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 310 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
310 | 311 |
311 #define ALL_INTRINSICS_LIST(V) \ | 312 #define ALL_INTRINSICS_LIST(V) \ |
312 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ | 313 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ |
313 CORE_INTEGER_LIB_INTRINSIC_LIST(V) | 314 CORE_INTEGER_LIB_INTRINSIC_LIST(V) |
314 | 315 |
315 #define RECOGNIZED_LIST(V) \ | 316 #define RECOGNIZED_LIST(V) \ |
316 OTHER_RECOGNIZED_LIST(V) \ | 317 OTHER_RECOGNIZED_LIST(V) \ |
317 ALL_INTRINSICS_LIST(V) \ | 318 ALL_INTRINSICS_LIST(V) \ |
318 GRAPH_INTRINSICS_LIST(V) | 319 GRAPH_INTRINSICS_LIST(V) |
319 | 320 |
320 // A list of core function that should always be inlined. | 321 // A list of core function that should always be inlined. |
321 #define INLINE_WHITE_LIST(V) \ | 322 #define INLINE_WHITE_LIST(V) \ |
322 V(Object, ==, ObjectEquals, 291909336) \ | 323 V(Object, ==, ObjectEquals, 291909336) \ |
323 V(_List, get:length, ObjectArrayLength, 630471378) \ | 324 V(_List, get:length, ObjectArrayLength, 630471378) \ |
324 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \ | 325 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \ |
325 V(_TypedList, get:length, TypedDataLength, 546364442) \ | 326 V(_TypedList, get:length, TypedDataLength, 546364442) \ |
326 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \ | 327 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \ |
327 V(_GrowableList, add, GrowableListAdd, 242296201) \ | 328 V(_GrowableList, add, GrowableListAdd, 219371757) \ |
328 V(_GrowableList, removeLast, GrowableListRemoveLast, 1655383014) \ | 329 V(_GrowableList, removeLast, GrowableListRemoveLast, 324891524) \ |
329 V(_StringBase, get:length, StringBaseLength, 707533587) \ | 330 V(_StringBase, get:length, StringBaseLength, 707533587) \ |
330 V(ListIterator, moveNext, ListIteratorMoveNext, 1467737539) \ | 331 V(ListIterator, moveNext, ListIteratorMoveNext, 1065954929) \ |
331 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 784200630) \ | 332 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1451346178) \ |
332 V(_GrowableList, get:iterator, GrowableArrayIterator, 1840323187) \ | 333 V(_GrowableList, get:iterator, GrowableArrayIterator, 1840323187) \ |
333 V(_GrowableList, forEach, GrowableArrayForEach, 620771070) \ | 334 V(_GrowableList, forEach, GrowableArrayForEach, 620771070) \ |
334 V(_List, ., ObjectArrayAllocate, 184405219) \ | 335 V(_List, ., ObjectArrayAllocate, 1661438741) \ |
335 V(_List, [], ObjectArrayGetIndexed, 360400496) \ | 336 V(_List, [], ObjectArrayGetIndexed, 360400496) \ |
336 V(_List, []=, ObjectArraySetIndexed, 886228780) \ | 337 V(_List, []=, ObjectArraySetIndexed, 886228780) \ |
337 V(ListMixin, get:isEmpty, ListMixinIsEmpty, 2021497798) \ | 338 V(ListMixin, get:isEmpty, ListMixinIsEmpty, 2021497798) \ |
338 V(_List, get:iterator, ObjectArrayIterator, 1930956161) \ | 339 V(_List, get:iterator, ObjectArrayIterator, 295498778) \ |
339 V(_List, forEach, ObjectArrayForEach, 180150673) \ | 340 V(_List, forEach, ObjectArrayForEach, 180150673) \ |
340 V(_List, _slice, ObjectArraySlice, 1785552519) \ | 341 V(_List, _slice, ObjectArraySlice, 840558357) \ |
341 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 1930956161) \ | 342 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 295498778) \ |
342 V(_ImmutableList, forEach, ImmutableArrayForEach, 180150673) \ | 343 V(_ImmutableList, forEach, ImmutableArrayForEach, 180150673) \ |
343 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \ | 344 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \ |
344 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \ | 345 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \ |
345 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \ | 346 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \ |
346 V(Float32List, [], Float32ArrayGetIndexed, 1002307136) \ | 347 V(Float32List, [], Float32ArrayGetIndexed, 1451643535) \ |
347 V(Float32List, []=, Float32ArraySetIndexed, 279546769) \ | 348 V(Float32List, []=, Float32ArraySetIndexed, 453873887) \ |
348 V(Float64List, [], Float64ArrayGetIndexed, 816943529) \ | 349 V(Float64List, [], Float64ArrayGetIndexed, 2049378701) \ |
349 V(Float64List, []=, Float64ArraySetIndexed, 1929239576) \ | 350 V(Float64List, []=, Float64ArraySetIndexed, 328934501) \ |
350 V(Int8List, [], Int8ArrayGetIndexed, 1141846285) \ | 351 V(Int8List, [], Int8ArrayGetIndexed, 110819507) \ |
351 V(Int8List, []=, Int8ArraySetIndexed, 1486839324) \ | 352 V(Int8List, []=, Int8ArraySetIndexed, 865684695) \ |
352 V(Uint8List, [], Uint8ArrayGetIndexed, 513704632) \ | 353 V(Uint8List, [], Uint8ArrayGetIndexed, 41288685) \ |
353 V(Uint8List, []=, Uint8ArraySetIndexed, 2123520783) \ | 354 V(Uint8List, []=, Uint8ArraySetIndexed, 101536342) \ |
354 V(Uint8ClampedList, [], Uint8ClampedArrayGetIndexed, 513704632) \ | 355 V(Uint8ClampedList, [], Uint8ClampedArrayGetIndexed, 41288685) \ |
355 V(Uint8ClampedList, []=, Uint8ClampedArraySetIndexed, 1015846567) \ | 356 V(Uint8ClampedList, []=, Uint8ClampedArraySetIndexed, 687206488) \ |
356 V(Uint16List, [], Uint16ArrayGetIndexed, 118958722) \ | 357 V(Uint16List, [], Uint16ArrayGetIndexed, 1053739567) \ |
357 V(Uint16List, []=, Uint16ArraySetIndexed, 658824450) \ | 358 V(Uint16List, []=, Uint16ArraySetIndexed, 1547307961) \ |
358 V(Int16List, [], Int16ArrayGetIndexed, 1826359619) \ | 359 V(Int16List, [], Int16ArrayGetIndexed, 389863073) \ |
359 V(Int16List, []=, Int16ArraySetIndexed, 1108689116) \ | 360 V(Int16List, []=, Int16ArraySetIndexed, 855133756) \ |
360 V(Int32List, [], Int32ArrayGetIndexed, 681203163) \ | 361 V(Int32List, [], Int32ArrayGetIndexed, 640610057) \ |
361 V(Int32List, []=, Int32ArraySetIndexed, 1786886245) \ | 362 V(Int32List, []=, Int32ArraySetIndexed, 453358705) \ |
362 V(Int64List, [], Int64ArrayGetIndexed, 1883155004) \ | 363 V(Int64List, [], Int64ArrayGetIndexed, 202150810) \ |
363 V(Int64List, []=, Int64ArraySetIndexed, 905815059) \ | 364 V(Int64List, []=, Int64ArraySetIndexed, 924110852) \ |
364 V(_Uint8ArrayView, [], Uint8ArrayViewGetIndexed, 215420949) \ | 365 V(_Uint8ArrayView, [], Uint8ArrayViewGetIndexed, 1338422227) \ |
365 V(_Uint8ArrayView, []=, Uint8ArrayViewSetIndexed, 1138146450) \ | 366 V(_Uint8ArrayView, []=, Uint8ArrayViewSetIndexed, 540212720) \ |
366 V(_Int8ArrayView, [], Int8ArrayViewGetIndexed, 1003520035) \ | 367 V(_Int8ArrayView, [], Int8ArrayViewGetIndexed, 302213458) \ |
367 V(_Int8ArrayView, []=, Int8ArrayViewSetIndexed, 225448326) \ | 368 V(_Int8ArrayView, []=, Int8ArrayViewSetIndexed, 1837635160) \ |
368 V(_ByteDataView, setInt8, ByteDataViewSetInt8, 1091734252) \ | 369 V(_ByteDataView, setInt8, ByteDataViewSetInt8, 660389322) \ |
369 V(_ByteDataView, setUint8, ByteDataViewSetUint8, 549773093) \ | 370 V(_ByteDataView, setUint8, ByteDataViewSetUint8, 1651986039) \ |
370 V(_ByteDataView, setInt16, ByteDataViewSetInt16, 1580120352) \ | 371 V(_ByteDataView, setInt16, ByteDataViewSetInt16, 2051262146) \ |
371 V(_ByteDataView, setUint16, ByteDataViewSetUint16, 948267909) \ | 372 V(_ByteDataView, setUint16, ByteDataViewSetUint16, 1692244111) \ |
372 V(_ByteDataView, setInt32, ByteDataViewSetInt32, 2088513508) \ | 373 V(_ByteDataView, setInt32, ByteDataViewSetInt32, 862135882) \ |
373 V(_ByteDataView, setUint32, ByteDataViewSetUint32, 1125319) \ | 374 V(_ByteDataView, setUint32, ByteDataViewSetUint32, 361732249) \ |
374 V(_ByteDataView, setInt64, ByteDataViewSetInt64, 192928709) \ | 375 V(_ByteDataView, setInt64, ByteDataViewSetInt64, 1208972197) \ |
375 V(_ByteDataView, setUint64, ByteDataViewSetUint64, 483118836) \ | 376 V(_ByteDataView, setUint64, ByteDataViewSetUint64, 1545853836) \ |
376 V(_ByteDataView, setFloat32, ByteDataViewSetFloat32, 1241910514) \ | 377 V(_ByteDataView, setFloat32, ByteDataViewSetFloat32, 1333183642) \ |
377 V(_ByteDataView, setFloat64, ByteDataViewSetFloat64, 1950485343) \ | 378 V(_ByteDataView, setFloat64, ByteDataViewSetFloat64, 1579015503) \ |
378 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 1939363561) \ | 379 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 29018237) \ |
379 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 121087953) \ | 380 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 312322868) \ |
380 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 591911343) \ | 381 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 1613243255) \ |
381 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 2114157459) \ | 382 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 284020105) \ |
382 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 712570242) \ | 383 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 2036535169) \ |
383 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 162058988) \ | 384 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 571293096) \ |
384 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 1566486016) \ | 385 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 1971181000) \ |
385 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 1397980812) \ | 386 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 799775022) \ |
386 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 1251636679) \ | 387 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 947822534) \ |
387 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 1940177769) \ | 388 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 1402356525) \ |
388 V(::, asin, MathASin, 848695059) \ | 389 V(::, asin, MathASin, 1678592173) \ |
389 V(::, acos, MathACos, 337299516) \ | 390 V(::, acos, MathACos, 1121218433) \ |
390 V(::, atan, MathATan, 866406810) \ | 391 V(::, atan, MathATan, 1109653625) \ |
391 V(::, atan2, MathATan2, 1901969510) \ | 392 V(::, atan2, MathATan2, 894696289) \ |
392 V(::, cos, MathCos, 1148850331) \ | 393 V(::, cos, MathCos, 2006233918) \ |
393 V(::, exp, MathExp, 1006863255) \ | 394 V(::, exp, MathExp, 1500946333) \ |
394 V(::, log, MathLog, 817988874) \ | 395 V(::, log, MathLog, 739403086) \ |
395 V(::, max, MathMax, 1410473322) \ | 396 V(::, max, MathMax, 1410473322) \ |
396 V(::, min, MathMin, 1115051548) \ | 397 V(::, min, MathMin, 1115051548) \ |
397 V(::, pow, MathPow, 864430827) \ | 398 V(::, pow, MathPow, 2058759335) \ |
398 V(::, sin, MathSin, 939048573) \ | 399 V(::, sin, MathSin, 65032) \ |
399 V(::, sqrt, MathSqrt, 1446681622) \ | 400 V(::, sqrt, MathSqrt, 417912310) \ |
400 V(::, tan, MathTan, 179725235) \ | 401 V(::, tan, MathTan, 1276867325) \ |
401 V(Lists, copy, ListsCopy, 564237562) \ | 402 V(Lists, copy, ListsCopy, 564237562) \ |
402 V(_Bigint, get:_neg, Bigint_getNeg, 1681019799) \ | 403 V(_Bigint, get:_neg, Bigint_getNeg, 2079423063) \ |
403 V(_Bigint, get:_used, Bigint_getUsed, 1439136438) \ | 404 V(_Bigint, get:_used, Bigint_getUsed, 1426329619) \ |
404 V(_Bigint, get:_digits, Bigint_getDigits, 769722770) \ | 405 V(_Bigint, get:_digits, Bigint_getDigits, 1185333683) \ |
405 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 2048715833) \ | 406 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 2104211307) \ |
406 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 1882796480) \ | 407 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 1273697266) \ |
407 V(_HashVMBase, get:_data, LinkedHashMap_getData, 942992497) \ | 408 V(_HashVMBase, get:_data, LinkedHashMap_getData, 1274399923) \ |
408 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1410623019) \ | 409 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1611093357) \ |
409 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 1698421819) \ | 410 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 367462469) \ |
410 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1858754514) \ | 411 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1049390812) \ |
411 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 98745045) \ | 412 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 902147072) \ |
412 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 340628211) \ | 413 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1236137630) \ |
413 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 1340385546) \ | 414 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 812542585) \ |
414 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 638315987) \ | 415 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 1072259010) \ |
415 | 416 |
416 // A list of core function that should never be inlined. | 417 // A list of core function that should never be inlined. |
417 #define INLINE_BLACK_LIST(V) \ | 418 #define INLINE_BLACK_LIST(V) \ |
418 V(_Bigint, _lsh, Bigint_lsh, 834311957) \ | 419 V(_Bigint, _lsh, Bigint_lsh, 1557746963) \ |
419 V(_Bigint, _rsh, Bigint_rsh, 333337658) \ | 420 V(_Bigint, _rsh, Bigint_rsh, 761843937) \ |
420 V(_Bigint, _absAdd, Bigint_absAdd, 473436659) \ | 421 V(_Bigint, _absAdd, Bigint_absAdd, 1227835493) \ |
421 V(_Bigint, _absSub, Bigint_absSub, 1018678324) \ | 422 V(_Bigint, _absSub, Bigint_absSub, 390740532) \ |
422 V(_Bigint, _mulAdd, Bigint_mulAdd, 571005736) \ | 423 V(_Bigint, _mulAdd, Bigint_mulAdd, 617534446) \ |
423 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 372896038) \ | 424 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1623635507) \ |
424 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 540033329) \ | 425 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 797340802) \ |
425 V(_Montgomery, _mulMod, Montgomery_mulMod, 118781828) \ | 426 V(_Montgomery, _mulMod, Montgomery_mulMod, 1947987219) \ |
426 V(_Double, >, Double_greaterThan, 1413076759) \ | 427 V(_Double, >, Double_greaterThan, 1453001345) \ |
427 V(_Double, >=, Double_greaterEqualThan, 1815180096) \ | 428 V(_Double, >=, Double_greaterEqualThan, 1815180096) \ |
428 V(_Double, <, Double_lessThan, 652059836) \ | 429 V(_Double, <, Double_lessThan, 652059836) \ |
429 V(_Double, <=, Double_lessEqualThan, 512138528) \ | 430 V(_Double, <=, Double_lessEqualThan, 512138528) \ |
430 V(_Double, ==, Double_equal, 752327620) \ | 431 V(_Double, ==, Double_equal, 1468668497) \ |
431 V(_Double, +, Double_add, 854024064) \ | 432 V(_Double, +, Double_add, 1269587413) \ |
432 V(_Double, -, Double_sub, 685132889) \ | 433 V(_Double, -, Double_sub, 1644506555) \ |
433 V(_Double, *, Double_mul, 542254390) \ | 434 V(_Double, *, Double_mul, 600860888) \ |
434 V(_Double, /, Double_div, 1145710768) \ | 435 V(_Double, /, Double_div, 1220198876) \ |
435 V(_IntegerImplementation, +, Integer_add, 364498398) \ | 436 V(_IntegerImplementation, +, Integer_add, 239272130) \ |
436 V(_IntegerImplementation, -, Integer_sub, 1682674911) \ | 437 V(_IntegerImplementation, -, Integer_sub, 216175811) \ |
437 V(_IntegerImplementation, *, Integer_mul, 1651115456) \ | 438 V(_IntegerImplementation, *, Integer_mul, 1301152164) \ |
438 V(_IntegerImplementation, ~/, Integer_truncDivide, 108494012) \ | 439 V(_IntegerImplementation, ~/, Integer_truncDivide, 1018128256) \ |
439 V(_IntegerImplementation, unary-, Integer_negate, 1507648892) \ | 440 V(_IntegerImplementation, unary-, Integer_negate, 1507648892) \ |
440 V(_IntegerImplementation, &, Integer_bitAnd, 286231290) \ | 441 V(_IntegerImplementation, &, Integer_bitAnd, 1500136766) \ |
441 V(_IntegerImplementation, |, Integer_bitOr, 1111108792) \ | 442 V(_IntegerImplementation, |, Integer_bitOr, 119412028) \ |
442 V(_IntegerImplementation, ^, Integer_bitXor, 1884808537) \ | 443 V(_IntegerImplementation, ^, Integer_bitXor, 210430781) \ |
443 V(_IntegerImplementation, >, Integer_greaterThan, 293890061) \ | 444 V(_IntegerImplementation, >, Integer_greaterThan, 673741711) \ |
444 V(_IntegerImplementation, ==, Integer_equal, 4489308) \ | 445 V(_IntegerImplementation, ==, Integer_equal, 272474439) \ |
445 V(_IntegerImplementation, <, Integer_lessThan, 652059836) \ | 446 V(_IntegerImplementation, <, Integer_lessThan, 652059836) \ |
446 V(_IntegerImplementation, <=, Integer_lessEqualThan, 512138528) \ | 447 V(_IntegerImplementation, <=, Integer_lessEqualThan, 512138528) \ |
447 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1815180096) \ | 448 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1815180096) \ |
448 V(_IntegerImplementation, <<, Integer_shl, 293751452) \ | 449 V(_IntegerImplementation, <<, Integer_shl, 1127538624) \ |
449 V(_IntegerImplementation, >>, Integer_sar, 125091101) \ | 450 V(_IntegerImplementation, >>, Integer_sar, 1243972513) \ |
450 | 451 |
451 // A list of core functions that internally dispatch based on received id. | 452 // A list of core functions that internally dispatch based on received id. |
452 #define POLYMORPHIC_TARGET_LIST(V) \ | 453 #define POLYMORPHIC_TARGET_LIST(V) \ |
453 V(_StringBase, [], StringBaseCharAt, 754527301) \ | 454 V(_StringBase, [], StringBaseCharAt, 754527301) \ |
454 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1436590579) \ | 455 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1436590579) \ |
455 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 187609847) \ | 456 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1508321565) \ |
456 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1826086346) \ | 457 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 953411007) \ |
457 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1174755987) \ | 458 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 433971756) \ |
458 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1936358273) \ | 459 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1329446488) \ |
459 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1123951931) \ | 460 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 137212209) \ |
460 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 853172551) \ | 461 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 499907480) \ |
461 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 165422183) \ | 462 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 1672834581) \ |
462 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1564825450) \ | 463 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 966634744) \ |
463 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1123952315) \ | 464 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1197581758) \ |
464 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 831892409) \ | 465 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 810805548) \ |
465 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 2043203289) \ | 466 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1317196265) \ |
466 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 1759261408) \ | 467 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 1328908284) \ |
467 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 267848339) \ | 468 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 1827614958) \ |
468 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 350952121) \ | 469 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 1694054572) \ |
469 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1170619358) \ | 470 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 915652649) \ |
470 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1325523969) \ | 471 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1958474336) \ |
471 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 541136999) \ | 472 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1853026980) \ |
472 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 365317124) \ | 473 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 1197862362) \ |
473 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1766802707) \ | 474 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 2093630771) \ |
474 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 2075229300) \ | 475 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 1982971324) \ |
475 | 476 |
476 // Forward declarations. | 477 // Forward declarations. |
477 class Function; | 478 class Function; |
478 | 479 |
479 // Class that recognizes the name and owner of a function and returns the | 480 // Class that recognizes the name and owner of a function and returns the |
480 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable | 481 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable |
481 // functions. | 482 // functions. |
482 class MethodRecognizer : public AllStatic { | 483 class MethodRecognizer : public AllStatic { |
483 public: | 484 public: |
484 enum Kind { | 485 enum Kind { |
(...skipping 12 matching lines...) Expand all Loading... | |
497 static void InitializeState(); | 498 static void InitializeState(); |
498 #endif // defined(DART_NO_SNAPSHOT). | 499 #endif // defined(DART_NO_SNAPSHOT). |
499 }; | 500 }; |
500 | 501 |
501 | 502 |
502 #if defined(DART_NO_SNAPSHOT) | 503 #if defined(DART_NO_SNAPSHOT) |
503 #define CHECK_FINGERPRINT2(f, p0, p1, fp) \ | 504 #define CHECK_FINGERPRINT2(f, p0, p1, fp) \ |
504 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) | 505 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) |
505 | 506 |
506 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ | 507 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ |
507 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) | 508 /*ASSERT*/(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) |
rmacnak
2016/05/05 16:53:31
Re-enable
Ivan Posva
2016/05/05 17:31:43
Done.
| |
508 #endif // defined(DART_NO_SNAPSHOT). | 509 #endif // defined(DART_NO_SNAPSHOT). |
509 | 510 |
510 | 511 |
511 // List of recognized list factories: | 512 // List of recognized list factories: |
512 // (factory-name-symbol, result-cid, fingerprint). | 513 // (factory-name-symbol, result-cid, fingerprint). |
513 #define RECOGNIZED_LIST_FACTORY_LIST(V) \ | 514 #define RECOGNIZED_LIST_FACTORY_LIST(V) \ |
514 V(_ListFactory, kArrayCid, 184405219) \ | 515 V(_ListFactory, kArrayCid, 1661438741) \ |
515 V(_GrowableListWithData, kGrowableObjectArrayCid, 131424500) \ | 516 V(_GrowableListWithData, kGrowableObjectArrayCid, 631736030) \ |
516 V(_GrowableListFactory, kGrowableObjectArrayCid, 664918385) \ | 517 V(_GrowableListFactory, kGrowableObjectArrayCid, 1330464656) \ |
517 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 779569635) \ | 518 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 779569635) \ |
518 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1790399545) \ | 519 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1790399545) \ |
519 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 405875159) \ | 520 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 405875159) \ |
520 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 347431914) \ | 521 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 347431914) \ |
521 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 121990116) \ | 522 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 121990116) \ |
522 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1540657744) \ | 523 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1540657744) \ |
523 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1012511652) \ | 524 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1012511652) \ |
524 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1473796807) \ | 525 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1473796807) \ |
525 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 738799620) \ | 526 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 738799620) \ |
526 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1344005361) \ | 527 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1344005361) \ |
527 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1938690635) \ | 528 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1938690635) \ |
528 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 2055067416) \ | 529 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 2055067416) \ |
529 | 530 |
530 | 531 |
531 // Class that recognizes factories and returns corresponding result cid. | 532 // Class that recognizes factories and returns corresponding result cid. |
532 class FactoryRecognizer : public AllStatic { | 533 class FactoryRecognizer : public AllStatic { |
533 public: | 534 public: |
534 // Return kDynamicCid if factory is not recognized. | 535 // Return kDynamicCid if factory is not recognized. |
535 static intptr_t ResultCid(const Function& factory); | 536 static intptr_t ResultCid(const Function& factory); |
536 }; | 537 }; |
537 | 538 |
538 } // namespace dart | 539 } // namespace dart |
539 | 540 |
540 #endif // VM_METHOD_RECOGNIZER_H_ | 541 #endif // VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |