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

Side by Side Diff: runtime/vm/method_recognizer.h

Issue 1752503002: Change function source fingerprint calculation to rely on tokens exclusively and (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, 554128144) \ 16 V(::, identical, ObjectIdentical, 317103244) \
17 V(ClassID, getID, ClassIDgetID, 535124072) \ 17 V(ClassID, getID, ClassIDgetID, 1385157717) \
18 V(Object, Object., ObjectConstructor, 1852396454) \ 18 V(Object, Object., ObjectConstructor, 1746278398) \
19 V(_List, ., ObjectArrayAllocate, 850375012) \ 19 V(_List, ., ObjectArrayAllocate, 184405219) \
20 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 20 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 187609847) \
21 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 21 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1826086346) \
22 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 22 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1174755987) \
23 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 23 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1936358273) \
24 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ 24 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1123951931) \
25 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ 25 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 853172551) \
26 V(_TypedList, _getInt64, ByteArrayBaseGetInt64, 322272622) \ 26 V(_TypedList, _getInt64, ByteArrayBaseGetInt64, 1115954619) \
27 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 393003933) \ 27 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 165422183) \
28 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1792407200) \ 28 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1564825450) \
29 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1338379857) \ 29 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1123952315) \
30 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 1469917805) \ 30 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 831892409) \
31 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1892735922) \ 31 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 2043203289) \
32 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1608794041) \ 32 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1759261408) \
33 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 117380972) \ 33 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 267848339) \
34 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 200484754) \ 34 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 350952121) \
35 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1020151991) \ 35 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1170619358) \
36 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1175056602) \ 36 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1325523969) \
37 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, 784983863) \ 37 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, 935451230) \
38 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 460607665) \ 38 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 541136999) \
39 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 284787790) \ 39 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 365317124) \
40 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 262426120) \ 40 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1766802707) \
41 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 613041888) \ 41 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 2075229300) \
42 V(_StringBase, _interpolate, StringBaseInterpolate, 1214901263) \ 42 V(_StringBase, _interpolate, StringBaseInterpolate, 1597087225) \
43 V(_IntegerImplementation, toDouble, IntegerToDouble, 826404440) \ 43 V(_IntegerImplementation, toDouble, IntegerToDouble, 150718448) \
44 V(_IntegerImplementation, _leftShiftWithMask32, \ 44 V(_IntegerImplementation, _leftShiftWithMask32, \
45 IntegerLeftShiftWithMask32, 598958097) \ 45 IntegerLeftShiftWithMask32, 1634465017) \
46 V(_Double, truncateToDouble, DoubleTruncate, 2117801967) \ 46 V(_Double, truncateToDouble, DoubleTruncate, 791143891) \
47 V(_Double, roundToDouble, DoubleRound, 2124216110) \ 47 V(_Double, roundToDouble, DoubleRound, 797558034) \
48 V(_Double, floorToDouble, DoubleFloor, 968600699) \ 48 V(_Double, floorToDouble, DoubleFloor, 1789426271) \
49 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \ 49 V(_Double, ceilToDouble, DoubleCeil, 453271198) \
50 V(_Double, _modulo, DoubleMod, 1473971007) \ 50 V(_Double, _modulo, DoubleMod, 1093862165) \
51 V(_Double, _add, DoubleAdd, 1570715125) \ 51 V(_Double, _add, DoubleAdd, 1190606283) \
52 V(_Double, _sub, DoubleSub, 1466395310) \ 52 V(_Double, _sub, DoubleSub, 1086286468) \
53 V(_Double, _mul, DoubleMul, 546441193) \ 53 V(_Double, _mul, DoubleMul, 166332351) \
54 V(_Double, _div, DoubleDiv, 1201505037) \ 54 V(_Double, _div, DoubleDiv, 821396195) \
55 V(::, sin, MathSin, 1741396147) \ 55 V(::, sin, MathSin, 939048573) \
56 V(::, cos, MathCos, 1951197905) \ 56 V(::, cos, MathCos, 1148850331) \
57 V(::, tan, MathTan, 982072809) \ 57 V(::, tan, MathTan, 179725235) \
58 V(::, asin, MathAsin, 1651042633) \ 58 V(::, asin, MathAsin, 848695059) \
59 V(::, acos, MathAcos, 1139647090) \ 59 V(::, acos, MathAcos, 337299516) \
60 V(::, atan, MathAtan, 1668754384) \ 60 V(::, atan, MathAtan, 866406810) \
61 V(::, atan2, MathAtan2, 1931713076) \ 61 V(::, atan2, MathAtan2, 1901969510) \
62 V(::, min, MathMin, 478627534) \ 62 V(::, min, MathMin, 1115051548) \
63 V(::, max, MathMax, 212291192) \ 63 V(::, max, MathMax, 1410473322) \
64 V(::, _doublePow, MathDoublePow, 1286501289) \ 64 V(::, _doublePow, MathDoublePow, 562154128) \
65 V(Float32x4, Float32x4., Float32x4Constructor, 1413513587) \ 65 V(Float32x4, Float32x4., Float32x4Constructor, 1849420944) \
66 V(Float32x4, Float32x4.zero, Float32x4Zero, 865663495) \ 66 V(Float32x4, Float32x4.zero, Float32x4Zero, 762161262) \
67 V(Float32x4, Float32x4.splat, Float32x4Splat, 964312836) \ 67 V(Float32x4, Float32x4.splat, Float32x4Splat, 255855286) \
68 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, 688177588) \ 68 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, 1718571366)\
69 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, 1327692716) \ 69 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, 1458098858) \
70 V(_Float32x4, shuffle, Float32x4Shuffle, 1636488139) \ 70 V(_Float32x4, shuffle, Float32x4Shuffle, 2015957023) \
71 V(_Float32x4, shuffleMix, Float32x4ShuffleMix, 654814229) \ 71 V(_Float32x4, shuffleMix, Float32x4ShuffleMix, 1099087979) \
72 V(_Float32x4, get:signMask, Float32x4GetSignMask, 630880675) \ 72 V(_Float32x4, get:signMask, Float32x4GetSignMask, 487049875) \
73 V(_Float32x4, _cmpequal, Float32x4Equal, 571062952) \ 73 V(_Float32x4, _cmpequal, Float32x4Equal, 1069901308) \
74 V(_Float32x4, _cmpgt, Float32x4GreaterThan, 1613543295) \ 74 V(_Float32x4, _cmpgt, Float32x4GreaterThan, 2112381651) \
75 V(_Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, 589402909) \ 75 V(_Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, 1088241265) \
76 V(_Float32x4, _cmplt, Float32x4LessThan, 1502332656) \ 76 V(_Float32x4, _cmplt, Float32x4LessThan, 2001171012) \
77 V(_Float32x4, _cmplte, Float32x4LessThanOrEqual, 1069848031) \ 77 V(_Float32x4, _cmplte, Float32x4LessThanOrEqual, 1568686387) \
78 V(_Float32x4, _cmpnequal, Float32x4NotEqual, 1334574472) \ 78 V(_Float32x4, _cmpnequal, Float32x4NotEqual, 1833412828) \
79 V(_Float32x4, _min, Float32x4Min, 2036349551) \ 79 V(_Float32x4, _min, Float32x4Min, 1194113943) \
80 V(_Float32x4, _max, Float32x4Max, 571688115) \ 80 V(_Float32x4, _max, Float32x4Max, 1876936155) \
81 V(_Float32x4, _scale, Float32x4Scale, 1311297761) \ 81 V(_Float32x4, _scale, Float32x4Scale, 1176743640) \
82 V(_Float32x4, _sqrt, Float32x4Sqrt, 1709659395) \ 82 V(_Float32x4, _sqrt, Float32x4Sqrt, 526238610) \
83 V(_Float32x4, _reciprocalSqrt, Float32x4ReciprocalSqrt, 2043980962) \ 83 V(_Float32x4, _reciprocalSqrt, Float32x4ReciprocalSqrt, 860560177) \
84 V(_Float32x4, _reciprocal, Float32x4Reciprocal, 739405237) \ 84 V(_Float32x4, _reciprocal, Float32x4Reciprocal, 1703468100) \
85 V(_Float32x4, _negate, Float32x4Negate, 445839777) \ 85 V(_Float32x4, _negate, Float32x4Negate, 1409902640) \
86 V(_Float32x4, _abs, Float32x4Absolute, 1152777608) \ 86 V(_Float32x4, _abs, Float32x4Absolute, 2116840471) \
87 V(_Float32x4, _clamp, Float32x4Clamp, 410673744) \ 87 V(_Float32x4, _clamp, Float32x4Clamp, 1789892357) \
88 V(_Float32x4, withX, Float32x4WithX, 1446546696) \ 88 V(_Float32x4, withX, Float32x4WithX, 1311992575) \
89 V(_Float32x4, withY, Float32x4WithY, 309844761) \ 89 V(_Float32x4, withY, Float32x4WithY, 175290640) \
90 V(_Float32x4, withZ, Float32x4WithZ, 971921505) \ 90 V(_Float32x4, withZ, Float32x4WithZ, 837367384) \
91 V(_Float32x4, withW, Float32x4WithW, 1759699726) \ 91 V(_Float32x4, withW, Float32x4WithW, 1625145605) \
92 V(Float64x2, Float64x2., Float64x2Constructor, 1047027504) \ 92 V(Float64x2, Float64x2., Float64x2Constructor, 1428850802) \
93 V(Float64x2, Float64x2.zero, Float64x2Zero, 1208364703) \ 93 V(Float64x2, Float64x2.zero, Float64x2Zero, 29170676) \
94 V(Float64x2, Float64x2.splat, Float64x2Splat, 987392531) \ 94 V(Float64x2, Float64x2.splat, Float64x2Splat, 1077183856) \
95 V(Float64x2, Float64x2.fromFloat32x4, Float64x2FromFloat32x4, 1547827778) \ 95 V(Float64x2, Float64x2.fromFloat32x4, Float64x2FromFloat32x4, 1752000980) \
96 V(_Float64x2, get:x, Float64x2GetX, 261163258) \ 96 V(_Float64x2, get:x, Float64x2GetX, 1488958362) \
97 V(_Float64x2, get:y, Float64x2GetY, 1942377050) \ 97 V(_Float64x2, get:y, Float64x2GetY, 1022688506) \
98 V(_Float64x2, _negate, Float64x2Negate, 2133212774) \ 98 V(_Float64x2, _negate, Float64x2Negate, 960840275) \
99 V(_Float64x2, abs, Float64x2Abs, 1224776282) \ 99 V(_Float64x2, abs, Float64x2Abs, 52403783) \
100 V(_Float64x2, sqrt, Float64x2Sqrt, 1037569520) \ 100 V(_Float64x2, sqrt, Float64x2Sqrt, 2012680669) \
101 V(_Float64x2, get:signMask, Float64x2GetSignMask, 253055964) \ 101 V(_Float64x2, get:signMask, Float64x2GetSignMask, 668856717) \
102 V(_Float64x2, scale, Float64x2Scale, 1199438744) \ 102 V(_Float64x2, scale, Float64x2Scale, 646122081) \
103 V(_Float64x2, withX, Float64x2WithX, 1042725932) \ 103 V(_Float64x2, withX, Float64x2WithX, 489409269) \
104 V(_Float64x2, withY, Float64x2WithY, 1496958947) \ 104 V(_Float64x2, withY, Float64x2WithY, 943642284) \
105 V(_Float64x2, min, Float64x2Min, 485240583) \ 105 V(_Float64x2, min, Float64x2Min, 685235702) \
106 V(_Float64x2, max, Float64x2Max, 2146148204) \ 106 V(_Float64x2, max, Float64x2Max, 198659675) \
107 V(Int32x4, Int32x4., Int32x4Constructor, 323626792) \ 107 V(Int32x4, Int32x4., Int32x4Constructor, 80862812) \
108 V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, 637206368) \ 108 V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, 1949580252) \
109 V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, 420618790) \ 109 V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, 1611205288) \
110 V(_Int32x4, get:flagX, Int32x4GetFlagX, 1077674402) \ 110 V(_Int32x4, get:flagX, Int32x4GetFlagX, 1446544324) \
111 V(_Int32x4, get:flagY, Int32x4GetFlagY, 779279448) \ 111 V(_Int32x4, get:flagY, Int32x4GetFlagY, 1148149370) \
112 V(_Int32x4, get:flagZ, Int32x4GetFlagZ, 182031447) \ 112 V(_Int32x4, get:flagZ, Int32x4GetFlagZ, 550901369) \
113 V(_Int32x4, get:flagW, Int32x4GetFlagW, 977794698) \ 113 V(_Int32x4, get:flagW, Int32x4GetFlagW, 1346664620) \
114 V(_Int32x4, get:signMask, Int32x4GetSignMask, 1929391078) \ 114 V(_Int32x4, get:signMask, Int32x4GetSignMask, 740215269) \
115 V(_Int32x4, shuffle, Int32x4Shuffle, 1870018702) \ 115 V(_Int32x4, shuffle, Int32x4Shuffle, 549194518) \
116 V(_Int32x4, shuffleMix, Int32x4ShuffleMix, 1024903172) \ 116 V(_Int32x4, shuffleMix, Int32x4ShuffleMix, 1550866145) \
117 V(_Int32x4, select, Int32x4Select, 1638081645) \ 117 V(_Int32x4, select, Int32x4Select, 614943686) \
118 V(_Int32x4, withFlagX, Int32x4WithFlagX, 467852789) \ 118 V(_Int32x4, withFlagX, Int32x4WithFlagX, 250974159) \
119 V(_Int32x4, withFlagY, Int32x4WithFlagY, 1903359978) \ 119 V(_Int32x4, withFlagY, Int32x4WithFlagY, 1686481348) \
120 V(_Int32x4, withFlagZ, Int32x4WithFlagZ, 862460960) \ 120 V(_Int32x4, withFlagZ, Int32x4WithFlagZ, 645582330) \
121 V(_Int32x4, withFlagW, Int32x4WithFlagW, 1095242907) \ 121 V(_Int32x4, withFlagW, Int32x4WithFlagW, 878364277) \
122 V(_Float32Array, [], Float32ArrayGetIndexed, 321832479) \ 122 V(_Float32Array, [], Float32ArrayGetIndexed, 1002307136) \
123 V(_Float32Array, []=, Float32ArraySetIndexed, 979306169) \ 123 V(_Float32Array, []=, Float32ArraySetIndexed, 279546769) \
124 V(_Int8Array, [], Int8ArrayGetIndexed, 1390782783) \ 124 V(_Int8Array, [], Int8ArrayGetIndexed, 1141846285) \
125 V(_Int8Array, []=, Int8ArraySetIndexed, 1774152196) \ 125 V(_Int8Array, []=, Int8ArraySetIndexed, 1486839324) \
126 V(_Uint8ClampedArray, [], Uint8ClampedArrayGetIndexed, 1297457028) \ 126 V(_Uint8ClampedArray, [], Uint8ClampedArrayGetIndexed, 513704632) \
127 V(_Uint8ClampedArray, []=, Uint8ClampedArraySetIndexed, 2018722539) \ 127 V(_Uint8ClampedArray, []=, Uint8ClampedArraySetIndexed, 1015846567) \
128 V(_ExternalUint8ClampedArray, [], \ 128 V(_ExternalUint8ClampedArray, [], ExternalUint8ClampedArrayGetIndexed, \
129 ExternalUint8ClampedArrayGetIndexed, 1871828532) \ 129 513704632) \
130 V(_ExternalUint8ClampedArray, []=, \ 130 V(_ExternalUint8ClampedArray, []=, ExternalUint8ClampedArraySetIndexed, \
131 ExternalUint8ClampedArraySetIndexed, 1746834469) \ 131 1015846567) \
132 V(_Int16Array, [], Int16ArrayGetIndexed, 1699340532) \ 132 V(_Int16Array, [], Int16ArrayGetIndexed, 1826359619) \
133 V(_Int16Array, []=, Int16ArraySetIndexed, 799870496) \ 133 V(_Int16Array, []=, Int16ArraySetIndexed, 1108689116) \
134 V(_Uint16Array, [], Uint16ArrayGetIndexed, 452576118) \ 134 V(_Uint16Array, [], Uint16ArrayGetIndexed, 118958722) \
135 V(_Uint16Array, []=, Uint16ArraySetIndexed, 1594961463) \ 135 V(_Uint16Array, []=, Uint16ArraySetIndexed, 658824450) \
136 V(_Int32Array, [], Int32ArrayGetIndexed, 2052925823) \ 136 V(_Int32Array, [], Int32ArrayGetIndexed, 681203163) \
137 V(_Int32Array, []=, Int32ArraySetIndexed, 504626978) \ 137 V(_Int32Array, []=, Int32ArraySetIndexed, 1786886245) \
138 V(_Int64Array, [], Int64ArrayGetIndexed, 297668331) \ 138 V(_Int64Array, [], Int64ArrayGetIndexed, 1883155004) \
139 V(_Int64Array, []=, Int64ArraySetIndexed, 36465128) \ 139 V(_Int64Array, []=, Int64ArraySetIndexed, 905815059) \
140 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 35821240) \ 140 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 694822356) \
141 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 428758949) \ 141 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 1166109127) \
142 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 1830534333) \ 142 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 668249259) \
143 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 1631676655) \ 143 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 654739449) \
144 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 1860837505) \ 144 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 196472005) \
145 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 821269609) \ 145 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 1421858500) \
146 V(_Bigint, get:_neg, Bigint_getNeg, 1151633263) \ 146 V(_Bigint, get:_neg, Bigint_getNeg, 1681019799) \
147 V(_Bigint, get:_used, Bigint_getUsed, 1308648707) \ 147 V(_Bigint, get:_used, Bigint_getUsed, 1439136438) \
148 V(_Bigint, get:_digits, Bigint_getDigits, 1408181836) \ 148 V(_Bigint, get:_digits, Bigint_getDigits, 769722770) \
149 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 1431607529) \ 149 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 2048715833) \
150 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 2007926178) \ 150 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 1882796480) \
151 V(_HashVMBase, get:_data, LinkedHashMap_getData, 958070909) \ 151 V(_HashVMBase, get:_data, LinkedHashMap_getData, 942992497) \
152 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1134236592) \ 152 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1410623019) \
153 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 421669312) \ 153 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 1698421819) \
154 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1152062737) \ 154 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1858754514) \
155 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 969476186) \ 155 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 98745045) \
156 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1781420082) \ 156 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 340628211) \
157 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 63633039) \ 157 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 1340385546) \
158 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 2079107858) \ 158 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 638315987) \
159 159
160 160
161 // List of intrinsics: 161 // List of intrinsics:
162 // (class-name, function-name, intrinsification method, fingerprint). 162 // (class-name, function-name, intrinsification method, fingerprint).
163 #define CORE_LIB_INTRINSIC_LIST(V) \ 163 #define CORE_LIB_INTRINSIC_LIST(V) \
164 V(_Smi, ~, Smi_bitNegate, 221883538) \ 164 V(_Smi, ~, Smi_bitNegate, 1673522705) \
165 V(_Smi, get:bitLength, Smi_bitLength, 870075661) \ 165 V(_Smi, get:bitLength, Smi_bitLength, 632480332) \
166 V(_Bigint, _lsh, Bigint_lsh, 1457834861) \ 166 V(_Bigint, _lsh, Bigint_lsh, 834311957) \
167 V(_Bigint, _rsh, Bigint_rsh, 1619318930) \ 167 V(_Bigint, _rsh, Bigint_rsh, 333337658) \
168 V(_Bigint, _absAdd, Bigint_absAdd, 1029882563) \ 168 V(_Bigint, _absAdd, Bigint_absAdd, 473436659) \
169 V(_Bigint, _absSub, Bigint_absSub, 1407667556) \ 169 V(_Bigint, _absSub, Bigint_absSub, 1018678324) \
170 V(_Bigint, _mulAdd, Bigint_mulAdd, 1408994809) \ 170 V(_Bigint, _mulAdd, Bigint_mulAdd, 571005736) \
171 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 2025116181) \ 171 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 372896038) \
172 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 919247767) \ 172 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 540033329) \
173 V(_Montgomery, _mulMod, Montgomery_mulMod, 401580778) \ 173 V(_Montgomery, _mulMod, Montgomery_mulMod, 118781828) \
174 V(_Double, >, Double_greaterThan, 1329424300) \ 174 V(_Double, >, Double_greaterThan, 1413076759) \
175 V(_Double, >=, Double_greaterEqualThan, 805805707) \ 175 V(_Double, >=, Double_greaterEqualThan, 1815180096) \
176 V(_Double, <, Double_lessThan, 1504529159) \ 176 V(_Double, <, Double_lessThan, 652059836) \
177 V(_Double, <=, Double_lessEqualThan, 1650247787) \ 177 V(_Double, <=, Double_lessEqualThan, 512138528) \
178 V(_Double, ==, Double_equal, 1107327662) \ 178 V(_Double, ==, Double_equal, 752327620) \
179 V(_Double, +, Double_add, 957499569) \ 179 V(_Double, +, Double_add, 854024064) \
180 V(_Double, -, Double_sub, 788608394) \ 180 V(_Double, -, Double_sub, 685132889) \
181 V(_Double, *, Double_mul, 645729895) \ 181 V(_Double, *, Double_mul, 542254390) \
182 V(_Double, /, Double_div, 1249186273) \ 182 V(_Double, /, Double_div, 1145710768) \
183 V(_Double, get:isNaN, Double_getIsNaN, 843169197) \ 183 V(_Double, get:isNaN, Double_getIsNaN, 184085483) \
184 V(_Double, get:isNegative, Double_getIsNegative, 1637994744) \ 184 V(_Double, get:isNegative, Double_getIsNegative, 978911030) \
185 V(_Double, _mulFromInteger, Double_mulFromInteger, 63390017) \ 185 V(_Double, _mulFromInteger, Double_mulFromInteger, 543831179) \
186 V(_Double, .fromInteger, DoubleFromInteger, 213717920) \ 186 V(_Double, .fromInteger, DoubleFromInteger, 1453449234) \
187 V(_List, []=, ObjectArraySetIndexed, 527521746) \ 187 V(_List, []=, ObjectArraySetIndexed, 886228780) \
188 V(_GrowableList, .withData, GrowableArray_Allocate, 2094352700) \ 188 V(_GrowableList, .withData, GrowableArray_Allocate, 131424500) \
189 V(_GrowableList, add, GrowableArray_add, 1675959698) \ 189 V(_GrowableList, add, GrowableArray_add, 242296201) \
190 V(_JSSyntaxRegExp, _ExecuteMatch, JSRegExp_ExecuteMatch, 1711509198) \ 190 V(_JSSyntaxRegExp, _ExecuteMatch, JSRegExp_ExecuteMatch, 1490503678) \
191 V(Object, ==, ObjectEquals, 409406570) \ 191 V(Object, ==, ObjectEquals, 291909336) \
192 V(Object, get:runtimeType, ObjectRuntimeType, 2076963579) \ 192 V(Object, get:runtimeType, ObjectRuntimeType, 15188587) \
193 V(_StringBase, get:hashCode, String_getHashCode, 2103025405) \ 193 V(_StringBase, get:hashCode, String_getHashCode, 2026040200) \
194 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 780870414) \ 194 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1958879178) \
195 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ 195 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1436590579) \
196 V(_StringBase, _substringMatches, StringBaseSubstringMatches, 347814979) \ 196 V(_StringBase, _substringMatches, StringBaseSubstringMatches, 1548648995) \
197 V(_StringBase, [], StringBaseCharAt, 408544820) \ 197 V(_StringBase, [], StringBaseCharAt, 754527301) \
198 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1111957093) \ 198 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 2026040200) \
199 V(_OneByteString, _substringUncheckedNative, \ 199 V(_OneByteString, _substringUncheckedNative, \
200 OneByteString_substringUnchecked, 1584757277) \ 200 OneByteString_substringUnchecked, 2063670029) \
201 V(_OneByteString, _setAt, OneByteStringSetAt, 1927993207) \ 201 V(_OneByteString, _setAt, OneByteStringSetAt, 929822971) \
202 V(_OneByteString, _allocate, OneByteString_allocate, 1248050114) \ 202 V(_OneByteString, _allocate, OneByteString_allocate, 1737851380) \
203 V(_OneByteString, ==, OneByteString_equality, 1151307249) \ 203 V(_OneByteString, ==, OneByteString_equality, 1062844160) \
204 V(_TwoByteString, ==, TwoByteString_equality, 375409915) \ 204 V(_TwoByteString, ==, TwoByteString_equality, 1062844160) \
205 205
206 206
207 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ 207 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \
208 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ 208 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, 298045644)\
209 438687793) \ 209 V(_IntegerImplementation, +, Integer_add, 364498398) \
210 V(_IntegerImplementation, +, Integer_add, 6890122) \ 210 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, 422157928)\
211 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ 211 V(_IntegerImplementation, -, Integer_sub, 1682674911) \
212 562800077) \
213 V(_IntegerImplementation, -, Integer_sub, 1325066635) \
214 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ 212 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \
215 67891834) \ 213 2074733333) \
216 V(_IntegerImplementation, *, Integer_mul, 1293507180) \ 214 V(_IntegerImplementation, *, Integer_mul, 1651115456) \
217 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \ 215 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \
218 93478264) \ 216 2100319763) \
219 V(_IntegerImplementation, ~/, Integer_truncDivide, 1401079912) \ 217 V(_IntegerImplementation, ~/, Integer_truncDivide, 108494012) \
220 V(_IntegerImplementation, unary-, Integer_negate, 1992904169) \ 218 V(_IntegerImplementation, unary-, Integer_negate, 1507648892) \
221 V(_IntegerImplementation, _bitAndFromInteger, \ 219 V(_IntegerImplementation, _bitAndFromInteger, Integer_bitAndFromInteger, \
222 Integer_bitAndFromInteger, 504496713) \ 220 363854564) \
223 V(_IntegerImplementation, &, Integer_bitAnd, 154523381) \ 221 V(_IntegerImplementation, &, Integer_bitAnd, 286231290) \
224 V(_IntegerImplementation, _bitOrFromInteger, \ 222 V(_IntegerImplementation, _bitOrFromInteger, Integer_bitOrFromInteger, \
225 Integer_bitOrFromInteger, 1763728073) \ 223 1623085924) \
226 V(_IntegerImplementation, |, Integer_bitOr, 979400883) \ 224 V(_IntegerImplementation, |, Integer_bitOr, 1111108792) \
227 V(_IntegerImplementation, _bitXorFromInteger, \ 225 V(_IntegerImplementation, _bitXorFromInteger, Integer_bitXorFromInteger, \
228 Integer_bitXorFromInteger, 281425907) \ 226 140783758) \
229 V(_IntegerImplementation, ^, Integer_bitXor, 1753100628) \ 227 V(_IntegerImplementation, ^, Integer_bitXor, 1884808537) \
230 V(_IntegerImplementation, \ 228 V(_IntegerImplementation, _greaterThanFromInteger, \
231 _greaterThanFromInteger, \ 229 Integer_greaterThanFromInt, 814932166) \
232 Integer_greaterThanFromInt, 787426822) \ 230 V(_IntegerImplementation, >, Integer_greaterThan, 293890061) \
233 V(_IntegerImplementation, >, Integer_greaterThan, 871319346) \ 231 V(_IntegerImplementation, ==, Integer_equal, 4489308) \
234 V(_IntegerImplementation, ==, Integer_equal, 150126631) \
235 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, \ 232 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, \
236 1790821042) \ 233 1818326386) \
237 V(_IntegerImplementation, <, Integer_lessThan, 1997184951) \ 234 V(_IntegerImplementation, <, Integer_lessThan, 652059836) \
238 V(_IntegerImplementation, <=, Integer_lessEqualThan, 909274395) \ 235 V(_IntegerImplementation, <=, Integer_lessEqualThan, 512138528) \
239 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 64832315) \ 236 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1815180096) \
240 V(_IntegerImplementation, <<, Integer_shl, 162043543) \ 237 V(_IntegerImplementation, <<, Integer_shl, 293751452) \
241 V(_IntegerImplementation, >>, Integer_sar, 2140866840) \ 238 V(_IntegerImplementation, >>, Integer_sar, 125091101) \
242 V(_Double, toInt, DoubleToInteger, 1547535151) 239 V(_Double, toInt, DoubleToInteger, 653210699)
243 240
244 241
245 #define MATH_LIB_INTRINSIC_LIST(V) \ 242 #define MATH_LIB_INTRINSIC_LIST(V) \
246 V(::, sqrt, MathSqrt, 101545548) \ 243 V(::, sqrt, MathSqrt, 1446681622) \
247 V(_Random, _nextState, Random_nextState, 170407315) \ 244 V(_Random, _nextState, Random_nextState, 1241583299) \
248 245
249 246
250 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 247 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \
251 V(_Int8Array, _new, TypedData_Int8Array_new, 362764911) \ 248 V(_Int8Array, _new, TypedData_Int8Array_new, 1025382728) \
252 V(_Uint8Array, _new, TypedData_Uint8Array_new, 1232298852) \ 249 V(_Uint8Array, _new, TypedData_Uint8Array_new, 1772090315) \
253 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 2086529408) \ 250 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1817995920) \
254 V(_Int16Array, _new, TypedData_Int16Array_new, 1092174107) \ 251 V(_Int16Array, _new, TypedData_Int16Array_new, 857482727) \
255 V(_Uint16Array, _new, TypedData_Uint16Array_new, 1549613141) \ 252 V(_Uint16Array, _new, TypedData_Uint16Array_new, 224498043) \
256 V(_Int32Array, _new, TypedData_Int32Array_new, 937960140) \ 253 V(_Int32Array, _new, TypedData_Int32Array_new, 662785062) \
257 V(_Uint32Array, _new, TypedData_Uint32Array_new, 1370423225) \ 254 V(_Uint32Array, _new, TypedData_Uint32Array_new, 457777042) \
258 V(_Int64Array, _new, TypedData_Int64Array_new, 512135010) \ 255 V(_Int64Array, _new, TypedData_Int64Array_new, 11424776) \
259 V(_Uint64Array, _new, TypedData_Uint64Array_new, 847951795) \ 256 V(_Uint64Array, _new, TypedData_Uint64Array_new, 580841705) \
260 V(_Float32Array, _new, TypedData_Float32Array_new, 1937854220) \ 257 V(_Float32Array, _new, TypedData_Float32Array_new, 141243383) \
261 V(_Float64Array, _new, TypedData_Float64Array_new, 2005472426) \ 258 V(_Float64Array, _new, TypedData_Float64Array_new, 2054234881) \
262 V(_Float32x4Array, _new, TypedData_Float32x4Array_new, 1956756158) \ 259 V(_Float32x4Array, _new, TypedData_Float32x4Array_new, 1277009760) \
263 V(_Int32x4Array, _new, TypedData_Int32x4Array_new, 1856474973) \ 260 V(_Int32x4Array, _new, TypedData_Int32x4Array_new, 366994774) \
264 V(_Float64x2Array, _new, TypedData_Float64x2Array_new, 719608172) \ 261 V(_Float64x2Array, _new, TypedData_Float64x2Array_new, 134695262) \
265 V(_Int8Array, ., TypedData_Int8Array_factory, 439914696) \ 262 V(_Int8Array, ., TypedData_Int8Array_factory, 484088513) \
266 V(_Uint8Array, ., TypedData_Uint8Array_factory, 1442599030) \ 263 V(_Uint8Array, ., TypedData_Uint8Array_factory, 1830561671) \
267 V(_Uint8ClampedArray, ., TypedData_Uint8ClampedArray_factory, 1320015159) \ 264 V(_Uint8ClampedArray, ., TypedData_Uint8ClampedArray_factory, 980532456) \
268 V(_Int16Array, ., TypedData_Int16Array_factory, 2132591678) \ 265 V(_Int16Array, ., TypedData_Int16Array_factory, 2095566414) \
269 V(_Uint16Array, ., TypedData_Uint16Array_factory, 1704816032) \ 266 V(_Uint16Array, ., TypedData_Uint16Array_factory, 248627537) \
270 V(_Int32Array, ., TypedData_Int32Array_factory, 1115045147) \ 267 V(_Int32Array, ., TypedData_Int32Array_factory, 836050202) \
271 V(_Uint32Array, ., TypedData_Uint32Array_factory, 1385852190) \ 268 V(_Uint32Array, ., TypedData_Uint32Array_factory, 102123815) \
272 V(_Int64Array, ., TypedData_Int64Array_factory, 1193438555) \ 269 V(_Int64Array, ., TypedData_Int64Array_factory, 1820730838) \
273 V(_Uint64Array, ., TypedData_Uint64Array_factory, 410766246) \ 270 V(_Uint64Array, ., TypedData_Uint64Array_factory, 1668399825) \
274 V(_Float32Array, ., TypedData_Float32Array_factory, 1194249144) \ 271 V(_Float32Array, ., TypedData_Float32Array_factory, 307228626) \
275 V(_Float64Array, ., TypedData_Float64Array_factory, 1430631000) \ 272 V(_Float64Array, ., TypedData_Float64Array_factory, 1700923139) \
276 V(_Float32x4Array, ., TypedData_Float32x4Array_factory, 158753569) \ 273 V(_Float32x4Array, ., TypedData_Float32x4Array_factory, 1083909924) \
277 V(_Int32x4Array, ., TypedData_Int32x4Array_factory, 1189213641) \ 274 V(_Int32x4Array, ., TypedData_Int32x4Array_factory, 803703492) \
278 V(_Float64x2Array, ., TypedData_Float64x2Array_factory, 1699696799) \ 275 V(_Float64x2Array, ., TypedData_Float64x2Array_factory, 944719167) \
279 276
280 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ 277 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
281 V(_Uint8Array, [], Uint8ArrayGetIndexed, 579862489) \ 278 V(_Uint8Array, [], Uint8ArrayGetIndexed, 513704632) \
282 V(_Uint8Array, []=, Uint8ArraySetIndexed, 447309008) \ 279 V(_Uint8Array, []=, Uint8ArraySetIndexed, 2123520783) \
283 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 1293647140) \ 280 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 513704632) \
284 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 1593599192) \ 281 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 2123520783) \
285 V(_Uint32Array, [], Uint32ArrayGetIndexed, 1034114777) \ 282 V(_Uint32Array, [], Uint32ArrayGetIndexed, 1179675338) \
286 V(_Uint32Array, []=, Uint32ArraySetIndexed, 918159348) \ 283 V(_Uint32Array, []=, Uint32ArraySetIndexed, 1455695417) \
287 V(_Float64Array, []=, Float64ArraySetIndexed, 887301703) \ 284 V(_Float64Array, []=, Float64ArraySetIndexed, 1929239576) \
288 V(_Float64Array, [], Float64ArrayGetIndexed, 1959896670) \ 285 V(_Float64Array, [], Float64ArrayGetIndexed, 816943529) \
289 V(_TypedList, get:length, TypedDataLength, 522684521) \ 286 V(_TypedList, get:length, TypedDataLength, 546364442) \
290 V(_Float32x4, get:x, Float32x4ShuffleX, 384969722) \ 287 V(_Float32x4, get:x, Float32x4ShuffleX, 1674625343) \
291 V(_Float32x4, get:y, Float32x4ShuffleY, 1398121942) \ 288 V(_Float32x4, get:y, Float32x4ShuffleY, 540293915) \
292 V(_Float32x4, get:z, Float32x4ShuffleZ, 1178175605) \ 289 V(_Float32x4, get:z, Float32x4ShuffleZ, 320347578) \
293 V(_Float32x4, get:w, Float32x4ShuffleW, 480951003) \ 290 V(_Float32x4, get:w, Float32x4ShuffleW, 1770606624) \
294 V(_Float32x4, _mul, Float32x4Mul, 1703784673) \ 291 V(_Float32x4, _mul, Float32x4Mul, 861549065) \
295 V(_Float32x4, _sub, Float32x4Sub, 1302598822) \ 292 V(_Float32x4, _sub, Float32x4Sub, 460363214) \
296 V(_Float32x4, _add, Float32x4Add, 182344215) \ 293 V(_Float32x4, _add, Float32x4Add, 1487592255) \
297 294
298 #define GRAPH_CORE_INTRINSICS_LIST(V) \ 295 #define GRAPH_CORE_INTRINSICS_LIST(V) \
299 V(_List, get:length, ObjectArrayLength, 1181471893) \ 296 V(_List, get:length, ObjectArrayLength, 630471378) \
300 V(_List, [], ObjectArrayGetIndexed, 1839430267) \ 297 V(_List, [], ObjectArrayGetIndexed, 360400496) \
301 V(_ImmutableList, get:length, ImmutableArrayLength, 275036891) \ 298 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \
302 V(_ImmutableList, [], ImmutableArrayGetIndexed, 886511484) \ 299 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \
303 V(_GrowableList, get:length, GrowableArrayLength, 778624271) \ 300 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \
304 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 555259239) \ 301 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 193746510) \
305 V(_GrowableList, _setData, GrowableArraySetData, 508234257) \ 302 V(_GrowableList, _setData, GrowableArraySetData, 1496536873) \
306 V(_GrowableList, _setLength, GrowableArraySetLength, 618179695) \ 303 V(_GrowableList, _setLength, GrowableArraySetLength, 32203572) \
307 V(_GrowableList, [], GrowableArrayGetIndexed, 1962926024) \ 304 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \
308 V(_GrowableList, []=, GrowableArraySetIndexed, 457344024) \ 305 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \
309 V(_StringBase, get:length, StringBaseLength, 784518792) \ 306 V(_StringBase, get:length, StringBaseLength, 707533587) \
310 V(_Double, unary-, DoubleFlipSignBit, 2107492213) 307 V(_Double, unary-, DoubleFlipSignBit, 1783281169)
311 308
312 #define GRAPH_INTRINSICS_LIST(V) \ 309 #define GRAPH_INTRINSICS_LIST(V) \
313 GRAPH_CORE_INTRINSICS_LIST(V) \ 310 GRAPH_CORE_INTRINSICS_LIST(V) \
314 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ 311 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
315 312
316 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ 313 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \
317 V(_UserTag, makeCurrent, UserTag_makeCurrent, 788201614) \ 314 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \
318 V(::, _getDefaultTag, UserTag_defaultTag, 1080704381) \ 315 V(::, _getDefaultTag, UserTag_defaultTag, 1872263331) \
319 V(::, _getCurrentTag, Profiler_getCurrentTag, 2048029229) \ 316 V(::, _getCurrentTag, Profiler_getCurrentTag, 692104531) \
320 317
321 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ 318 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
322 CORE_LIB_INTRINSIC_LIST(V) \ 319 CORE_LIB_INTRINSIC_LIST(V) \
323 DEVELOPER_LIB_INTRINSIC_LIST(V) \ 320 DEVELOPER_LIB_INTRINSIC_LIST(V) \
324 MATH_LIB_INTRINSIC_LIST(V) \ 321 MATH_LIB_INTRINSIC_LIST(V) \
325 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 322 TYPED_DATA_LIB_INTRINSIC_LIST(V) \
326 323
327 324
328 #define ALL_INTRINSICS_LIST(V) \ 325 #define ALL_INTRINSICS_LIST(V) \
329 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ 326 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
330 CORE_INTEGER_LIB_INTRINSIC_LIST(V) 327 CORE_INTEGER_LIB_INTRINSIC_LIST(V)
331 328
332 #define RECOGNIZED_LIST(V) \ 329 #define RECOGNIZED_LIST(V) \
333 OTHER_RECOGNIZED_LIST(V) \ 330 OTHER_RECOGNIZED_LIST(V) \
334 ALL_INTRINSICS_LIST(V) \ 331 ALL_INTRINSICS_LIST(V) \
335 GRAPH_INTRINSICS_LIST(V) 332 GRAPH_INTRINSICS_LIST(V)
336 333
337 // A list of core function that should always be inlined. 334 // A list of core function that should always be inlined.
338 #define INLINE_WHITE_LIST(V) \ 335 #define INLINE_WHITE_LIST(V) \
339 V(Object, ==, ObjectEquals, 409406570) \ 336 V(Object, ==, ObjectEquals, 291909336) \
340 V(_List, get:length, ObjectArrayLength, 1181471893) \ 337 V(_List, get:length, ObjectArrayLength, 630471378) \
341 V(_ImmutableList, get:length, ImmutableArrayLength, 275036891) \ 338 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \
342 V(_TypedList, get:length, TypedDataLength, 522684521) \ 339 V(_TypedList, get:length, TypedDataLength, 546364442) \
343 V(_GrowableList, get:length, GrowableArrayLength, 778624271) \ 340 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \
344 V(_GrowableList, add, GrowableListAdd, 1675959698) \ 341 V(_GrowableList, add, GrowableListAdd, 242296201) \
345 V(_GrowableList, removeLast, GrowableListRemoveLast, 1687341910) \ 342 V(_GrowableList, removeLast, GrowableListRemoveLast, 1655383014) \
346 V(_StringBase, get:length, StringBaseLength, 784518792) \ 343 V(_StringBase, get:length, StringBaseLength, 707533587) \
347 V(ListIterator, moveNext, ListIteratorMoveNext, 1698922708) \ 344 V(ListIterator, moveNext, ListIteratorMoveNext, 1467737539) \
348 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 53548649) \ 345 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 784200630) \
349 V(_GrowableList, get:iterator, GrowableArrayIterator, 830391682) \ 346 V(_GrowableList, get:iterator, GrowableArrayIterator, 1840323187) \
350 V(_GrowableList, forEach, GrowableArrayForEach, 792224678) \ 347 V(_GrowableList, forEach, GrowableArrayForEach, 620771070) \
351 V(_List, ., ObjectArrayAllocate, 850375012) \ 348 V(_List, ., ObjectArrayAllocate, 184405219) \
352 V(_List, [], ObjectArrayGetIndexed, 1839430267) \ 349 V(_List, [], ObjectArrayGetIndexed, 360400496) \
353 V(_List, []=, ObjectArraySetIndexed, 527521746) \ 350 V(_List, []=, ObjectArraySetIndexed, 886228780) \
354 V(ListMixin, get:isEmpty, ListMixinIsEmpty, 40656674) \ 351 V(ListMixin, get:isEmpty, ListMixinIsEmpty, 2021497798) \
355 V(_List, get:iterator, ObjectArrayIterator, 1623553799) \ 352 V(_List, get:iterator, ObjectArrayIterator, 1930956161) \
356 V(_List, forEach, ObjectArrayForEach, 1840334181) \ 353 V(_List, forEach, ObjectArrayForEach, 180150673) \
357 V(_List, _slice, ObjectArraySlice, 1370223553) \ 354 V(_List, _slice, ObjectArraySlice, 1785552519) \
358 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 1527026181) \ 355 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 1930956161) \
359 V(_ImmutableList, forEach, ImmutableArrayForEach, 1311466789) \ 356 V(_ImmutableList, forEach, ImmutableArrayForEach, 180150673) \
360 V(_ImmutableList, [], ImmutableArrayGetIndexed, 886511484) \ 357 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \
361 V(_GrowableList, [], GrowableArrayGetIndexed, 1962926024) \ 358 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \
362 V(_GrowableList, []=, GrowableArraySetIndexed, 457344024) \ 359 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \
363 V(_Float32Array, [], Float32ArrayGetIndexed, 321832479) \ 360 V(_Float32Array, [], Float32ArrayGetIndexed, 1002307136) \
364 V(_Float32Array, []=, Float32ArraySetIndexed, 979306169) \ 361 V(_Float32Array, []=, Float32ArraySetIndexed, 279546769) \
365 V(_Float64Array, [], Float64ArrayGetIndexed, 1959896670) \ 362 V(_Float64Array, [], Float64ArrayGetIndexed, 816943529) \
366 V(_Float64Array, []=, Float64ArraySetIndexed, 887301703) \ 363 V(_Float64Array, []=, Float64ArraySetIndexed, 1929239576) \
367 V(_Int8Array, [], Int8ArrayGetIndexed, 1390782783) \ 364 V(_Int8Array, [], Int8ArrayGetIndexed, 1141846285) \
368 V(_Int8Array, []=, Int8ArraySetIndexed, 1774152196) \ 365 V(_Int8Array, []=, Int8ArraySetIndexed, 1486839324) \
369 V(_Uint8Array, [], Uint8ArrayGetIndexed, 579862489) \ 366 V(_Uint8Array, [], Uint8ArrayGetIndexed, 513704632) \
370 V(_Uint8Array, []=, Uint8ArraySetIndexed, 447309008) \ 367 V(_Uint8Array, []=, Uint8ArraySetIndexed, 2123520783) \
371 V(_Uint8ClampedArray, [], Uint8ClampedArrayGetIndexed, 1297457028) \ 368 V(_Uint8ClampedArray, [], Uint8ClampedArrayGetIndexed, 513704632) \
372 V(_Uint8ClampedArray, []=, Uint8ClampedArraySetIndexed, 2018722539) \ 369 V(_Uint8ClampedArray, []=, Uint8ClampedArraySetIndexed, 1015846567) \
373 V(_Uint16Array, [], Uint16ArrayGetIndexed, 452576118) \ 370 V(_Uint16Array, [], Uint16ArrayGetIndexed, 118958722) \
374 V(_Uint16Array, []=, Uint16ArraySetIndexed, 1594961463) \ 371 V(_Uint16Array, []=, Uint16ArraySetIndexed, 658824450) \
375 V(_Int16Array, [], Int16ArrayGetIndexed, 1699340532) \ 372 V(_Int16Array, [], Int16ArrayGetIndexed, 1826359619) \
376 V(_Int16Array, []=, Int16ArraySetIndexed, 799870496) \ 373 V(_Int16Array, []=, Int16ArraySetIndexed, 1108689116) \
377 V(_Int32Array, [], Int32ArrayGetIndexed, 2052925823) \ 374 V(_Int32Array, [], Int32ArrayGetIndexed, 681203163) \
378 V(_Int32Array, []=, Int32ArraySetIndexed, 504626978) \ 375 V(_Int32Array, []=, Int32ArraySetIndexed, 1786886245) \
379 V(_Int64Array, [], Int64ArrayGetIndexed, 297668331) \ 376 V(_Int64Array, [], Int64ArrayGetIndexed, 1883155004) \
380 V(_Int64Array, []=, Int64ArraySetIndexed, 36465128) \ 377 V(_Int64Array, []=, Int64ArraySetIndexed, 905815059) \
381 V(_Uint8ArrayView, [], Uint8ArrayViewGetIndexed, 662241408) \ 378 V(_Uint8ArrayView, [], Uint8ArrayViewGetIndexed, 215420949) \
382 V(_Uint8ArrayView, []=, Uint8ArrayViewSetIndexed, 1550171024) \ 379 V(_Uint8ArrayView, []=, Uint8ArrayViewSetIndexed, 1138146450) \
383 V(_Int8ArrayView, [], Int8ArrayViewGetIndexed, 875752635) \ 380 V(_Int8ArrayView, [], Int8ArrayViewGetIndexed, 1003520035) \
384 V(_Int8ArrayView, []=, Int8ArrayViewSetIndexed, 689961281) \ 381 V(_Int8ArrayView, []=, Int8ArrayViewSetIndexed, 225448326) \
385 V(_ByteDataView, setInt8, ByteDataViewSetInt8, 1039277590) \ 382 V(_ByteDataView, setInt8, ByteDataViewSetInt8, 1091734252) \
386 V(_ByteDataView, setUint8, ByteDataViewSetUint8, 497316431) \ 383 V(_ByteDataView, setUint8, ByteDataViewSetUint8, 549773093) \
387 V(_ByteDataView, setInt16, ByteDataViewSetInt16, 27520778) \ 384 V(_ByteDataView, setInt16, ByteDataViewSetInt16, 1580120352) \
388 V(_ByteDataView, setUint16, ByteDataViewSetUint16, 1543151983) \ 385 V(_ByteDataView, setUint16, ByteDataViewSetUint16, 948267909) \
389 V(_ByteDataView, setInt32, ByteDataViewSetInt32, 535913934) \ 386 V(_ByteDataView, setInt32, ByteDataViewSetInt32, 2088513508) \
390 V(_ByteDataView, setUint32, ByteDataViewSetUint32, 596009393) \ 387 V(_ByteDataView, setUint32, ByteDataViewSetUint32, 1125319) \
391 V(_ByteDataView, setInt64, ByteDataViewSetInt64, 787812783) \ 388 V(_ByteDataView, setInt64, ByteDataViewSetInt64, 192928709) \
392 V(_ByteDataView, setUint64, ByteDataViewSetUint64, 1078002910) \ 389 V(_ByteDataView, setUint64, ByteDataViewSetUint64, 483118836) \
393 V(_ByteDataView, setFloat32, ByteDataViewSetFloat32, 2098528020) \ 390 V(_ByteDataView, setFloat32, ByteDataViewSetFloat32, 1241910514) \
394 V(_ByteDataView, setFloat64, ByteDataViewSetFloat64, 659619201) \ 391 V(_ByteDataView, setFloat64, ByteDataViewSetFloat64, 1950485343) \
395 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 2117136369) \ 392 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 1939363561) \
396 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 298860761) \ 393 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 121087953) \
397 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 975961124) \ 394 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 591911343) \
398 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 1503060990) \ 395 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 2114157459) \
399 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 1096620023) \ 396 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 712570242) \
400 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 1698446167) \ 397 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 162058988) \
401 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 1950535797) \ 398 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 1566486016) \
402 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 786884343) \ 399 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 1397980812) \
403 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 889064264) \ 400 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 1251636679) \
404 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 1577605354) \ 401 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 1940177769) \
405 V(::, asin, MathASin, 1651042633) \ 402 V(::, asin, MathASin, 848695059) \
406 V(::, acos, MathACos, 1139647090) \ 403 V(::, acos, MathACos, 337299516) \
407 V(::, atan, MathATan, 1668754384) \ 404 V(::, atan, MathATan, 866406810) \
408 V(::, atan2, MathATan2, 1931713076) \ 405 V(::, atan2, MathATan2, 1901969510) \
409 V(::, cos, MathCos, 1951197905) \ 406 V(::, cos, MathCos, 1148850331) \
410 V(::, exp, MathExp, 1809210829) \ 407 V(::, exp, MathExp, 1006863255) \
411 V(::, log, MathLog, 1620336448) \ 408 V(::, log, MathLog, 817988874) \
412 V(::, max, MathMax, 212291192) \ 409 V(::, max, MathMax, 1410473322) \
413 V(::, min, MathMin, 478627534) \ 410 V(::, min, MathMin, 1115051548) \
414 V(::, pow, MathPow, 582475257) \ 411 V(::, pow, MathPow, 864430827) \
415 V(::, sin, MathSin, 1741396147) \ 412 V(::, sin, MathSin, 939048573) \
416 V(::, sqrt, MathSqrt, 101545548) \ 413 V(::, sqrt, MathSqrt, 1446681622) \
417 V(::, tan, MathTan, 982072809) \ 414 V(::, tan, MathTan, 179725235) \
418 V(Lists, copy, ListsCopy, 618211805) \ 415 V(Lists, copy, ListsCopy, 564237562) \
419 V(_Bigint, get:_neg, Bigint_getNeg, 1151633263) \ 416 V(_Bigint, get:_neg, Bigint_getNeg, 1681019799) \
420 V(_Bigint, get:_used, Bigint_getUsed, 1308648707) \ 417 V(_Bigint, get:_used, Bigint_getUsed, 1439136438) \
421 V(_Bigint, get:_digits, Bigint_getDigits, 1408181836) \ 418 V(_Bigint, get:_digits, Bigint_getDigits, 769722770) \
422 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 1431607529) \ 419 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 2048715833) \
423 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 2007926178) \ 420 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 1882796480) \
424 V(_HashVMBase, get:_data, LinkedHashMap_getData, 958070909) \ 421 V(_HashVMBase, get:_data, LinkedHashMap_getData, 942992497) \
425 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1134236592) \ 422 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1410623019) \
426 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 421669312) \ 423 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 1698421819) \
427 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1152062737) \ 424 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1858754514) \
428 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 969476186) \ 425 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 98745045) \
429 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1781420082) \ 426 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 340628211) \
430 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 63633039) \ 427 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 1340385546) \
431 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 2079107858) \ 428 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 638315987) \
432 V(Uint8List, ., Uint8ListFactory, 1844890525) \ 429 V(Uint8List, ., Uint8ListFactory, 1885328419) \
433 V(Int8List, ., Int8ListFactory, 1802068996) \ 430 V(Int8List, ., Int8ListFactory, 551286096) \
434 V(Uint16List, ., Uint16ListFactory, 1923962567) \ 431 V(Uint16List, ., Uint16ListFactory, 2018994846) \
435 V(Int16List, ., Int16ListFactory, 2000007495) \ 432 V(Int16List, ., Int16ListFactory, 1934285336) \
436 V(Uint32List, ., Uint32ListFactory, 1836019363) \ 433 V(Uint32List, ., Uint32ListFactory, 990865607) \
437 V(Int32List, ., Int32ListFactory, 442847136) \ 434 V(Int32List, ., Int32ListFactory, 2017670015) \
438 V(Uint64List, ., Uint64ListFactory, 196248223) \ 435 V(Uint64List, ., Uint64ListFactory, 1593070032) \
439 V(Int64List, ., Int64ListFactory, 1668869084) \ 436 V(Int64List, ., Int64ListFactory, 1071205588) \
440 V(Float32List, ., Float32ListFactory, 1367032554) \ 437 V(Float32List, ., Float32ListFactory, 1015272745) \
441 V(Float64List, ., Float64ListFactory, 1886443347) \ 438 V(Float64List, ., Float64ListFactory, 626315429) \
442 V(Int32x4List, ., Int32x4ListFactory, 1409401969) \ 439 V(Int32x4List, ., Int32x4ListFactory, 1693091079) \
443 V(Float32x4List, ., Float32x4ListFactory, 556438009) \ 440 V(Float32x4List, ., Float32x4ListFactory, 585154381) \
444 V(Float64x2List, ., Float64x2ListFactory, 1269752759) 441 V(Float64x2List, ., Float64x2ListFactory, 874435184)
445 442
446 443
447 // A list of core function that should never be inlined. 444 // A list of core function that should never be inlined.
448 #define INLINE_BLACK_LIST(V) \ 445 #define INLINE_BLACK_LIST(V) \
449 V(_Bigint, _lsh, Bigint_lsh, 1457834861) \ 446 V(_Bigint, _lsh, Bigint_lsh, 834311957) \
450 V(_Bigint, _rsh, Bigint_rsh, 1619318930) \ 447 V(_Bigint, _rsh, Bigint_rsh, 333337658) \
451 V(_Bigint, _absAdd, Bigint_absAdd, 1029882563) \ 448 V(_Bigint, _absAdd, Bigint_absAdd, 473436659) \
452 V(_Bigint, _absSub, Bigint_absSub, 1407667556) \ 449 V(_Bigint, _absSub, Bigint_absSub, 1018678324) \
453 V(_Bigint, _mulAdd, Bigint_mulAdd, 1408994809) \ 450 V(_Bigint, _mulAdd, Bigint_mulAdd, 571005736) \
454 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 2025116181) \ 451 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 372896038) \
455 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 919247767) \ 452 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 540033329) \
456 V(_Montgomery, _mulMod, Montgomery_mulMod, 401580778) \ 453 V(_Montgomery, _mulMod, Montgomery_mulMod, 118781828) \
457 454
458 // A list of core functions that internally dispatch based on received id. 455 // A list of core functions that internally dispatch based on received id.
459 #define POLYMORPHIC_TARGET_LIST(V) \ 456 #define POLYMORPHIC_TARGET_LIST(V) \
460 V(_StringBase, [], StringBaseCharAt, 408544820) \ 457 V(_StringBase, [], StringBaseCharAt, 754527301) \
461 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ 458 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1436590579) \
462 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 459 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 187609847) \
463 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 460 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1826086346) \
464 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 461 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1174755987) \
465 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 462 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1936358273) \
466 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ 463 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1123951931) \
467 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ 464 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 853172551) \
468 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 393003933) \ 465 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 165422183) \
469 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1792407200) \ 466 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1564825450) \
470 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1338379857) \ 467 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1123952315) \
471 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 1469917805) \ 468 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 831892409) \
472 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1892735922) \ 469 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 2043203289) \
473 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 1608794041) \ 470 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 1759261408) \
474 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 117380972) \ 471 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 267848339) \
475 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 200484754) \ 472 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 350952121) \
476 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1020151991) \ 473 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1170619358) \
477 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1175056602) \ 474 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1325523969) \
478 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 460607665) \ 475 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 541136999) \
479 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 284787790) \ 476 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 365317124) \
480 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 262426120) \ 477 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1766802707) \
481 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 613041888) \ 478 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 2075229300) \
482 479
483 // Forward declarations. 480 // Forward declarations.
484 class Function; 481 class Function;
485 482
486 // Class that recognizes the name and owner of a function and returns the 483 // Class that recognizes the name and owner of a function and returns the
487 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 484 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
488 // functions. 485 // functions.
489 class MethodRecognizer : public AllStatic { 486 class MethodRecognizer : public AllStatic {
490 public: 487 public:
491 enum Kind { 488 enum Kind {
(...skipping 19 matching lines...) Expand all
511 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) 508 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp))
512 509
513 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ 510 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \
514 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) 511 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp))
515 #endif // defined(DART_NO_SNAPSHOT). 512 #endif // defined(DART_NO_SNAPSHOT).
516 513
517 514
518 // List of recognized list factories: 515 // List of recognized list factories:
519 // (factory-name-symbol, result-cid, fingerprint). 516 // (factory-name-symbol, result-cid, fingerprint).
520 #define RECOGNIZED_LIST_FACTORY_LIST(V) \ 517 #define RECOGNIZED_LIST_FACTORY_LIST(V) \
521 V(_ListFactory, kArrayCid, 850375012) \ 518 V(_ListFactory, kArrayCid, 184405219) \
522 V(_GrowableListWithData, kGrowableObjectArrayCid, 2094352700) \ 519 V(_GrowableListWithData, kGrowableObjectArrayCid, 131424500) \
523 V(_GrowableListFactory, kGrowableObjectArrayCid, 1518848600) \ 520 V(_GrowableListFactory, kGrowableObjectArrayCid, 664918385) \
524 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 439914696) \ 521 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 484088513) \
525 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1442599030) \ 522 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1830561671) \
526 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 1320015159) \ 523 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 980532456) \
527 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 2132591678) \ 524 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 2095566414) \
528 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 1704816032) \ 525 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 248627537) \
529 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1115045147) \ 526 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 836050202) \
530 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1385852190) \ 527 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 102123815) \
531 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1193438555) \ 528 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1820730838) \
532 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 410766246) \ 529 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1668399825) \
533 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1430631000) \ 530 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1700923139) \
534 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1194249144) \ 531 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 307228626) \
535 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 158753569) \ 532 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 1083909924) \
536 533
537 534
538 // Class that recognizes factories and returns corresponding result cid. 535 // Class that recognizes factories and returns corresponding result cid.
539 class FactoryRecognizer : public AllStatic { 536 class FactoryRecognizer : public AllStatic {
540 public: 537 public:
541 // Return kDynamicCid if factory is not recognized. 538 // Return kDynamicCid if factory is not recognized.
542 static intptr_t ResultCid(const Function& factory); 539 static intptr_t ResultCid(const Function& factory);
543 }; 540 };
544 541
545 } // namespace dart 542 } // namespace dart
546 543
547 #endif // VM_METHOD_RECOGNIZER_H_ 544 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698