| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 V(_Int64Array, []=, Int64ArraySetIndexed, 1007378595) \ | 140 V(_Int64Array, []=, Int64ArraySetIndexed, 1007378595) \ |
| 141 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 31307067) \ | 141 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 31307067) \ |
| 142 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 525088372) \ | 142 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 525088372) \ |
| 143 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 2007476980) \ | 143 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 2007476980) \ |
| 144 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 431354302) \ | 144 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 431354302) \ |
| 145 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 1295393472) \ | 145 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 1295393472) \ |
| 146 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 808434270) \ | 146 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 808434270) \ |
| 147 V(_Bigint, get:_neg, Bigint_getNeg, 1151633263) \ | 147 V(_Bigint, get:_neg, Bigint_getNeg, 1151633263) \ |
| 148 V(_Bigint, get:_used, Bigint_getUsed, 1308648707) \ | 148 V(_Bigint, get:_used, Bigint_getUsed, 1308648707) \ |
| 149 V(_Bigint, get:_digits, Bigint_getDigits, 1408181836) \ | 149 V(_Bigint, get:_digits, Bigint_getDigits, 1408181836) \ |
| 150 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 1431607529) \ |
| 151 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 2007926178) \ |
| 152 V(_HashVMBase, get:_data, LinkedHashMap_getData, 958070909) \ |
| 153 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1134236592) \ |
| 154 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 421669312) \ |
| 155 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1152062737) \ |
| 156 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 969476186) \ |
| 157 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1781420082) \ |
| 158 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 63633039) \ |
| 159 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 2079107858) \ |
| 160 |
| 150 | 161 |
| 151 // List of intrinsics: | 162 // List of intrinsics: |
| 152 // (class-name, function-name, intrinsification method, fingerprint). | 163 // (class-name, function-name, intrinsification method, fingerprint). |
| 153 #define CORE_LIB_INTRINSIC_LIST(V) \ | 164 #define CORE_LIB_INTRINSIC_LIST(V) \ |
| 154 V(_Smi, ~, Smi_bitNegate, 221883538) \ | 165 V(_Smi, ~, Smi_bitNegate, 221883538) \ |
| 155 V(_Smi, get:bitLength, Smi_bitLength, 870075661) \ | 166 V(_Smi, get:bitLength, Smi_bitLength, 870075661) \ |
| 156 V(_Bigint, _lsh, Bigint_lsh, 1457834861) \ | 167 V(_Bigint, _lsh, Bigint_lsh, 1457834861) \ |
| 157 V(_Bigint, _rsh, Bigint_rsh, 1619318930) \ | 168 V(_Bigint, _rsh, Bigint_rsh, 1619318930) \ |
| 158 V(_Bigint, _absAdd, Bigint_absAdd, 1029882563) \ | 169 V(_Bigint, _absAdd, Bigint_absAdd, 1029882563) \ |
| 159 V(_Bigint, _absSub, Bigint_absSub, 1407667556) \ | 170 V(_Bigint, _absSub, Bigint_absSub, 1407667556) \ |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 V(::, max, MathMax, 212291192) \ | 401 V(::, max, MathMax, 212291192) \ |
| 391 V(::, min, MathMin, 478627534) \ | 402 V(::, min, MathMin, 478627534) \ |
| 392 V(::, pow, MathPow, 582475257) \ | 403 V(::, pow, MathPow, 582475257) \ |
| 393 V(::, sin, MathSin, 1741396147) \ | 404 V(::, sin, MathSin, 1741396147) \ |
| 394 V(::, sqrt, MathSqrt, 101545548) \ | 405 V(::, sqrt, MathSqrt, 101545548) \ |
| 395 V(::, tan, MathTan, 982072809) \ | 406 V(::, tan, MathTan, 982072809) \ |
| 396 V(Lists, copy, ListsCopy, 618211805) \ | 407 V(Lists, copy, ListsCopy, 618211805) \ |
| 397 V(_Bigint, get:_neg, Bigint_getNeg, 1151633263) \ | 408 V(_Bigint, get:_neg, Bigint_getNeg, 1151633263) \ |
| 398 V(_Bigint, get:_used, Bigint_getUsed, 1308648707) \ | 409 V(_Bigint, get:_used, Bigint_getUsed, 1308648707) \ |
| 399 V(_Bigint, get:_digits, Bigint_getDigits, 1408181836) \ | 410 V(_Bigint, get:_digits, Bigint_getDigits, 1408181836) \ |
| 411 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 1431607529) \ |
| 412 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 2007926178) \ |
| 413 V(_HashVMBase, get:_data, LinkedHashMap_getData, 958070909) \ |
| 414 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1134236592) \ |
| 415 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 421669312) \ |
| 416 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1152062737) \ |
| 417 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 969476186) \ |
| 418 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1781420082) \ |
| 419 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 63633039) \ |
| 420 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 2079107858) \ |
| 421 |
| 400 | 422 |
| 401 // A list of core function that should never be inlined. | 423 // A list of core function that should never be inlined. |
| 402 #define INLINE_BLACK_LIST(V) \ | 424 #define INLINE_BLACK_LIST(V) \ |
| 403 V(_Bigint, _lsh, Bigint_lsh, 1457834861) \ | 425 V(_Bigint, _lsh, Bigint_lsh, 1457834861) \ |
| 404 V(_Bigint, _rsh, Bigint_rsh, 1619318930) \ | 426 V(_Bigint, _rsh, Bigint_rsh, 1619318930) \ |
| 405 V(_Bigint, _absAdd, Bigint_absAdd, 1029882563) \ | 427 V(_Bigint, _absAdd, Bigint_absAdd, 1029882563) \ |
| 406 V(_Bigint, _absSub, Bigint_absSub, 1407667556) \ | 428 V(_Bigint, _absSub, Bigint_absSub, 1407667556) \ |
| 407 V(_Bigint, _mulAdd, Bigint_mulAdd, 1408994809) \ | 429 V(_Bigint, _mulAdd, Bigint_mulAdd, 1408994809) \ |
| 408 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 2025116181) \ | 430 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 2025116181) \ |
| 409 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 919247767) \ | 431 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 919247767) \ |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) | 487 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) |
| 466 | 488 |
| 467 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ | 489 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ |
| 468 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) | 490 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) |
| 469 #endif // defined(DART_NO_SNAPSHOT). | 491 #endif // defined(DART_NO_SNAPSHOT). |
| 470 | 492 |
| 471 | 493 |
| 472 } // namespace dart | 494 } // namespace dart |
| 473 | 495 |
| 474 #endif // VM_METHOD_RECOGNIZER_H_ | 496 #endif // VM_METHOD_RECOGNIZER_H_ |
| OLD | NEW |