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

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

Issue 2239903002: VM: Fix math intrinsic code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 0x01bac87d) \ 414 V(_ByteDataView, getInt8, ByteDataViewGetInt8, 0x01bac87d) \
415 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 0x129dab34) \ 415 V(_ByteDataView, getUint8, ByteDataViewGetUint8, 0x129dab34) \
416 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 0x60282377) \ 416 V(_ByteDataView, getInt16, ByteDataViewGetInt16, 0x60282377) \
417 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 0x10edcd89) \ 417 V(_ByteDataView, getUint16, ByteDataViewGetUint16, 0x10edcd89) \
418 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 0x79630f81) \ 418 V(_ByteDataView, getInt32, ByteDataViewGetInt32, 0x79630f81) \
419 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 0x220d3da8) \ 419 V(_ByteDataView, getUint32, ByteDataViewGetUint32, 0x220d3da8) \
420 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 0x757dd5c8) \ 420 V(_ByteDataView, getInt64, ByteDataViewGetInt64, 0x757dd5c8) \
421 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 0x2fab992e) \ 421 V(_ByteDataView, getUint64, ByteDataViewGetUint64, 0x2fab992e) \
422 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 0x387e9fc6) \ 422 V(_ByteDataView, getFloat32, ByteDataViewGetFloat32, 0x387e9fc6) \
423 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 0x5396432d) \ 423 V(_ByteDataView, getFloat64, ByteDataViewGetFloat64, 0x5396432d) \
424 V(::, asin, MathAsin, 0x661ff68b) \
425 V(::, acos, MathAcos, 0x44e71d5f) \
426 V(::, atan, MathAtan, 0x4436a657) \
427 V(::, atan2, MathAtan2, 0x60a40743) \
428 V(::, cos, MathCos, 0x79a7611c) \
429 V(::, exp, MathExp, 0x5b894d7b) \ 424 V(::, exp, MathExp, 0x5b894d7b) \
430 V(::, log, MathLog, 0x2e25132c) \ 425 V(::, log, MathLog, 0x2e25132c) \
431 V(::, max, MathMax, 0x54121d6a) \ 426 V(::, max, MathMax, 0x54121d6a) \
432 V(::, min, MathMin, 0x4276561c) \ 427 V(::, min, MathMin, 0x4276561c) \
433 V(::, pow, MathPow, 0x438e3089) \ 428 V(::, pow, MathPow, 0x438e3089) \
434 V(::, sin, MathSin, 0x0213abe6) \
435 V(::, sqrt, MathSqrt, 0x1afb83d4) \
436 V(::, tan, MathTan, 0x4e2e20db) \
437 V(Lists, copy, ListsCopy, 0x21a194fa) \ 429 V(Lists, copy, ListsCopy, 0x21a194fa) \
438 V(_Bigint, get:_neg, Bigint_getNeg, 0x7bf17a57) \ 430 V(_Bigint, get:_neg, Bigint_getNeg, 0x7bf17a57) \
439 V(_Bigint, get:_used, Bigint_getUsed, 0x55041013) \ 431 V(_Bigint, get:_used, Bigint_getUsed, 0x55041013) \
440 V(_Bigint, get:_digits, Bigint_getDigits, 0x46a6c1b3) \ 432 V(_Bigint, get:_digits, Bigint_getDigits, 0x46a6c1b3) \
441 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 0x7d6bb76b) \ 433 V(_HashVMBase, get:_index, LinkedHashMap_getIndex, 0x7d6bb76b) \
442 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 0x4beb13f2) \ 434 V(_HashVMBase, set:_index, LinkedHashMap_setIndex, 0x4beb13f2) \
443 V(_HashVMBase, get:_data, LinkedHashMap_getData, 0x4bf5ccb3) \ 435 V(_HashVMBase, get:_data, LinkedHashMap_getData, 0x4bf5ccb3) \
444 V(_HashVMBase, set:_data, LinkedHashMap_setData, 0x6007556d) \ 436 V(_HashVMBase, set:_data, LinkedHashMap_setData, 0x6007556d) \
445 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 0x15e70845) \ 437 V(_HashVMBase, get:_usedData, LinkedHashMap_getUsedData, 0x15e70845) \
446 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 0x3e8c6edc) \ 438 V(_HashVMBase, set:_usedData, LinkedHashMap_setUsedData, 0x3e8c6edc) \
447 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 0x35c5ac00) \ 439 V(_HashVMBase, get:_hashMask, LinkedHashMap_getHashMask, 0x35c5ac00) \
448 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 0x49adf69e) \ 440 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 0x49adf69e) \
449 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 0x306e6a79) \ 441 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 0x306e6a79) \
450 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 0x3fe95fc2) \ 442 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 0x3fe95fc2) \
451 443
452 // A list of core function that should never be inlined. 444 // A list of core function that should never be inlined.
453 #define INLINE_BLACK_LIST(V) \ 445 #define INLINE_BLACK_LIST(V) \
446 V(::, asin, MathAsin, 0x661ff68b) \
447 V(::, acos, MathAcos, 0x44e71d5f) \
448 V(::, atan, MathAtan, 0x4436a657) \
449 V(::, atan2, MathAtan2, 0x60a40743) \
450 V(::, cos, MathCos, 0x79a7611c) \
451 V(::, sin, MathSin, 0x0213abe6) \
452 V(::, sqrt, MathSqrt, 0x1afb83d4) \
453 V(::, tan, MathTan, 0x4e2e20db) \
454 V(_Bigint, _lsh, Bigint_lsh, 0x5cd95513) \ 454 V(_Bigint, _lsh, Bigint_lsh, 0x5cd95513) \
455 V(_Bigint, _rsh, Bigint_rsh, 0x2d68d0e1) \ 455 V(_Bigint, _rsh, Bigint_rsh, 0x2d68d0e1) \
456 V(_Bigint, _absAdd, Bigint_absAdd, 0x492f4865) \ 456 V(_Bigint, _absAdd, Bigint_absAdd, 0x492f4865) \
457 V(_Bigint, _absSub, Bigint_absSub, 0x174a3a34) \ 457 V(_Bigint, _absSub, Bigint_absSub, 0x174a3a34) \
458 V(_Bigint, _mulAdd, Bigint_mulAdd, 0x24ced3ee) \ 458 V(_Bigint, _mulAdd, Bigint_mulAdd, 0x24ced3ee) \
459 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 0x60c6b633) \ 459 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 0x60c6b633) \
460 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 0x2f867482) \ 460 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 0x2f867482) \
461 V(_Montgomery, _mulMod, Montgomery_mulMod, 0x741bed13) \ 461 V(_Montgomery, _mulMod, Montgomery_mulMod, 0x741bed13) \
462 V(_Double, >, Double_greaterThan, 0x569b0a81) \ 462 V(_Double, >, Double_greaterThan, 0x569b0a81) \
463 V(_Double, >=, Double_greaterEqualThan, 0x6c317340) \ 463 V(_Double, >=, Double_greaterEqualThan, 0x6c317340) \
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 // Class that recognizes factories and returns corresponding result cid. 569 // Class that recognizes factories and returns corresponding result cid.
570 class FactoryRecognizer : public AllStatic { 570 class FactoryRecognizer : public AllStatic {
571 public: 571 public:
572 // Return kDynamicCid if factory is not recognized. 572 // Return kDynamicCid if factory is not recognized.
573 static intptr_t ResultCid(const Function& factory); 573 static intptr_t ResultCid(const Function& factory);
574 }; 574 };
575 575
576 } // namespace dart 576 } // namespace dart
577 577
578 #endif // VM_METHOD_RECOGNIZER_H_ 578 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698