OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_METHOD_RECOGNIZER_H_ | 5 #ifndef VM_METHOD_RECOGNIZER_H_ |
6 #define VM_METHOD_RECOGNIZER_H_ | 6 #define VM_METHOD_RECOGNIZER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 OneByteString_substringUnchecked, 1527498975) \ | 187 OneByteString_substringUnchecked, 1527498975) \ |
188 V(_OneByteString, _setAt, OneByteStringSetAt, 468605749) \ | 188 V(_OneByteString, _setAt, OneByteStringSetAt, 468605749) \ |
189 V(_OneByteString, _allocate, OneByteString_allocate, 2035417022) \ | 189 V(_OneByteString, _allocate, OneByteString_allocate, 2035417022) \ |
190 V(_OneByteString, ==, OneByteString_equality, 1727047023) \ | 190 V(_OneByteString, ==, OneByteString_equality, 1727047023) \ |
191 V(_TwoByteString, ==, TwoByteString_equality, 951149689) \ | 191 V(_TwoByteString, ==, TwoByteString_equality, 951149689) \ |
192 | 192 |
193 | 193 |
194 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ | 194 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ |
195 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ | 195 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ |
196 438687793) \ | 196 438687793) \ |
197 V(_IntegerImplementation, +, Integer_add, 837070328) \ | 197 V(_IntegerImplementation, +, Integer_add, 501253666) \ |
198 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ | 198 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ |
199 562800077) \ | 199 562800077) \ |
200 V(_IntegerImplementation, -, Integer_sub, 1904782019) \ | 200 V(_IntegerImplementation, -, Integer_sub, 1819430179) \ |
201 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ | 201 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ |
202 67891834) \ | 202 67891834) \ |
203 V(_IntegerImplementation, *, Integer_mul, 1012952097) \ | 203 V(_IntegerImplementation, *, Integer_mul, 1787870724) \ |
204 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \ | 204 V(_IntegerImplementation, _moduloFromInteger, Integer_moduloFromInteger, \ |
205 93478264) \ | 205 93478264) \ |
206 V(_IntegerImplementation, ~/, Integer_truncDivide, 724644222) \ | 206 V(_IntegerImplementation, ~/, Integer_truncDivide, 1309867000) \ |
207 V(_IntegerImplementation, unary-, Integer_negate, 2095203689) \ | 207 V(_IntegerImplementation, unary-, Integer_negate, 2095203689) \ |
208 V(_IntegerImplementation, _bitAndFromInteger, \ | 208 V(_IntegerImplementation, _bitAndFromInteger, \ |
209 Integer_bitAndFromInteger, 504496713) \ | 209 Integer_bitAndFromInteger, 504496713) \ |
210 V(_IntegerImplementation, &, Integer_bitAnd, 347192674) \ | 210 V(_IntegerImplementation, &, Integer_bitAnd, 648886925) \ |
211 V(_IntegerImplementation, _bitOrFromInteger, \ | 211 V(_IntegerImplementation, _bitOrFromInteger, \ |
212 Integer_bitOrFromInteger, 1763728073) \ | 212 Integer_bitOrFromInteger, 1763728073) \ |
213 V(_IntegerImplementation, |, Integer_bitOr, 1293445202) \ | 213 V(_IntegerImplementation, |, Integer_bitOr, 1473764427) \ |
214 V(_IntegerImplementation, _bitXorFromInteger, \ | 214 V(_IntegerImplementation, _bitXorFromInteger, \ |
215 Integer_bitXorFromInteger, 281425907) \ | 215 Integer_bitXorFromInteger, 281425907) \ |
216 V(_IntegerImplementation, ^, Integer_bitXor, 2139935734) \ | 216 V(_IntegerImplementation, ^, Integer_bitXor, 99980524) \ |
217 V(_IntegerImplementation, \ | 217 V(_IntegerImplementation, \ |
218 _greaterThanFromInteger, \ | 218 _greaterThanFromInteger, \ |
219 Integer_greaterThanFromInt, 787426822) \ | 219 Integer_greaterThanFromInt, 787426822) \ |
220 V(_IntegerImplementation, >, Integer_greaterThan, 123961041) \ | 220 V(_IntegerImplementation, >, Integer_greaterThan, 123961041) \ |
221 V(_IntegerImplementation, ==, Integer_equal, 1423724294) \ | 221 V(_IntegerImplementation, ==, Integer_equal, 1423724294) \ |
222 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, \ | 222 V(_IntegerImplementation, _equalToInteger, Integer_equalToInteger, \ |
223 1790821042) \ | 223 1790821042) \ |
224 V(_IntegerImplementation, <, Integer_lessThan, 425560117) \ | 224 V(_IntegerImplementation, <, Integer_lessThan, 425560117) \ |
225 V(_IntegerImplementation, <=, Integer_lessEqualThan, 1512735828) \ | 225 V(_IntegerImplementation, <=, Integer_lessEqualThan, 1512735828) \ |
226 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 668293748) \ | 226 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 668293748) \ |
227 V(_IntegerImplementation, <<, Integer_shl, 34265041) \ | 227 V(_IntegerImplementation, <<, Integer_shl, 656407087) \ |
228 V(_IntegerImplementation, >>, Integer_sar, 1797129864) \ | 228 V(_IntegerImplementation, >>, Integer_sar, 487746736) \ |
229 V(_Double, toInt, DoubleToInteger, 1547535151) | 229 V(_Double, toInt, DoubleToInteger, 1547535151) |
230 | 230 |
231 | 231 |
232 #define MATH_LIB_INTRINSIC_LIST(V) \ | 232 #define MATH_LIB_INTRINSIC_LIST(V) \ |
233 V(::, sqrt, MathSqrt, 101545548) \ | 233 V(::, sqrt, MathSqrt, 101545548) \ |
234 V(_Random, _nextState, Random_nextState, 55890711) \ | 234 V(_Random, _nextState, Random_nextState, 55890711) \ |
235 | 235 |
236 | 236 |
237 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 237 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
238 V(_TypedList, get:length, TypedDataLength, 522565357) \ | 238 V(_TypedList, get:length, TypedDataLength, 522565357) \ |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 static Kind RecognizeKind(const Function& function); | 390 static Kind RecognizeKind(const Function& function); |
391 static bool AlwaysInline(const Function& function); | 391 static bool AlwaysInline(const Function& function); |
392 static bool PolymorphicTarget(const Function& function); | 392 static bool PolymorphicTarget(const Function& function); |
393 static const char* KindToCString(Kind kind); | 393 static const char* KindToCString(Kind kind); |
394 static void InitializeState(); | 394 static void InitializeState(); |
395 }; | 395 }; |
396 | 396 |
397 } // namespace dart | 397 } // namespace dart |
398 | 398 |
399 #endif // VM_METHOD_RECOGNIZER_H_ | 399 #endif // VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |