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

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

Issue 2572423004: Reapply "Save and restore feedback from JIT." (Closed)
Patch Set: Created 4 years 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
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 RUNTIME_VM_METHOD_RECOGNIZER_H_ 5 #ifndef RUNTIME_VM_METHOD_RECOGNIZER_H_
6 #define RUNTIME_VM_METHOD_RECOGNIZER_H_ 6 #define RUNTIME_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 // clang-format off 12 // clang-format off
13 // (class-name, function-name, recognized enum, result type, fingerprint). 13 // (class-name, function-name, recognized enum, result type, fingerprint).
14 // When adding a new function add a 0 as fingerprint, build and run to get the 14 // When adding a new function add a 0 as fingerprint, build and run to get the
15 // correct fingerprint from the mismatch error. 15 // correct fingerprint from the mismatch error.
16 #define OTHER_RECOGNIZED_LIST(V) \ 16 #define OTHER_RECOGNIZED_LIST(V) \
17 V(::, identical, ObjectIdentical, Bool, 0x49c6e96a) \ 17 V(::, identical, ObjectIdentical, Bool, 0x49c6e96a) \
18 V(ClassID, getID, ClassIDgetID, Smi, 0x528fd455) \ 18 V(ClassID, getID, ClassIDgetID, Smi, 0x528fd455) \
19 V(Object, Object., ObjectConstructor, Dynamic, 0x681617fe) \ 19 V(Object, Object., ObjectConstructor, Dynamic, 0x681617fe) \
20 V(_List, ., ObjectArrayAllocate, Array, 0x63078b15) \ 20 V(_List, ., ObjectArrayAllocate, Array, 0x375519ad) \
21 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, Smi, 0x59e7291d) \ 21 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, Smi, 0x7041895a) \
22 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, Smi, 0x38d3e5bf) \ 22 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, Smi, 0x336fa3ea) \
23 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, Smi, 0x19dde22c) \ 23 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, Smi, 0x231bbe2e) \
24 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, Smi, 0x4f3dbe58) \ 24 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, Smi, 0x0371785f) \
25 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, Dynamic, 0x082db131) \ 25 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, Dynamic, 0x65ab3a20) \
26 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, Dynamic, 0x1dcbfb98) \ 26 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, Dynamic, 0x0cb0fcf6) \
27 V(_TypedList, _getInt64, ByteArrayBaseGetInt64, Dynamic, 0x61b71474) \ 27 V(_TypedList, _getInt64, ByteArrayBaseGetInt64, Dynamic, 0x7db75d78) \
28 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, Double, 0x63b56e15) \ 28 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, Double, 0x6674ea6f) \
29 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, Double, 0x399dacf8) \ 29 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, Double, 0x236c6e7a) \
30 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, Float32x4, \ 30 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, Float32x4, \
31 0x4761a5be) \ 31 0x5c367ffb) \
32 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, Int32x4, 0x3053e92c) \ 32 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, Int32x4, 0x772d1c0f) \
33 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, Dynamic, 0x4e82d1e9) \ 33 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, Dynamic, 0x68f17de8) \
34 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, Dynamic, 0x4f3587fc) \ 34 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, Dynamic, 0x6bb8b747) \
35 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, Dynamic, 0x6cef30ee) \ 35 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, Dynamic, 0x75b8d278) \
36 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, Dynamic, 0x64f938ac) \ 36 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, Dynamic, 0x6e54f794) \
37 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, Dynamic, 0x3693c029) \ 37 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, Dynamic, 0x54123a05) \
38 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, Dynamic, 0x74bbf260) \ 38 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, Dynamic, 0x4a3fea0b) \
39 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, Dynamic, 0x75764edb) \ 39 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, Dynamic, 0x1d77d3ec) \
40 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, Dynamic, 0x6e72f2a4) \ 40 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, Dynamic, 0x5a11a2f9) \
41 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, Dynamic, 0x4765edda) \ 41 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, Dynamic, 0x0edea58b) \
42 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, Dynamic, 0x7cca4533) \ 42 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, Dynamic, 0x163bc6cc) \
43 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, Dynamic, 0x7631bdbc) \ 43 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, Dynamic, 0x5def39d2) \
44 V(_StringBase, _interpolate, StringBaseInterpolate, Dynamic, 0x6f98eb49) \ 44 V(_StringBase, _interpolate, StringBaseInterpolate, Dynamic, 0x084d9f1a) \
45 V(_IntegerImplementation, toDouble, IntegerToDouble, Double, 0x2f409861) \ 45 V(_IntegerImplementation, toDouble, IntegerToDouble, Double, 0x0d8f57ab) \
46 V(_Double, _add, DoubleAdd, Double, 0x0021c560) \ 46 V(_Double, _add, DoubleAdd, Double, 0x2a38277b) \
47 V(_Double, _sub, DoubleSub, Double, 0x419b3c66) \ 47 V(_Double, _sub, DoubleSub, Double, 0x4f466391) \
48 V(_Double, _mul, DoubleMul, Double, 0x1a08cbe1) \ 48 V(_Double, _mul, DoubleMul, Double, 0x175e4f66) \
49 V(_Double, _div, DoubleDiv, Double, 0x38d2770f) \ 49 V(_Double, _div, DoubleDiv, Double, 0x0854181b) \
50 V(::, min, MathMin, Dynamic, 0x4276561c) \ 50 V(::, min, MathMin, Dynamic, 0x4276561c) \
51 V(::, max, MathMax, Dynamic, 0x54121d6a) \ 51 V(::, max, MathMax, Dynamic, 0x54121d6a) \
52 V(::, _doublePow, MathDoublePow, Double, 0x698eb78d) \ 52 V(::, _doublePow, MathDoublePow, Double, 0x01d7b09e) \
53 V(Float32x4, Float32x4., Float32x4Constructor, Float32x4, 0x05968999) \ 53 V(Float32x4, Float32x4., Float32x4Constructor, Float32x4, 0x05968999) \
54 V(Float32x4, Float32x4.zero, Float32x4Zero, Float32x4, 0x472a4c46) \ 54 V(Float32x4, Float32x4.zero, Float32x4Zero, Float32x4, 0x472a4c46) \
55 V(Float32x4, Float32x4.splat, Float32x4Splat, Float32x4, 0x00bba1a5) \ 55 V(Float32x4, Float32x4.splat, Float32x4Splat, Float32x4, 0x00bba1a5) \
56 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, Float32x4, \ 56 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, Float32x4, \
57 0x46d00995) \ 57 0x46d00995) \
58 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, Float32x4, \ 58 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, Float32x4, \
59 0x685a86d2) \ 59 0x685a86d2) \
60 V(Float32x4, shuffle, Float32x4Shuffle, Float32x4, 0x7829101f) \ 60 V(Float32x4, shuffle, Float32x4Shuffle, Float32x4, 0x7829101f) \
61 V(Float32x4, shuffleMix, Float32x4ShuffleMix, Float32x4, 0x4182c06b) \ 61 V(Float32x4, shuffleMix, Float32x4ShuffleMix, Float32x4, 0x4182c06b) \
62 V(Float32x4, get:signMask, Float32x4GetSignMask, Dynamic, 0x1d07ca93) \ 62 V(Float32x4, get:signMask, Float32x4GetSignMask, Dynamic, 0x1d07ca93) \
63 V(Float32x4, _cmpequal, Float32x4Equal, Int32x4, 0x079804cb) \ 63 V(Float32x4, _cmpequal, Float32x4Equal, Int32x4, 0x16ad0fea) \
64 V(Float32x4, _cmpgt, Float32x4GreaterThan, Int32x4, 0x7e441585) \ 64 V(Float32x4, _cmpgt, Float32x4GreaterThan, Int32x4, 0x0641f613) \
65 V(Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, Int32x4, 0x213f782d) \ 65 V(Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, Int32x4, 0x464b8ffc) \
66 V(Float32x4, _cmplt, Float32x4LessThan, Int32x4, 0x3f481f31) \ 66 V(Float32x4, _cmplt, Float32x4LessThan, Int32x4, 0x3eecd0de) \
67 V(Float32x4, _cmplte, Float32x4LessThanOrEqual, Int32x4, 0x061db061) \ 67 V(Float32x4, _cmplte, Float32x4LessThanOrEqual, Int32x4, 0x06384754) \
68 V(Float32x4, _cmpnequal, Float32x4NotEqual, Int32x4, 0x6fada13e) \ 68 V(Float32x4, _cmpnequal, Float32x4NotEqual, Int32x4, 0x2f25ef10) \
69 V(Float32x4, _min, Float32x4Min, Float32x4, 0x4505ee78) \ 69 V(Float32x4, _min, Float32x4Min, Float32x4, 0x1ee6c750) \
70 V(Float32x4, _max, Float32x4Max, Float32x4, 0x071681c6) \ 70 V(Float32x4, _max, Float32x4Max, Float32x4, 0x4db6bbb4) \
71 V(Float32x4, _scale, Float32x4Scale, Float32x4, 0x18c7f49d) \ 71 V(Float32x4, _scale, Float32x4Scale, Float32x4, 0x52052a66) \
72 V(Float32x4, _sqrt, Float32x4Sqrt, Float32x4, 0x734e6ad0) \ 72 V(Float32x4, _sqrt, Float32x4Sqrt, Float32x4, 0x479f6b4a) \
73 V(Float32x4, _reciprocalSqrt, Float32x4ReciprocalSqrt, Float32x4, \ 73 V(Float32x4, _reciprocalSqrt, Float32x4ReciprocalSqrt, Float32x4, \
74 0x5e8a97f6) \ 74 0x6d35bfcf) \
75 V(Float32x4, _reciprocal, Float32x4Reciprocal, Float32x4, 0x626f6106) \ 75 V(Float32x4, _reciprocal, Float32x4Reciprocal, Float32x4, 0x21a56839) \
76 V(Float32x4, _negate, Float32x4Negate, Float32x4, 0x7fb3a154) \ 76 V(Float32x4, _negate, Float32x4Negate, Float32x4, 0x6cfd5db7) \
77 V(Float32x4, _abs, Float32x4Absolute, Float32x4, 0x1420f447) \ 77 V(Float32x4, _abs, Float32x4Absolute, Float32x4, 0x249b8078) \
78 V(Float32x4, _clamp, Float32x4Clamp, Float32x4, 0x4200222d) \ 78 V(Float32x4, _clamp, Float32x4Clamp, Float32x4, 0x28b06c7a) \
79 V(Float32x4, withX, Float32x4WithX, Float32x4, 0x4e336aff) \ 79 V(Float32x4, withX, Float32x4WithX, Float32x4, 0x4e336aff) \
80 V(Float32x4, withY, Float32x4WithY, Float32x4, 0x0a72b910) \ 80 V(Float32x4, withY, Float32x4WithY, Float32x4, 0x0a72b910) \
81 V(Float32x4, withZ, Float32x4WithZ, Float32x4, 0x31e93658) \ 81 V(Float32x4, withZ, Float32x4WithZ, Float32x4, 0x31e93658) \
82 V(Float32x4, withW, Float32x4WithW, Float32x4, 0x60ddc105) \ 82 V(Float32x4, withW, Float32x4WithW, Float32x4, 0x60ddc105) \
83 V(Float64x2, Float64x2., Float64x2Constructor, Float64x2, 0x193be61d) \ 83 V(Float64x2, Float64x2., Float64x2Constructor, Float64x2, 0x193be61d) \
84 V(Float64x2, Float64x2.zero, Float64x2Zero, Float64x2, 0x7b2ed5df) \ 84 V(Float64x2, Float64x2.zero, Float64x2Zero, Float64x2, 0x7b2ed5df) \
85 V(Float64x2, Float64x2.splat, Float64x2Splat, Float64x2, 0x2abbfcb2) \ 85 V(Float64x2, Float64x2.splat, Float64x2Splat, Float64x2, 0x2abbfcb2) \
86 V(Float64x2, Float64x2.fromFloat32x4, Float64x2FromFloat32x4, Float64x2, \ 86 V(Float64x2, Float64x2.fromFloat32x4, Float64x2FromFloat32x4, Float64x2, \
87 0x2f43d3a6) \ 87 0x2f43d3a6) \
88 V(Float64x2, get:x, Float64x2GetX, Double, 0x58bfb39a) \ 88 V(Float64x2, get:x, Float64x2GetX, Double, 0x58bfb39a) \
89 V(Float64x2, get:y, Float64x2GetY, Double, 0x3cf4fcfa) \ 89 V(Float64x2, get:y, Float64x2GetY, Double, 0x3cf4fcfa) \
90 V(Float64x2, _negate, Float64x2Negate, Float64x2, 0x64ef7b77) \ 90 V(Float64x2, _negate, Float64x2Negate, Float64x2, 0x523937da) \
91 V(Float64x2, abs, Float64x2Abs, Float64x2, 0x031f9e47) \ 91 V(Float64x2, abs, Float64x2Abs, Float64x2, 0x031f9e47) \
92 V(Float64x2, sqrt, Float64x2Sqrt, Float64x2, 0x77f711dd) \ 92 V(Float64x2, sqrt, Float64x2Sqrt, Float64x2, 0x77f711dd) \
93 V(Float64x2, get:signMask, Float64x2GetSignMask, Dynamic, 0x27ddf18d) \ 93 V(Float64x2, get:signMask, Float64x2GetSignMask, Dynamic, 0x27ddf18d) \
94 V(Float64x2, scale, Float64x2Scale, Float64x2, 0x26830a61) \ 94 V(Float64x2, scale, Float64x2Scale, Float64x2, 0x26830a61) \
95 V(Float64x2, withX, Float64x2WithX, Float64x2, 0x1d2bcaf5) \ 95 V(Float64x2, withX, Float64x2WithX, Float64x2, 0x1d2bcaf5) \
96 V(Float64x2, withY, Float64x2WithY, Float64x2, 0x383ed6ac) \ 96 V(Float64x2, withY, Float64x2WithY, Float64x2, 0x383ed6ac) \
97 V(Float64x2, min, Float64x2Min, Float64x2, 0x28d7ddf6) \ 97 V(Float64x2, min, Float64x2Min, Float64x2, 0x28d7ddf6) \
98 V(Float64x2, max, Float64x2Max, Float64x2, 0x0bd74e5b) \ 98 V(Float64x2, max, Float64x2Max, Float64x2, 0x0bd74e5b) \
99 V(Int32x4, Int32x4., Int32x4Constructor, Int32x4, 0x26b199a7) \ 99 V(Int32x4, Int32x4., Int32x4Constructor, Int32x4, 0x26b199a7) \
100 V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, Int32x4, 0x1b55a5e1) \ 100 V(Int32x4, Int32x4.bool, Int32x4BoolConstructor, Int32x4, 0x1b55a5e1) \
101 V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, Int32x4, \ 101 V(Int32x4, Int32x4.fromFloat32x4Bits, Int32x4FromFloat32x4Bits, Int32x4, \
102 0x7e82564c) \ 102 0x7e82564c) \
103 V(Int32x4, get:flagX, Int32x4GetFlagX, Bool, 0x563883c4) \ 103 V(Int32x4, get:flagX, Int32x4GetFlagX, Bool, 0x563883c4) \
104 V(Int32x4, get:flagY, Int32x4GetFlagY, Bool, 0x446f5e7a) \ 104 V(Int32x4, get:flagY, Int32x4GetFlagY, Bool, 0x446f5e7a) \
105 V(Int32x4, get:flagZ, Int32x4GetFlagZ, Bool, 0x20d61679) \ 105 V(Int32x4, get:flagZ, Int32x4GetFlagZ, Bool, 0x20d61679) \
106 V(Int32x4, get:flagW, Int32x4GetFlagW, Bool, 0x504478ac) \ 106 V(Int32x4, get:flagW, Int32x4GetFlagW, Bool, 0x504478ac) \
107 V(Int32x4, get:signMask, Int32x4GetSignMask, Dynamic, 0x2c1ec9e5) \ 107 V(Int32x4, get:signMask, Int32x4GetSignMask, Dynamic, 0x2c1ec9e5) \
108 V(Int32x4, shuffle, Int32x4Shuffle, Int32x4, 0x20bc0b16) \ 108 V(Int32x4, shuffle, Int32x4Shuffle, Int32x4, 0x20bc0b16) \
109 V(Int32x4, shuffleMix, Int32x4ShuffleMix, Int32x4, 0x5c7056e1) \ 109 V(Int32x4, shuffleMix, Int32x4ShuffleMix, Int32x4, 0x5c7056e1) \
110 V(Int32x4, select, Int32x4Select, Float32x4, 0x518ee337) \ 110 V(Int32x4, select, Int32x4Select, Float32x4, 0x5c254e86) \
111 V(Int32x4, withFlagX, Int32x4WithFlagX, Int32x4, 0x0ef58fcf) \ 111 V(Int32x4, withFlagX, Int32x4WithFlagX, Int32x4, 0x0ef58fcf) \
112 V(Int32x4, withFlagY, Int32x4WithFlagY, Int32x4, 0x6485a9c4) \ 112 V(Int32x4, withFlagY, Int32x4WithFlagY, Int32x4, 0x6485a9c4) \
113 V(Int32x4, withFlagZ, Int32x4WithFlagZ, Int32x4, 0x267acdfa) \ 113 V(Int32x4, withFlagZ, Int32x4WithFlagZ, Int32x4, 0x267acdfa) \
114 V(Int32x4, withFlagW, Int32x4WithFlagW, Int32x4, 0x345ac675) \ 114 V(Int32x4, withFlagW, Int32x4WithFlagW, Int32x4, 0x345ac675) \
115 V(Int64List, [], Int64ArrayGetIndexed, Dynamic, 0x0c0c939a) \ 115 V(Int64List, [], Int64ArrayGetIndexed, Dynamic, 0x680ec59b) \
116 V(Int64List, []=, Int64ArraySetIndexed, Dynamic, 0x3714d004) \ 116 V(Int64List, []=, Int64ArraySetIndexed, Dynamic, 0x0872fc15) \
117 V(_Bigint, get:_neg, Bigint_getNeg, Bool, 0x7bf17a57) \ 117 V(_Bigint, get:_neg, Bigint_getNeg, Bool, 0x355fa565) \
118 V(_Bigint, get:_used, Bigint_getUsed, Smi, 0x55041013) \ 118 V(_Bigint, get:_used, Bigint_getUsed, Smi, 0x33b9dcd2) \
119 V(_Bigint, get:_digits, Bigint_getDigits, TypedDataUint32Array, 0x46a6c1b3) \ 119 V(_Bigint, get:_digits, Bigint_getDigits, TypedDataUint32Array, 0x68de883a) \
120 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, Dynamic, 0x7d6bb76b) \ 120 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, Dynamic, 0x02468899) \
121 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, Dynamic, 0x4beb13f2) \ 121 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, Dynamic, 0x577d9e20) \
122 V(_HashVMBase, get:_data, LinkedHashMap_getData, Array, 0x4bf5ccb3) \ 122 V(_HashVMBase, get:_data, LinkedHashMap_getData, Array, 0x2d7987ee) \
123 V(_HashVMBase, set:_data, LinkedHashMap_setData, Dynamic, 0x6007556d) \ 123 V(_HashVMBase, set:_data, LinkedHashMap_setData, Dynamic, 0x1674fb28) \
124 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, Smi, 0x15e70845) \ 124 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, Smi, 0x0884b12f) \
125 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, Dynamic, 0x3e8c6edc)\ 125 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, Dynamic, 0x66f792c6)\
126 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, Smi, 0x35c5ac00) \ 126 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, Smi, 0x32f2c87d) \
127 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, Dynamic, 0x49adf69e)\ 127 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, Dynamic, 0x79ce8c9b)\
128 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, Smi, \ 128 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, Smi, \
129 0x306e6a79) \ 129 0x55839904) \
130 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, Dynamic, \ 130 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, Dynamic, \
131 0x3fe95fc2) \ 131 0x625e50cd) \
132 V(::, _classRangeCheck, ClassRangeCheck, Bool, 0x6279a7b3) \ 132 V(::, _classRangeCheck, ClassRangeCheck, Bool, 0x025e8d82) \
133 V(::, _classRangeCheckNegative, ClassRangeCheckNegated, Bool, 0x4799dac1) \ 133 V(::, _classRangeCheckNegative, ClassRangeCheckNegated, Bool, 0x32451d73) \
134 134
135 135
136 // List of intrinsics: 136 // List of intrinsics:
137 // (class-name, function-name, intrinsification method, fingerprint). 137 // (class-name, function-name, intrinsification method, fingerprint).
138 #define CORE_LIB_INTRINSIC_LIST(V) \ 138 #define CORE_LIB_INTRINSIC_LIST(V) \
139 V(_Smi, ~, Smi_bitNegate, Smi, 0x63bfee11) \ 139 V(_Smi, ~, Smi_bitNegate, Smi, 0x63bfee11) \
140 V(_Smi, get:bitLength, Smi_bitLength, Smi, 0x25b2e24c) \ 140 V(_Smi, get:bitLength, Smi_bitLength, Smi, 0x25b2e24c) \
141 V(_Smi, _bitAndFromSmi, Smi_bitAndFromSmi, Smi, 0x0df806ed) \ 141 V(_Smi, _bitAndFromSmi, Smi_bitAndFromSmi, Smi, 0x490a4da1) \
142 V(_Bigint, _lsh, Bigint_lsh, Dynamic, 0x5cd95513) \ 142 V(_Bigint, _lsh, Bigint_lsh, Dynamic, 0x0619eb8a) \
143 V(_Bigint, _rsh, Bigint_rsh, Dynamic, 0x2d68d0e1) \ 143 V(_Bigint, _rsh, Bigint_rsh, Dynamic, 0x0e1b80df) \
144 V(_Bigint, _absAdd, Bigint_absAdd, Dynamic, 0x492f4865) \ 144 V(_Bigint, _absAdd, Bigint_absAdd, Dynamic, 0x1a2b6326) \
145 V(_Bigint, _absSub, Bigint_absSub, Dynamic, 0x174a3a34) \ 145 V(_Bigint, _absSub, Bigint_absSub, Dynamic, 0x3bebab4e) \
146 V(_Bigint, _mulAdd, Bigint_mulAdd, Dynamic, 0x24ced3ee) \ 146 V(_Bigint, _mulAdd, Bigint_mulAdd, Dynamic, 0x7d48a0b3) \
147 V(_Bigint, _sqrAdd, Bigint_sqrAdd, Dynamic, 0x60c6b633) \ 147 V(_Bigint, _sqrAdd, Bigint_sqrAdd, Dynamic, 0x638b5f5d) \
148 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, Dynamic, 0x2f867482) \ 148 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, Dynamic, 0x467dee78) \
149 V(_Montgomery, _mulMod, Montgomery_mulMod, Dynamic, 0x741bed13) \ 149 V(_Montgomery, _mulMod, Montgomery_mulMod, Dynamic, 0x36065c30) \
150 V(_Double, >, Double_greaterThan, Bool, 0x569b0a81) \ 150 V(_Double, >, Double_greaterThan, Bool, 0x452cd763) \
151 V(_Double, >=, Double_greaterEqualThan, Bool, 0x6c317340) \ 151 V(_Double, >=, Double_greaterEqualThan, Bool, 0x6c317340) \
152 V(_Double, <, Double_lessThan, Bool, 0x26dda4bc) \ 152 V(_Double, <, Double_lessThan, Bool, 0x26dda4bc) \
153 V(_Double, <=, Double_lessEqualThan, Bool, 0x1e869d20) \ 153 V(_Double, <=, Double_lessEqualThan, Bool, 0x1e869d20) \
154 V(_Double, ==, Double_equal, Bool, 0x578a1a51) \ 154 V(_Double, ==, Double_equal, Bool, 0x5244dca3) \
155 V(_Double, +, Double_add, Double, 0x4bac5dd5) \ 155 V(_Double, +, Double_add, Double, 0x49b2a530) \
156 V(_Double, -, Double_sub, Double, 0x62052dbb) \ 156 V(_Double, -, Double_sub, Double, 0x31833626) \
157 V(_Double, *, Double_mul, Double, 0x23d068d8) \ 157 V(_Double, *, Double_mul, Double, 0x21d31f1d) \
158 V(_Double, /, Double_div, Double, 0x48bac1dc) \ 158 V(_Double, /, Double_div, Double, 0x3e584fe8) \
159 V(_Double, get:isNaN, Double_getIsNaN, Bool, 0x0af8ebeb) \ 159 V(_Double, get:isNaN, Double_getIsNaN, Bool, 0x0af8ebeb) \
160 V(_Double, get:isInfinite, Double_getIsInfinite, Bool, 0x0f79e289) \ 160 V(_Double, get:isInfinite, Double_getIsInfinite, Bool, 0x0f79e289) \
161 V(_Double, get:isNegative, Double_getIsNegative, Bool, 0x3a58ff36) \ 161 V(_Double, get:isNegative, Double_getIsNegative, Bool, 0x3a58ff36) \
162 V(_Double, _mulFromInteger, Double_mulFromInteger, Double, 0x330e9a36) \ 162 V(_Double, _mulFromInteger, Double_mulFromInteger, Double, 0x7f565534) \
163 V(_Double, .fromInteger, DoubleFromInteger, Double, 0x7ef45843) \ 163 V(_Double, .fromInteger, DoubleFromInteger, Double, 0x04906d0d) \
164 V(_List, []=, ObjectArraySetIndexed, Dynamic, 0x34d2c72c) \ 164 V(_List, []=, ObjectArraySetIndexed, Dynamic, 0x34d2c72c) \
165 V(_GrowableList, .withData, GrowableArray_Allocate, GrowableObjectArray, \ 165 V(_GrowableList, .withData, GrowableArray_Allocate, GrowableObjectArray, \
166 0x25a786de) \ 166 0x401f3150) \
167 V(_GrowableList, add, GrowableArray_add, Dynamic, 0x0d1358ed) \ 167 V(_GrowableList, add, GrowableArray_add, Dynamic, 0x71f49ac8) \
168 V(_RegExp, _ExecuteMatch, RegExp_ExecuteMatch, Dynamic, 0x6036d7fa) \ 168 V(_RegExp, _ExecuteMatch, RegExp_ExecuteMatch, Dynamic, 0x380184b1) \
169 V(_RegExp, _ExecuteMatchSticky, RegExp_ExecuteMatchSticky, Dynamic, \ 169 V(_RegExp, _ExecuteMatchSticky, RegExp_ExecuteMatchSticky, Dynamic, \
170 0x71c67f7d) \ 170 0x79b8f955) \
171 V(Object, ==, ObjectEquals, Bool, 0x11662ed8) \ 171 V(Object, ==, ObjectEquals, Bool, 0x11662ed8) \
172 V(Object, get:runtimeType, ObjectRuntimeType, Type, 0x00e7c26b) \ 172 V(Object, get:runtimeType, ObjectRuntimeType, Type, 0x00e7c26b) \
173 V(Object, _haveSameRuntimeType, ObjectHaveSameRuntimeType, Bool, 0x72aad7e2) \ 173 V(Object, _haveSameRuntimeType, ObjectHaveSameRuntimeType, Bool, 0x6532255b) \
174 V(_StringBase, get:hashCode, String_getHashCode, Smi, 0x78c2eb88) \ 174 V(_StringBase, get:hashCode, String_getHashCode, Smi, 0x78c2eb88) \
175 V(_StringBase, get:isEmpty, StringBaseIsEmpty, Bool, 0x74c21fca) \ 175 V(_StringBase, get:isEmpty, StringBaseIsEmpty, Bool, 0x74c21fca) \
176 V(_StringBase, _substringMatches, StringBaseSubstringMatches, Bool, \ 176 V(_StringBase, _substringMatches, StringBaseSubstringMatches, Bool, \
177 0x2f851deb) \ 177 0x025b2ece) \
178 V(_StringBase, [], StringBaseCharAt, Dynamic, 0x2cf92c45) \ 178 V(_StringBase, [], StringBaseCharAt, Dynamic, 0x2cf92c45) \
179 V(_OneByteString, get:hashCode, OneByteString_getHashCode, Smi, 0x78c2eb88) \ 179 V(_OneByteString, get:hashCode, OneByteString_getHashCode, Smi, 0x78c2eb88) \
180 V(_OneByteString, _substringUncheckedNative, \ 180 V(_OneByteString, _substringUncheckedNative, \
181 OneByteString_substringUnchecked, OneByteString, 0x638c3722) \ 181 OneByteString_substringUnchecked, OneByteString, 0x3538ad86) \
182 V(_OneByteString, _setAt, OneByteStringSetAt, Dynamic, 0x452533ef) \ 182 V(_OneByteString, _setAt, OneByteStringSetAt, Dynamic, 0x6836784f) \
183 V(_OneByteString, _allocate, OneByteString_allocate, OneByteString, \ 183 V(_OneByteString, _allocate, OneByteString_allocate, OneByteString, \
184 0x3d4fad8a) \ 184 0x4c0a5574) \
185 V(_OneByteString, ==, OneByteString_equality, Bool, 0x3f59b700) \ 185 V(_OneByteString, ==, OneByteString_equality, Bool, 0x3f59b700) \
186 V(_TwoByteString, ==, TwoByteString_equality, Bool, 0x3f59b700) \ 186 V(_TwoByteString, ==, TwoByteString_equality, Bool, 0x3f59b700) \
187 187
188 188
189 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ 189 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \
190 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ 190 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \
191 Dynamic, 0x79bde54b) \ 191 Dynamic, 0x6a10c54a) \
192 V(_IntegerImplementation, +, Integer_add, Dynamic, 0x0e4300c2) \ 192 V(_IntegerImplementation, +, Integer_add, Dynamic, 0x20192008) \
193 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, Dynamic, \ 193 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, Dynamic, \
194 0x3918c1af) \ 194 0x3fa4b1ed) \
195 V(_IntegerImplementation, -, Integer_sub, Dynamic, 0x0ce294c3) \ 195 V(_IntegerImplementation, -, Integer_sub, Dynamic, 0x5b877969) \
196 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ 196 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \
197 Dynamic, 0x791ecebc) \ 197 Dynamic, 0x3216e299) \
198 V(_IntegerImplementation, *, Integer_mul, Dynamic, 0x4d8e01a4) \ 198 V(_IntegerImplementation, *, Integer_mul, Dynamic, 0x142887aa) \
199 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \ 199 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \
200 Dynamic, 0x2e72f552) \ 200 Dynamic, 0x6348b974) \
201 V(_IntegerImplementation, ~/, Integer_truncDivide, Dynamic, 0x3caf6780) \ 201 V(_IntegerImplementation, ~/, Integer_truncDivide, Dynamic, 0x5b740346) \
202 V(_IntegerImplementation, unary-, Integer_negate, Dynamic, 0x59dce57c) \ 202 V(_IntegerImplementation, unary-, Integer_negate, Dynamic, 0x59dce57c) \
203 V(_IntegerImplementation, _bitAndFromInteger, Integer_bitAndFromInteger, \ 203 V(_IntegerImplementation, _bitAndFromInteger, Integer_bitAndFromInteger, \
204 Dynamic, 0x1dfbe172) \ 204 Dynamic, 0x395b1678) \
205 V(_IntegerImplementation, &, Integer_bitAnd, Dynamic, 0x596a453e) \ 205 V(_IntegerImplementation, &, Integer_bitAnd, Dynamic, 0x50aab6e4) \
206 V(_IntegerImplementation, _bitOrFromInteger, Integer_bitOrFromInteger, \ 206 V(_IntegerImplementation, _bitOrFromInteger, Integer_bitOrFromInteger, \
207 Dynamic, 0x3d79aa1c) \ 207 Dynamic, 0x6a36b395) \
208 V(_IntegerImplementation, |, Integer_bitOr, Dynamic, 0x071e153c) \ 208 V(_IntegerImplementation, |, Integer_bitOr, Dynamic, 0x40b9d4c2) \
209 V(_IntegerImplementation, _bitXorFromInteger, Integer_bitXorFromInteger, \ 209 V(_IntegerImplementation, _bitXorFromInteger, Integer_bitXorFromInteger, \
210 Dynamic, 0x4fd73f45) \ 210 Dynamic, 0x72da93f0) \
211 V(_IntegerImplementation, ^, Integer_bitXor, Dynamic, 0x0c8aeb3d) \ 211 V(_IntegerImplementation, ^, Integer_bitXor, Dynamic, 0x16edce03) \
212 V(_IntegerImplementation, _greaterThanFromInteger, \ 212 V(_IntegerImplementation, _greaterThanFromInteger, \
213 Integer_greaterThanFromInt, Bool, 0x2e801bc8) \ 213 Integer_greaterThanFromInt, Bool, 0x4a50ed58) \
214 V(_IntegerImplementation, >, Integer_greaterThan, Bool, 0x28287b8f) \ 214 V(_IntegerImplementation, >, Integer_greaterThan, Bool, 0x6220711f) \
215 V(_IntegerImplementation, ==, Integer_equal, Bool, 0x103da147) \ 215 V(_IntegerImplementation, ==, Integer_equal, Bool, 0x0d4d7f2c) \
216 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, Bool, \ 216 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, Bool, \
217 0x7773d51d) \ 217 0x063be842) \
218 V(_IntegerImplementation, <, Integer_lessThan, Bool, 0x26dda4bc) \ 218 V(_IntegerImplementation, <, Integer_lessThan, Bool, 0x26dda4bc) \
219 V(_IntegerImplementation, <=, Integer_lessEqualThan, Bool, 0x1e869d20) \ 219 V(_IntegerImplementation, <=, Integer_lessEqualThan, Bool, 0x1e869d20) \
220 V(_IntegerImplementation, >=, Integer_greaterEqualThan, Bool, 0x6c317340) \ 220 V(_IntegerImplementation, >=, Integer_greaterEqualThan, Bool, 0x6c317340) \
221 V(_IntegerImplementation, <<, Integer_shl, Dynamic, 0x4334dfc0) \ 221 V(_IntegerImplementation, <<, Integer_shl, Dynamic, 0x5f43ef06) \
222 V(_IntegerImplementation, >>, Integer_sar, Dynamic, 0x4a2583a1) \ 222 V(_IntegerImplementation, >>, Integer_sar, Dynamic, 0x08a241c7) \
223 V(_Double, toInt, DoubleToInteger, Dynamic, 0x26ef344b) 223 V(_Double, toInt, DoubleToInteger, Dynamic, 0x26ef344b)
224 224
225 225
226 #define MATH_LIB_INTRINSIC_LIST(V) \ 226 #define MATH_LIB_INTRINSIC_LIST(V) \
227 V(::, sqrt, MathSqrt, Double, 0x1afb83d4) \ 227 V(::, sqrt, MathSqrt, Double, 0x0a683033) \
228 V(_Random, _nextState, Random_nextState, Dynamic, 0x1e4b0103) \ 228 V(_Random, _nextState, Random_nextState, Dynamic, 0x24d91397) \
229 229
230 #define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ 230 #define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \
231 V(::, sin, MathSin, Double, 0x0213abe6) \ 231 V(::, sin, MathSin, Double, 0x595a044c) \
232 V(::, cos, MathCos, Double, 0x79a7611c) \ 232 V(::, cos, MathCos, Double, 0x337a20be) \
233 V(::, tan, MathTan, Double, 0x4e2e20db) \ 233 V(::, tan, MathTan, Double, 0x29aba1ea) \
234 V(::, asin, MathAsin, Double, 0x661ff68b) \ 234 V(::, asin, MathAsin, Double, 0x48ec330d) \
235 V(::, acos, MathAcos, Double, 0x44e71d5f) \ 235 V(::, acos, MathAcos, Double, 0x22ef2552) \
236 V(::, atan, MathAtan, Double, 0x4436a657) \ 236 V(::, atan, MathAtan, Double, 0x38473515) \
237 V(::, atan2, MathAtan2, Double, 0x60a40743) \ 237 V(::, atan2, MathAtan2, Double, 0x39f1fa41) \
238 238
239 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 239 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \
240 V(Int8List, ., TypedData_Int8Array_factory, TypedDataInt8Array, 0x2e7749e3) \ 240 V(Int8List, ., TypedData_Int8Array_factory, TypedDataInt8Array, 0x2e7749e3) \
241 V(Uint8List, ., TypedData_Uint8Array_factory, TypedDataUint8Array, \ 241 V(Uint8List, ., TypedData_Uint8Array_factory, TypedDataUint8Array, \
242 0x6ab75439) \ 242 0x6ab75439) \
243 V(Uint8ClampedList, ., TypedData_Uint8ClampedArray_factory, \ 243 V(Uint8ClampedList, ., TypedData_Uint8ClampedArray_factory, \
244 TypedDataUint8ClampedArray, 0x183129d7) \ 244 TypedDataUint8ClampedArray, 0x183129d7) \
245 V(Int16List, ., TypedData_Int16Array_factory, TypedDataInt16Array, \ 245 V(Int16List, ., TypedData_Int16Array_factory, TypedDataInt16Array, \
246 0x14b563ea) \ 246 0x14b563ea) \
247 V(Uint16List, ., TypedData_Uint16Array_factory, TypedDataUint16Array, \ 247 V(Uint16List, ., TypedData_Uint16Array_factory, TypedDataUint16Array, \
(...skipping 11 matching lines...) Expand all
259 V(Float64List, ., TypedData_Float64Array_factory, \ 259 V(Float64List, ., TypedData_Float64Array_factory, \
260 TypedDataFloat64Array, 0x501be4f1) \ 260 TypedDataFloat64Array, 0x501be4f1) \
261 V(Float32x4List, ., TypedData_Float32x4Array_factory, \ 261 V(Float32x4List, ., TypedData_Float32x4Array_factory, \
262 TypedDataFloat32x4Array, 0x7a7dd718) \ 262 TypedDataFloat32x4Array, 0x7a7dd718) \
263 V(Int32x4List, ., TypedData_Int32x4Array_factory, \ 263 V(Int32x4List, ., TypedData_Int32x4Array_factory, \
264 TypedDataInt32x4Array, 0x1e0dca48) \ 264 TypedDataInt32x4Array, 0x1e0dca48) \
265 V(Float64x2List, ., TypedData_Float64x2Array_factory, \ 265 V(Float64x2List, ., TypedData_Float64x2Array_factory, \
266 TypedDataFloat64x2Array, 0x18cbf4d9) \ 266 TypedDataFloat64x2Array, 0x18cbf4d9) \
267 267
268 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ 268 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
269 V(Int8List, [], Int8ArrayGetIndexed, Smi, 0x069af8b3) \ 269 V(Int8List, [], Int8ArrayGetIndexed, Smi, 0x5f9a4430) \
270 V(Int8List, []=, Int8ArraySetIndexed, Dynamic, 0x33994cd7) \ 270 V(Int8List, []=, Int8ArraySetIndexed, Dynamic, 0x5f880110) \
271 V(Uint8List, [], Uint8ArrayGetIndexed, Smi, 0x027603ed) \ 271 V(Uint8List, [], Uint8ArrayGetIndexed, Smi, 0x1eb150d8) \
272 V(Uint8List, []=, Uint8ArraySetIndexed, Dynamic, 0x060d5256) \ 272 V(Uint8List, []=, Uint8ArraySetIndexed, Dynamic, 0x4cf76981) \
273 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, Smi, 0x027603ed) \ 273 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, Smi, 0x1eb150d8) \
274 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, Dynamic, \ 274 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, Dynamic, \
275 0x060d5256) \ 275 0x4cf76981) \
276 V(Uint8ClampedList, [], Uint8ClampedArrayGetIndexed, Smi, 0x027603ed) \ 276 V(Uint8ClampedList, [], Uint8ClampedArrayGetIndexed, Smi, 0x1eb150d8) \
277 V(Uint8ClampedList, []=, Uint8ClampedArraySetIndexed, Dynamic, 0x28f5f058) \ 277 V(Uint8ClampedList, []=, Uint8ClampedArraySetIndexed, Dynamic, 0x2224afe1) \
278 V(_ExternalUint8ClampedArray, [], ExternalUint8ClampedArrayGetIndexed, \ 278 V(_ExternalUint8ClampedArray, [], ExternalUint8ClampedArrayGetIndexed, \
279 Smi, 0x027603ed) \ 279 Smi, 0x1eb150d8) \
280 V(_ExternalUint8ClampedArray, []=, ExternalUint8ClampedArraySetIndexed, \ 280 V(_ExternalUint8ClampedArray, []=, ExternalUint8ClampedArraySetIndexed, \
281 Dynamic, 0x28f5f058) \ 281 Dynamic, 0x2224afe1) \
282 V(Int16List, [], Int16ArrayGetIndexed, Smi, 0x173cd6a1) \ 282 V(Int16List, [], Int16ArrayGetIndexed, Smi, 0x74ea134c) \
283 V(Int16List, []=, Int16ArraySetIndexed, Dynamic, 0x32f84e3c) \ 283 V(Int16List, []=, Int16ArraySetIndexed, Dynamic, 0x48e25661) \
284 V(Uint16List, [], Uint16ArrayGetIndexed, Smi, 0x3ececa2f) \ 284 V(Uint16List, [], Uint16ArrayGetIndexed, Smi, 0x756d9a97) \
285 V(Uint16List, []=, Uint16ArraySetIndexed, Dynamic, 0x5c3a0bb9) \ 285 V(Uint16List, []=, Uint16ArraySetIndexed, Dynamic, 0x698f9d4f) \
286 V(Int32List, [], Int32ArrayGetIndexed, Dynamic, 0x262eef09) \ 286 V(Int32List, [], Int32ArrayGetIndexed, Dynamic, 0x61e49de1) \
287 V(Int32List, []=, Int32ArraySetIndexed, Dynamic, 0x1b05b471) \ 287 V(Int32List, []=, Int32ArraySetIndexed, Dynamic, 0x55736c63) \
288 V(Uint32List, [], Uint32ArrayGetIndexed, Dynamic, 0x6040f7fb) \ 288 V(Uint32List, [], Uint32ArrayGetIndexed, Dynamic, 0x2eaa22d2) \
289 V(Uint32List, []=, Uint32ArraySetIndexed, Dynamic, 0x3a4e1119) \ 289 V(Uint32List, []=, Uint32ArraySetIndexed, Dynamic, 0x3c88eeb9) \
290 V(Float64List, [], Float64ArrayGetIndexed, Double, 0x7a27098d) \ 290 V(Float64List, [], Float64ArrayGetIndexed, Double, 0x20950e8a) \
291 V(Float64List, []=, Float64ArraySetIndexed, Dynamic, 0x139b2465) \ 291 V(Float64List, []=, Float64ArraySetIndexed, Dynamic, 0x556a0727) \
292 V(Float32List, [], Float32ArrayGetIndexed, Double, 0x5686528f) \ 292 V(Float32List, [], Float32ArrayGetIndexed, Double, 0x7101fa23) \
293 V(Float32List, []=, Float32ArraySetIndexed, Dynamic, 0x1b0d90df) \ 293 V(Float32List, []=, Float32ArraySetIndexed, Dynamic, 0x5e32c1eb) \
294 V(Float32x4List, [], Float32x4ArrayGetIndexed, Float32x4, 0x01c7017b) \ 294 V(Float32x4List, [], Float32x4ArrayGetIndexed, Float32x4, 0x28b0a7ef) \
295 V(Float32x4List, []=, Float32x4ArraySetIndexed, Dynamic, 0x56e843aa) \ 295 V(Float32x4List, []=, Float32x4ArraySetIndexed, Dynamic, 0x4babf032) \
296 V(Int32x4List, [], Int32x4ArrayGetIndexed, Int32x4, 0x08353f8d) \ 296 V(Int32x4List, [], Int32x4ArrayGetIndexed, Int32x4, 0x619c79a0) \
297 V(Int32x4List, []=, Int32x4ArraySetIndexed, Dynamic, 0x1d9a47a5) \ 297 V(Int32x4List, []=, Int32x4ArraySetIndexed, Dynamic, 0x021bd16b) \
298 V(Float64x2List, [], Float64x2ArrayGetIndexed, Float64x2, 0x669b1498) \ 298 V(Float64x2List, [], Float64x2ArrayGetIndexed, Float64x2, 0x7a6dd5e5) \
299 V(Float64x2List, []=, Float64x2ArraySetIndexed, Dynamic, 0x76da6ffe) \ 299 V(Float64x2List, []=, Float64x2ArraySetIndexed, Dynamic, 0x3c59fecb) \
300 V(_TypedList, get:length, TypedDataLength, Smi, 0x2090dc1a) \ 300 V(_TypedList, get:length, TypedDataLength, Smi, 0x2090dc1a) \
301 V(Float32x4, get:x, Float32x4ShuffleX, Double, 0x63d0c13f) \ 301 V(Float32x4, get:x, Float32x4ShuffleX, Double, 0x63d0c13f) \
302 V(Float32x4, get:y, Float32x4ShuffleY, Double, 0x20343b1b) \ 302 V(Float32x4, get:y, Float32x4ShuffleY, Double, 0x20343b1b) \
303 V(Float32x4, get:z, Float32x4ShuffleZ, Double, 0x13181dba) \ 303 V(Float32x4, get:z, Float32x4ShuffleZ, Double, 0x13181dba) \
304 V(Float32x4, get:w, Float32x4ShuffleW, Double, 0x69895020) \ 304 V(Float32x4, get:w, Float32x4ShuffleW, Double, 0x69895020) \
305 V(Float32x4, _mul, Float32x4Mul, Float32x4, 0x028d3146) \ 305 V(Float32x4, _mul, Float32x4Mul, Float32x4, 0x6183ae12) \
306 V(Float32x4, _sub, Float32x4Sub, Float32x4, 0x062f78f7) \ 306 V(Float32x4, _sub, Float32x4Sub, Float32x4, 0x22a8d3ea) \
307 V(Float32x4, _add, Float32x4Add, Float32x4, 0x509f9006) \ 307 V(Float32x4, _add, Float32x4Add, Float32x4, 0x613c30f4) \
308 308
309 #define GRAPH_CORE_INTRINSICS_LIST(V) \ 309 #define GRAPH_CORE_INTRINSICS_LIST(V) \
310 V(_List, get:length, ObjectArrayLength, Smi, 0x25943ad2) \ 310 V(_List, get:length, ObjectArrayLength, Smi, 0x25943ad2) \
311 V(_List, [], ObjectArrayGetIndexed, Dynamic, 0x157b4670) \ 311 V(_List, [], ObjectArrayGetIndexed, Dynamic, 0x157b4670) \
312 V(_ImmutableList, get:length, ImmutableArrayLength, Smi, 0x25943ad2) \ 312 V(_ImmutableList, get:length, ImmutableArrayLength, Smi, 0x25943ad2) \
313 V(_ImmutableList, [], ImmutableArrayGetIndexed, Dynamic, 0x157b4670) \ 313 V(_ImmutableList, [], ImmutableArrayGetIndexed, Dynamic, 0x157b4670) \
314 V(_GrowableList, get:length, GrowableArrayLength, Smi, 0x18dc9df6) \ 314 V(_GrowableList, get:length, GrowableArrayLength, Smi, 0x18dc9df6) \
315 V(_GrowableList, get:_capacity, GrowableArrayCapacity, Smi, 0x02734d82) \ 315 V(_GrowableList, get:_capacity, GrowableArrayCapacity, Smi, 0x2e03d5a2) \
316 V(_GrowableList, _setData, GrowableArraySetData, Dynamic, 0x0c854013) \ 316 V(_GrowableList, _setData, GrowableArraySetData, Dynamic, 0x6dfc498a) \
317 V(_GrowableList, _setLength, GrowableArraySetLength, Dynamic, 0x1401a7d6) \ 317 V(_GrowableList, _setLength, GrowableArraySetLength, Dynamic, 0x257bfc1c) \
318 V(_GrowableList, [], GrowableArrayGetIndexed, Dynamic, 0x74ad8832) \ 318 V(_GrowableList, [], GrowableArrayGetIndexed, Dynamic, 0x74ad8832) \
319 V(_GrowableList, []=, GrowableArraySetIndexed, Dynamic, 0x0d6cfe96) \ 319 V(_GrowableList, []=, GrowableArraySetIndexed, Dynamic, 0x0d6cfe96) \
320 V(_StringBase, get:length, StringBaseLength, Smi, 0x2a2c1b13) \ 320 V(_StringBase, get:length, StringBaseLength, Smi, 0x2a2c1b13) \
321 V(_OneByteString, codeUnitAt, OneByteStringCodeUnitAt, Smi, 0x55a0a1f3) \ 321 V(_OneByteString, codeUnitAt, OneByteStringCodeUnitAt, Smi, 0x55a0a1f3) \
322 V(_TwoByteString, codeUnitAt, TwoByteStringCodeUnitAt, Smi, 0x55a0a1f3) \ 322 V(_TwoByteString, codeUnitAt, TwoByteStringCodeUnitAt, Smi, 0x55a0a1f3) \
323 V(_ExternalOneByteString, codeUnitAt, ExternalOneByteStringCodeUnitAt, \ 323 V(_ExternalOneByteString, codeUnitAt, ExternalOneByteStringCodeUnitAt, \
324 Smi, 0x55a0a1f3) \ 324 Smi, 0x55a0a1f3) \
325 V(_ExternalTwoByteString, codeUnitAt, ExternalTwoByteStringCodeUnitAt, \ 325 V(_ExternalTwoByteString, codeUnitAt, ExternalTwoByteStringCodeUnitAt, \
326 Smi, 0x55a0a1f3) \ 326 Smi, 0x55a0a1f3) \
327 V(_Double, unary-, DoubleFlipSignBit, Double, 0x6a4ab611) \ 327 V(_Double, unary-, DoubleFlipSignBit, Double, 0x6a4ab611) \
328 V(_Double, truncateToDouble, DoubleTruncate, Double, 0x2f27e5d3) \ 328 V(_Double, truncateToDouble, DoubleTruncate, Double, 0x2f27e5d3) \
329 V(_Double, roundToDouble, DoubleRound, Double, 0x2f89c512) \ 329 V(_Double, roundToDouble, DoubleRound, Double, 0x2f89c512) \
330 V(_Double, floorToDouble, DoubleFloor, Double, 0x6aa87a5f) \ 330 V(_Double, floorToDouble, DoubleFloor, Double, 0x6aa87a5f) \
331 V(_Double, ceilToDouble, DoubleCeil, Double, 0x1b045e9e) \ 331 V(_Double, ceilToDouble, DoubleCeil, Double, 0x1b045e9e) \
332 V(_Double, _modulo, DoubleMod, Double, 0x2e41c4fc) 332 V(_Double, _modulo, DoubleMod, Double, 0x5b8ceed7)
333 333
334 334
335 #define GRAPH_INTRINSICS_LIST(V) \ 335 #define GRAPH_INTRINSICS_LIST(V) \
336 GRAPH_CORE_INTRINSICS_LIST(V) \ 336 GRAPH_CORE_INTRINSICS_LIST(V) \
337 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ 337 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
338 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ 338 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \
339 339
340 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ 340 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \
341 V(_UserTag, makeCurrent, UserTag_makeCurrent, Dynamic, 0x0b3066fd) \ 341 V(_UserTag, makeCurrent, UserTag_makeCurrent, Dynamic, 0x0b3066fd) \
342 V(::, _getDefaultTag, UserTag_defaultTag, Dynamic, 0x14ddc3b7) \ 342 V(::, _getDefaultTag, UserTag_defaultTag, Dynamic, 0x69f3f1ad) \
343 V(::, _getCurrentTag, Profiler_getCurrentTag, Dynamic, 0x486ee02d) \ 343 V(::, _getCurrentTag, Profiler_getCurrentTag, Dynamic, 0x05fa99d2) \
344 V(::, _isDartStreamEnabled, Timeline_isDartStreamEnabled, Dynamic, \ 344 V(::, _isDartStreamEnabled, Timeline_isDartStreamEnabled, Dynamic, \
345 0x1667ce76) \ 345 0x72f13f7a) \
346 346
347 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ 347 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
348 CORE_LIB_INTRINSIC_LIST(V) \ 348 CORE_LIB_INTRINSIC_LIST(V) \
349 DEVELOPER_LIB_INTRINSIC_LIST(V) \ 349 DEVELOPER_LIB_INTRINSIC_LIST(V) \
350 MATH_LIB_INTRINSIC_LIST(V) \ 350 MATH_LIB_INTRINSIC_LIST(V) \
351 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 351 TYPED_DATA_LIB_INTRINSIC_LIST(V) \
352 352
353 #define ALL_INTRINSICS_LIST(V) \ 353 #define ALL_INTRINSICS_LIST(V) \
354 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ 354 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
355 CORE_INTEGER_LIB_INTRINSIC_LIST(V) 355 CORE_INTEGER_LIB_INTRINSIC_LIST(V)
356 356
357 #define RECOGNIZED_LIST(V) \ 357 #define RECOGNIZED_LIST(V) \
358 OTHER_RECOGNIZED_LIST(V) \ 358 OTHER_RECOGNIZED_LIST(V) \
359 ALL_INTRINSICS_LIST(V) \ 359 ALL_INTRINSICS_LIST(V) \
360 GRAPH_INTRINSICS_LIST(V) 360 GRAPH_INTRINSICS_LIST(V)
361 361
362 // A list of core function that should always be inlined. 362 // A list of core function that should always be inlined.
363 #define INLINE_WHITE_LIST(V) \ 363 #define INLINE_WHITE_LIST(V) \
364 V(Object, ==, ObjectEquals, 0x11662ed8) \ 364 V(Object, ==, ObjectEquals, 0x11662ed8) \
365 V(_List, get:length, ObjectArrayLength, 0x25943ad2) \ 365 V(_List, get:length, ObjectArrayLength, 0x25943ad2) \
366 V(_ImmutableList, get:length, ImmutableArrayLength, 0x25943ad2) \ 366 V(_ImmutableList, get:length, ImmutableArrayLength, 0x25943ad2) \
367 V(_TypedList, get:length, TypedDataLength, 0x2090dc1a) \ 367 V(_TypedList, get:length, TypedDataLength, 0x2090dc1a) \
368 V(_GrowableList, get:length, GrowableArrayLength, 0x18dc9df6) \ 368 V(_GrowableList, get:length, GrowableArrayLength, 0x18dc9df6) \
369 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 0x02734d82) \ 369 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 0x2e03d5a2) \
370 V(_GrowableList, add, GrowableListAdd, 0x0d1358ed) \ 370 V(_GrowableList, add, GrowableListAdd, 0x71f49ac8) \
371 V(_GrowableList, removeLast, GrowableListRemoveLast, 0x7add0363) \ 371 V(_GrowableList, removeLast, GrowableListRemoveLast, 0x7add0363) \
372 V(_StringBase, get:length, StringBaseLength, 0x2a2c1b13) \ 372 V(_StringBase, get:length, StringBaseLength, 0x2a2c1b13) \
373 V(ListIterator, moveNext, ListIteratorMoveNext, 0x3f892e71) \ 373 V(ListIterator, moveNext, ListIteratorMoveNext, 0x4f8ff9cc) \
374 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 0x5681c902) \ 374 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 0x50e0604b) \
375 V(_GrowableList, get:iterator, GrowableArrayIterator, 0x6db11a73) \ 375 V(_GrowableList, get:iterator, GrowableArrayIterator, 0x6db11a73) \
376 V(_GrowableList, forEach, GrowableArrayForEach, 0x250036fe) \ 376 V(_GrowableList, forEach, GrowableArrayForEach, 0x250036fe) \
377 V(_List, ., ObjectArrayAllocate, 0x63078b15) \ 377 V(_List, ., ObjectArrayAllocate, 0x375519ad) \
378 V(ListMixin, get:isEmpty, ListMixinIsEmpty, 0x787d9bc6) \ 378 V(ListMixin, get:isEmpty, ListMixinIsEmpty, 0x787d9bc6) \
379 V(_List, get:iterator, ObjectArrayIterator, 0x119cf41a) \ 379 V(_List, get:iterator, ObjectArrayIterator, 0x7e634791) \
380 V(_List, forEach, ObjectArrayForEach, 0x0abce191) \ 380 V(_List, forEach, ObjectArrayForEach, 0x0abce191) \
381 V(_List, _slice, ObjectArraySlice, 0x3219e715) \ 381 V(_List, _slice, ObjectArraySlice, 0x01b71c13) \
382 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 0x119cf41a) \ 382 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 0x7e634791) \
383 V(_ImmutableList, forEach, ImmutableArrayForEach, 0x0abce191) \ 383 V(_ImmutableList, forEach, ImmutableArrayForEach, 0x0abce191) \
384 V(_Uint8ArrayView, [], Uint8ArrayViewGetIndexed, 0x4fc6b3d3) \ 384 V(_Uint8ArrayView, [], Uint8ArrayViewGetIndexed, 0x760ba8c2) \
385 V(_Uint8ArrayView, []=, Uint8ArrayViewSetIndexed, 0x2032fdf0) \ 385 V(_Uint8ArrayView, []=, Uint8ArrayViewSetIndexed, 0x44fc1997) \
386 V(_Int8ArrayView, [], Int8ArrayViewGetIndexed, 0x12036952) \ 386 V(_Int8ArrayView, [], Int8ArrayViewGetIndexed, 0x7735aad3) \
387 V(_Int8ArrayView, []=, Int8ArrayViewSetIndexed, 0x6d881658) \ 387 V(_Int8ArrayView, []=, Int8ArrayViewSetIndexed, 0x4237db0d) \
388 V(_ByteDataView, setInt8, ByteDataViewSetInt8, 0x275cbdca) \ 388 V(_ByteDataView, setInt8, ByteDataViewSetInt8, 0x66702980) \
389 V(_ByteDataView, setUint8, ByteDataViewSetUint8, 0x62774e77) \ 389 V(_ByteDataView, setUint8, ByteDataViewSetUint8, 0x7c729d61) \
390 V(_ByteDataView, setInt16, ByteDataViewSetInt16, 0x7a43c6c2) \ 390 V(_ByteDataView, setInt16, ByteDataViewSetInt16, 0x203478e8) \
391 V(_ByteDataView, setUint16, ByteDataViewSetUint16, 0x64dd988f) \ 391 V(_ByteDataView, setUint16, ByteDataViewSetUint16, 0x16c35617) \
392 V(_ByteDataView, setInt32, ByteDataViewSetInt32, 0x3363264a) \ 392 V(_ByteDataView, setInt32, ByteDataViewSetInt32, 0x200c1aae) \
393 V(_ByteDataView, setUint32, ByteDataViewSetUint32, 0x158f9899) \ 393 V(_ByteDataView, setUint32, ByteDataViewSetUint32, 0x281c378e) \
394 V(_ByteDataView, setInt64, ByteDataViewSetInt64, 0x480f73a5) \ 394 V(_ByteDataView, setInt64, ByteDataViewSetInt64, 0x10595a04) \
395 V(_ByteDataView, setUint64, ByteDataViewSetUint64, 0x5c23db8c) \ 395 V(_ByteDataView, setUint64, ByteDataViewSetUint64, 0x364fcc46) \
396 V(_ByteDataView, setFloat32, ByteDataViewSetFloat32, 0x4f76c49a) \ 396 V(_ByteDataView, setFloat32, ByteDataViewSetFloat32, 0x30628609) \
397 V(_ByteDataView, setFloat64, ByteDataViewSetFloat64, 0x5e1ddd4f) \ 397 V(_ByteDataView, setFloat64, ByteDataViewSetFloat64, 0x331b1f4b) \
398 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 0x01bac87d) \ 398 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 0x62761d8f) \
399 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 0x129dab34) \ 399 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 0x579a5e34) \
400 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 0x60282377) \ 400 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 0x73e0175b) \
401 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 0x10edcd89) \ 401 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 0x3691576a) \
402 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 0x79630f81) \ 402 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 0x44d407a8) \
403 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 0x220d3da8) \ 403 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 0x160c7450) \
404 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 0x757dd5c8) \ 404 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 0x02a2ffca) \
405 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 0x2fab992e) \ 405 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 0x4dd4eedd) \
406 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 0x387e9fc6) \ 406 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 0x474b4719) \
407 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 0x5396432d) \ 407 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 0x47207cf7) \
408 V(::, exp, MathExp, 0x5b894d7b) \ 408 V(::, exp, MathExp, 0x4ccba23a) \
409 V(::, log, MathLog, 0x2e25132c) \ 409 V(::, log, MathLog, 0x3908fd3c) \
410 V(::, max, MathMax, 0x54121d6a) \ 410 V(::, max, MathMax, 0x54121d6a) \
411 V(::, min, MathMin, 0x4276561c) \ 411 V(::, min, MathMin, 0x4276561c) \
412 V(::, pow, MathPow, 0x438e3089) \ 412 V(::, pow, MathPow, 0x443379a8) \
413 V(::, _classRangeCheck, ClassRangeCheck, 0x6279a7b3) \ 413 V(::, _classRangeCheck, ClassRangeCheck, 0x025e8d82) \
414 V(::, _classRangeCheckNegative, ClassRangeCheckNegated, 0x4799dac1) \ 414 V(::, _classRangeCheckNegative, ClassRangeCheckNegated, 0x32451d73) \
415 V(Lists, copy, ListsCopy, 0x21a194fa) \ 415 V(Lists, copy, ListsCopy, 0x21a194fa) \
416 V(_Bigint, get:_neg, Bigint_getNeg, 0x7bf17a57) \ 416 V(_Bigint, get:_neg, Bigint_getNeg, 0x355fa565) \
417 V(_Bigint, get:_used, Bigint_getUsed, 0x55041013) \ 417 V(_Bigint, get:_used, Bigint_getUsed, 0x33b9dcd2) \
418 V(_Bigint, get:_digits, Bigint_getDigits, 0x46a6c1b3) \ 418 V(_Bigint, get:_digits, Bigint_getDigits, 0x68de883a) \
419 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 0x7d6bb76b) \ 419 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 0x02468899) \
420 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 0x4beb13f2) \ 420 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 0x577d9e20) \
421 V(_HashVMBase, get:_data, LinkedHashMap_getData, 0x4bf5ccb3) \ 421 V(_HashVMBase, get:_data, LinkedHashMap_getData, 0x2d7987ee) \
422 V(_HashVMBase, set:_data, LinkedHashMap_setData, 0x6007556d) \ 422 V(_HashVMBase, set:_data, LinkedHashMap_setData, 0x1674fb28) \
423 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 0x15e70845) \ 423 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 0x0884b12f) \
424 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 0x3e8c6edc) \ 424 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 0x66f792c6) \
425 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 0x35c5ac00) \ 425 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 0x32f2c87d) \
426 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 0x49adf69e) \ 426 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 0x79ce8c9b) \
427 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 0x306e6a79) \ 427 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 0x55839904) \
428 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 0x3fe95fc2) \ 428 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 0x625e50cd) \
429 429
430 // A list of core function that should never be inlined. 430 // A list of core function that should never be inlined.
431 #define INLINE_BLACK_LIST(V) \ 431 #define INLINE_BLACK_LIST(V) \
432 V(::, asin, MathAsin, 0x661ff68b) \ 432 V(::, asin, MathAsin, 0x48ec330d) \
433 V(::, acos, MathAcos, 0x44e71d5f) \ 433 V(::, acos, MathAcos, 0x22ef2552) \
434 V(::, atan, MathAtan, 0x4436a657) \ 434 V(::, atan, MathAtan, 0x38473515) \
435 V(::, atan2, MathAtan2, 0x60a40743) \ 435 V(::, atan2, MathAtan2, 0x39f1fa41) \
436 V(::, cos, MathCos, 0x79a7611c) \ 436 V(::, cos, MathCos, 0x337a20be) \
437 V(::, sin, MathSin, 0x0213abe6) \ 437 V(::, sin, MathSin, 0x595a044c) \
438 V(::, sqrt, MathSqrt, 0x1afb83d4) \ 438 V(::, sqrt, MathSqrt, 0x0a683033) \
439 V(::, tan, MathTan, 0x4e2e20db) \ 439 V(::, tan, MathTan, 0x29aba1ea) \
440 V(_Bigint, _lsh, Bigint_lsh, 0x5cd95513) \ 440 V(_Bigint, _lsh, Bigint_lsh, 0x0619eb8a) \
441 V(_Bigint, _rsh, Bigint_rsh, 0x2d68d0e1) \ 441 V(_Bigint, _rsh, Bigint_rsh, 0x0e1b80df) \
442 V(_Bigint, _absAdd, Bigint_absAdd, 0x492f4865) \ 442 V(_Bigint, _absAdd, Bigint_absAdd, 0x1a2b6326) \
443 V(_Bigint, _absSub, Bigint_absSub, 0x174a3a34) \ 443 V(_Bigint, _absSub, Bigint_absSub, 0x3bebab4e) \
444 V(_Bigint, _mulAdd, Bigint_mulAdd, 0x24ced3ee) \ 444 V(_Bigint, _mulAdd, Bigint_mulAdd, 0x7d48a0b3) \
445 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 0x60c6b633) \ 445 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 0x638b5f5d) \
446 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 0x2f867482) \ 446 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 0x467dee78) \
447 V(_Montgomery, _mulMod, Montgomery_mulMod, 0x741bed13) \ 447 V(_Montgomery, _mulMod, Montgomery_mulMod, 0x36065c30) \
448 V(_Double, >, Double_greaterThan, 0x569b0a81) \ 448 V(_Double, >, Double_greaterThan, 0x452cd763) \
449 V(_Double, >=, Double_greaterEqualThan, 0x6c317340) \ 449 V(_Double, >=, Double_greaterEqualThan, 0x6c317340) \
450 V(_Double, <, Double_lessThan, 0x26dda4bc) \ 450 V(_Double, <, Double_lessThan, 0x26dda4bc) \
451 V(_Double, <=, Double_lessEqualThan, 0x1e869d20) \ 451 V(_Double, <=, Double_lessEqualThan, 0x1e869d20) \
452 V(_Double, ==, Double_equal, 0x578a1a51) \ 452 V(_Double, ==, Double_equal, 0x5244dca3) \
453 V(_Double, +, Double_add, 0x4bac5dd5) \ 453 V(_Double, +, Double_add, 0x49b2a530) \
454 V(_Double, -, Double_sub, 0x62052dbb) \ 454 V(_Double, -, Double_sub, 0x31833626) \
455 V(_Double, *, Double_mul, 0x23d068d8) \ 455 V(_Double, *, Double_mul, 0x21d31f1d) \
456 V(_Double, /, Double_div, 0x48bac1dc) \ 456 V(_Double, /, Double_div, 0x3e584fe8) \
457 V(_IntegerImplementation, +, Integer_add, 0x0e4300c2) \ 457 V(_IntegerImplementation, +, Integer_add, 0x20192008) \
458 V(_IntegerImplementation, -, Integer_sub, 0x0ce294c3) \ 458 V(_IntegerImplementation, -, Integer_sub, 0x5b877969) \
459 V(_IntegerImplementation, *, Integer_mul, 0x4d8e01a4) \ 459 V(_IntegerImplementation, *, Integer_mul, 0x142887aa) \
460 V(_IntegerImplementation, ~/, Integer_truncDivide, 0x3caf6780) \ 460 V(_IntegerImplementation, ~/, Integer_truncDivide, 0x5b740346) \
461 V(_IntegerImplementation, unary-, Integer_negate, 0x59dce57c) \ 461 V(_IntegerImplementation, unary-, Integer_negate, 0x59dce57c) \
462 V(_IntegerImplementation, &, Integer_bitAnd, 0x596a453e) \ 462 V(_IntegerImplementation, &, Integer_bitAnd, 0x50aab6e4) \
463 V(_IntegerImplementation, |, Integer_bitOr, 0x071e153c) \ 463 V(_IntegerImplementation, |, Integer_bitOr, 0x40b9d4c2) \
464 V(_IntegerImplementation, ^, Integer_bitXor, 0x0c8aeb3d) \ 464 V(_IntegerImplementation, ^, Integer_bitXor, 0x16edce03) \
465 V(_IntegerImplementation, >, Integer_greaterThan, 0x28287b8f) \ 465 V(_IntegerImplementation, >, Integer_greaterThan, 0x6220711f) \
466 V(_IntegerImplementation, ==, Integer_equal, 0x103da147) \ 466 V(_IntegerImplementation, ==, Integer_equal, 0x0d4d7f2c) \
467 V(_IntegerImplementation, <, Integer_lessThan, 0x26dda4bc) \ 467 V(_IntegerImplementation, <, Integer_lessThan, 0x26dda4bc) \
468 V(_IntegerImplementation, <=, Integer_lessEqualThan, 0x1e869d20) \ 468 V(_IntegerImplementation, <=, Integer_lessEqualThan, 0x1e869d20) \
469 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 0x6c317340) \ 469 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 0x6c317340) \
470 V(_IntegerImplementation, <<, Integer_shl, 0x4334dfc0) \ 470 V(_IntegerImplementation, <<, Integer_shl, 0x5f43ef06) \
471 V(_IntegerImplementation, >>, Integer_sar, 0x4a2583a1) \ 471 V(_IntegerImplementation, >>, Integer_sar, 0x08a241c7) \
472 472
473 // A list of core functions that internally dispatch based on received id. 473 // A list of core functions that internally dispatch based on received id.
474 #define POLYMORPHIC_TARGET_LIST(V) \ 474 #define POLYMORPHIC_TARGET_LIST(V) \
475 V(_StringBase, [], StringBaseCharAt, 0x2cf92c45) \ 475 V(_StringBase, [], StringBaseCharAt, 0x2cf92c45) \
476 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 0x59e7291d) \ 476 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 0x7041895a) \
477 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 0x38d3e5bf) \ 477 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 0x336fa3ea) \
478 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 0x19dde22c) \ 478 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 0x231bbe2e) \
479 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 0x4f3dbe58) \ 479 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 0x0371785f) \
480 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 0x082db131) \ 480 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 0x65ab3a20) \
481 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 0x1dcbfb98) \ 481 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 0x0cb0fcf6) \
482 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 0x63b56e15) \ 482 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 0x6674ea6f) \
483 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 0x399dacf8) \ 483 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 0x236c6e7a) \
484 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 0x4761a5be) \ 484 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 0x5c367ffb) \
485 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 0x3053e92c) \ 485 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 0x772d1c0f) \
486 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 0x4e82d1e9) \ 486 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 0x68f17de8) \
487 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 0x4f3587fc) \ 487 V(_TypedList, _setUint8, ByteArrayBaseSetInt8, 0x6bb8b747) \
488 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 0x6cef30ee) \ 488 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 0x75b8d278) \
489 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 0x64f938ac) \ 489 V(_TypedList, _setUint16, ByteArrayBaseSetInt16, 0x6e54f794) \
490 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 0x3693c029) \ 490 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 0x54123a05) \
491 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 0x74bbf260) \ 491 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 0x4a3fea0b) \
492 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 0x6e72f2a4) \ 492 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 0x5a11a2f9) \
493 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 0x4765edda) \ 493 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 0x0edea58b) \
494 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 0x7cca4533) \ 494 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 0x163bc6cc) \
495 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 0x7631bdbc) \ 495 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 0x5def39d2) \
496 V(Object, get:runtimeType, ObjectRuntimeType, 0x00e7c26b) 496 V(Object, get:runtimeType, ObjectRuntimeType, 0x00e7c26b)
497 497
498 // clang-format on 498 // clang-format on
499 499
500 // Forward declarations. 500 // Forward declarations.
501 class Function; 501 class Function;
502 502
503 // Class that recognizes the name and owner of a function and returns the 503 // Class that recognizes the name and owner of a function and returns the
504 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 504 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
505 // functions. 505 // functions.
(...skipping 27 matching lines...) Expand all
533 533
534 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ 534 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \
535 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) 535 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp))
536 #endif // !defined(DART_PRECOMPILED_RUNTIME) 536 #endif // !defined(DART_PRECOMPILED_RUNTIME)
537 537
538 538
539 // clang-format off 539 // clang-format off
540 // List of recognized list factories: 540 // List of recognized list factories:
541 // (factory-name-symbol, result-cid, fingerprint). 541 // (factory-name-symbol, result-cid, fingerprint).
542 #define RECOGNIZED_LIST_FACTORY_LIST(V) \ 542 #define RECOGNIZED_LIST_FACTORY_LIST(V) \
543 V(_ListFactory, kArrayCid, 0x63078b15) \ 543 V(_ListFactory, kArrayCid, 0x375519ad) \
544 V(_GrowableListWithData, kGrowableObjectArrayCid, 0x25a786de) \ 544 V(_GrowableListWithData, kGrowableObjectArrayCid, 0x401f3150) \
545 V(_GrowableListFactory, kGrowableObjectArrayCid, 0x4f4d4790) \ 545 V(_GrowableListFactory, kGrowableObjectArrayCid, 0x0b8d9feb) \
546 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 0x2e7749e3) \ 546 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 0x2e7749e3) \
547 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 0x6ab75439) \ 547 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 0x6ab75439) \
548 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 0x183129d7) \ 548 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 0x183129d7) \
549 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 0x14b563ea) \ 549 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 0x14b563ea) \
550 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 0x07456be4) \ 550 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 0x07456be4) \
551 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 0x5bd49250) \ 551 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 0x5bd49250) \
552 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 0x3c59b3a4) \ 552 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 0x3c59b3a4) \
553 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 0x57d85ac7) \ 553 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 0x57d85ac7) \
554 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 0x2c093004) \ 554 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 0x2c093004) \
555 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 0x501be4f1) \ 555 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 0x501be4f1) \
556 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 0x738e124b) \ 556 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 0x738e124b) \
557 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 0x7a7dd718) 557 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 0x7a7dd718)
558 558
559 // clang-format on 559 // clang-format on
560 560
561 // Class that recognizes factories and returns corresponding result cid. 561 // Class that recognizes factories and returns corresponding result cid.
562 class FactoryRecognizer : public AllStatic { 562 class FactoryRecognizer : public AllStatic {
563 public: 563 public:
564 // Return kDynamicCid if factory is not recognized. 564 // Return kDynamicCid if factory is not recognized.
565 static intptr_t ResultCid(const Function& factory); 565 static intptr_t ResultCid(const Function& factory);
566 }; 566 };
567 567
568 } // namespace dart 568 } // namespace dart
569 569
570 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_ 570 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698