Chromium Code Reviews| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 V(::, pow, MathPow, 930962530) \ | 371 V(::, pow, MathPow, 930962530) \ |
| 372 V(::, sin, MathSin, 1741396147) \ | 372 V(::, sin, MathSin, 1741396147) \ |
| 373 V(::, sqrt, MathSqrt, 101545548) \ | 373 V(::, sqrt, MathSqrt, 101545548) \ |
| 374 V(::, tan, MathTan, 982072809) \ | 374 V(::, tan, MathTan, 982072809) \ |
| 375 V(Lists, copy, ListsCopy, 902244797) \ | 375 V(Lists, copy, ListsCopy, 902244797) \ |
| 376 V(_Bigint, get:_neg, Bigint_getNeg, 1151514099) \ | 376 V(_Bigint, get:_neg, Bigint_getNeg, 1151514099) \ |
| 377 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \ | 377 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \ |
| 378 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \ | 378 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \ |
| 379 V(_Bigint, set:_digits, Bigint_setDigits, 1135754410) \ | 379 V(_Bigint, set:_digits, Bigint_setDigits, 1135754410) \ |
| 380 | 380 |
| 381 // A list of core function that should never be inlined. | |
| 382 #define INLINE_BLACK_LIST(V) \ | |
| 383 V(_Bigint, _absAdd, Bigint_absAdd, 233965936) \ | |
| 384 V(_Bigint, _absSub, Bigint_absSub, 1401148862) \ | |
| 385 V(_Bigint, _mulAdd, Bigint_mulAdd, 1283124653) \ | |
| 386 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1665155090) \ | |
| 387 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 643982609) \ | |
| 388 | |
|
regis
2014/11/06 17:25:19
V(_Montgomery, _mulMod, Montgomery_mulMod, 1491270
| |
| 381 // A list of core functions that internally dispatch based on received id. | 389 // A list of core functions that internally dispatch based on received id. |
| 382 #define POLYMORPHIC_TARGET_LIST(V) \ | 390 #define POLYMORPHIC_TARGET_LIST(V) \ |
| 383 V(_StringBase, [], StringBaseCharAt, 1512210677) \ | 391 V(_StringBase, [], StringBaseCharAt, 1512210677) \ |
| 384 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ | 392 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ |
| 385 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ | 393 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ |
| 386 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ | 394 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ |
| 387 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ | 395 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ |
| 388 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ | 396 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ |
| 389 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ | 397 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ |
| 390 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ | 398 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 422 static Kind RecognizeKind(const Function& function); | 430 static Kind RecognizeKind(const Function& function); |
| 423 static bool AlwaysInline(const Function& function); | 431 static bool AlwaysInline(const Function& function); |
| 424 static bool PolymorphicTarget(const Function& function); | 432 static bool PolymorphicTarget(const Function& function); |
| 425 static const char* KindToCString(Kind kind); | 433 static const char* KindToCString(Kind kind); |
| 426 static void InitializeState(); | 434 static void InitializeState(); |
| 427 }; | 435 }; |
| 428 | 436 |
| 429 } // namespace dart | 437 } // namespace dart |
| 430 | 438 |
| 431 #endif // VM_METHOD_RECOGNIZER_H_ | 439 #endif // VM_METHOD_RECOGNIZER_H_ |
| OLD | NEW |