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

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

Issue 1151523002: VM-internalize the default Map implementation. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Ready for review. Created 5 years, 7 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
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 {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 V(_Int64Array, []=, Int64ArraySetIndexed, 1286315154) \ 142 V(_Int64Array, []=, Int64ArraySetIndexed, 1286315154) \
143 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 1291435540) \ 143 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 1291435540) \
144 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 993794277) \ 144 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 993794277) \
145 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 1120121805) \ 145 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 1120121805) \
146 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 900060207) \ 146 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 900060207) \
147 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 408038297) \ 147 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 408038297) \
148 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 1277140175) \ 148 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 1277140175) \
149 V(_Bigint, get:_neg, Bigint_getNeg, 1151543890) \ 149 V(_Bigint, get:_neg, Bigint_getNeg, 1151543890) \
150 V(_Bigint, get:_used, Bigint_getUsed, 1308559334) \ 150 V(_Bigint, get:_used, Bigint_getUsed, 1308559334) \
151 V(_Bigint, get:_digits, Bigint_getDigits, 1408092463) \ 151 V(_Bigint, get:_digits, Bigint_getDigits, 1408092463) \
152 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 1431518156) \
153 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 54374914) \
154 V(_HashVMBase, get:_data, LinkedHashMap_getData, 957981536) \
155 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1328168976) \
156 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 421579939) \
157 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1345995121) \
158 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 969386813) \
159 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1975352466) \
160 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 63543666) \
161 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 125556594) \
152 162
153 // List of intrinsics: 163 // List of intrinsics:
154 // (class-name, function-name, intrinsification method, fingerprint). 164 // (class-name, function-name, intrinsification method, fingerprint).
155 #define CORE_LIB_INTRINSIC_LIST(V) \ 165 #define CORE_LIB_INTRINSIC_LIST(V) \
156 V(_Smi, ~, Smi_bitNegate, 134149043) \ 166 V(_Smi, ~, Smi_bitNegate, 134149043) \
157 V(_Smi, get:bitLength, Smi_bitLength, 869986288) \ 167 V(_Smi, get:bitLength, Smi_bitLength, 869986288) \
158 V(_Bigint, _lsh, Bigint_lsh, 1318834243) \ 168 V(_Bigint, _lsh, Bigint_lsh, 1318834243) \
159 V(_Bigint, _rsh, Bigint_rsh, 1239668932) \ 169 V(_Bigint, _rsh, Bigint_rsh, 1239668932) \
160 V(_Bigint, _absAdd, Bigint_absAdd, 222437051) \ 170 V(_Bigint, _absAdd, Bigint_absAdd, 222437051) \
161 V(_Bigint, _absSub, Bigint_absSub, 599465997) \ 171 V(_Bigint, _absSub, Bigint_absSub, 599465997) \
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 V(::, max, MathMax, 989552054) \ 402 V(::, max, MathMax, 989552054) \
393 V(::, min, MathMin, 214919172) \ 403 V(::, min, MathMin, 214919172) \
394 V(::, pow, MathPow, 1381728863) \ 404 V(::, pow, MathPow, 1381728863) \
395 V(::, sin, MathSin, 1741396147) \ 405 V(::, sin, MathSin, 1741396147) \
396 V(::, sqrt, MathSqrt, 101545548) \ 406 V(::, sqrt, MathSqrt, 101545548) \
397 V(::, tan, MathTan, 982072809) \ 407 V(::, tan, MathTan, 982072809) \
398 V(Lists, copy, ListsCopy, 605584668) \ 408 V(Lists, copy, ListsCopy, 605584668) \
399 V(_Bigint, get:_neg, Bigint_getNeg, 1151543890) \ 409 V(_Bigint, get:_neg, Bigint_getNeg, 1151543890) \
400 V(_Bigint, get:_used, Bigint_getUsed, 1308559334) \ 410 V(_Bigint, get:_used, Bigint_getUsed, 1308559334) \
401 V(_Bigint, get:_digits, Bigint_getDigits, 1408092463) \ 411 V(_Bigint, get:_digits, Bigint_getDigits, 1408092463) \
412 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 1431518156) \
413 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 54374914) \
414 V(_HashVMBase, get:_data, LinkedHashMap_getData, 957981536) \
415 V(_HashVMBase, set:_data, LinkedHashMap_setData, 1328168976) \
416 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 421579939) \
417 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 1345995121) \
418 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 969386813) \
419 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 1975352466) \
420 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 63543666) \
421 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 125556594) \
402 422
403 // A list of core function that should never be inlined. 423 // A list of core function that should never be inlined.
404 #define INLINE_BLACK_LIST(V) \ 424 #define INLINE_BLACK_LIST(V) \
405 V(_Bigint, _lsh, Bigint_lsh, 1318834243) \ 425 V(_Bigint, _lsh, Bigint_lsh, 1318834243) \
406 V(_Bigint, _rsh, Bigint_rsh, 1239668932) \ 426 V(_Bigint, _rsh, Bigint_rsh, 1239668932) \
407 V(_Bigint, _absAdd, Bigint_absAdd, 222437051) \ 427 V(_Bigint, _absAdd, Bigint_absAdd, 222437051) \
408 V(_Bigint, _absSub, Bigint_absSub, 599465997) \ 428 V(_Bigint, _absSub, Bigint_absSub, 599465997) \
409 V(_Bigint, _mulAdd, Bigint_mulAdd, 1696801459) \ 429 V(_Bigint, _mulAdd, Bigint_mulAdd, 1696801459) \
410 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1937424317) \ 430 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1937424317) \
411 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 1873913198) \ 431 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 1873913198) \
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) 487 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp))
468 488
469 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ 489 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \
470 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) 490 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp))
471 #endif // defined(DART_NO_SNAPSHOT). 491 #endif // defined(DART_NO_SNAPSHOT).
472 492
473 493
474 } // namespace dart 494 } // namespace dart
475 495
476 #endif // VM_METHOD_RECOGNIZER_H_ 496 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698