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 RUNTIME_VM_METHOD_RECOGNIZER_H_ | 5 #ifndef RUNTIME_VM_METHOD_RECOGNIZER_H_ |
6 #define RUNTIME_VM_METHOD_RECOGNIZER_H_ | 6 #define RUNTIME_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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 V(_IntegerImplementation, <<, Integer_shl, Dynamic, 0x1050c9a8) \ | 225 V(_IntegerImplementation, <<, Integer_shl, Dynamic, 0x1050c9a8) \ |
226 V(_IntegerImplementation, >>, Integer_sar, Dynamic, 0x39af1c69) \ | 226 V(_IntegerImplementation, >>, Integer_sar, Dynamic, 0x39af1c69) \ |
227 V(_Double, toInt, DoubleToInteger, Dynamic, 0x26ef344b) | 227 V(_Double, toInt, DoubleToInteger, Dynamic, 0x26ef344b) |
228 | 228 |
229 | 229 |
230 #define MATH_LIB_INTRINSIC_LIST(V) \ | 230 #define MATH_LIB_INTRINSIC_LIST(V) \ |
231 V(::, sqrt, MathSqrt, Double, 0x70482cf3) \ | 231 V(::, sqrt, MathSqrt, Double, 0x70482cf3) \ |
232 V(_Random, _nextState, Random_nextState, Dynamic, 0x268dec36) \ | 232 V(_Random, _nextState, Random_nextState, Dynamic, 0x268dec36) \ |
233 | 233 |
234 #define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ | 234 #define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ |
235 V(::, sin, MathSin, Double, 0x3f3a010c) \ | 235 V(::, sin, MathSin, Double, 0x6b7bd98c) \ |
236 V(::, cos, MathCos, Double, 0x195a1d7e) \ | 236 V(::, cos, MathCos, Double, 0x459bf5fe) \ |
237 V(::, tan, MathTan, Double, 0x0f8b9eaa) \ | 237 V(::, tan, MathTan, Double, 0x3bcd772a) \ |
238 V(::, asin, MathAsin, Double, 0x2ecc2fcd) \ | 238 V(::, asin, MathAsin, Double, 0x2ecc2fcd) \ |
239 V(::, acos, MathAcos, Double, 0x08cf2212) \ | 239 V(::, acos, MathAcos, Double, 0x08cf2212) \ |
240 V(::, atan, MathAtan, Double, 0x1e2731d5) \ | 240 V(::, atan, MathAtan, Double, 0x1e2731d5) \ |
241 V(::, atan2, MathAtan2, Double, 0x39f1fa41) \ | 241 V(::, atan2, MathAtan2, Double, 0x39f1fa41) \ |
242 | 242 |
243 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 243 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
244 V(Int8List, ., TypedData_Int8Array_factory, TypedDataInt8Array, 0x165876c2) \ | 244 V(Int8List, ., TypedData_Int8Array_factory, TypedDataInt8Array, 0x165876c2) \ |
245 V(Uint8List, ., TypedData_Uint8Array_factory, TypedDataUint8Array, \ | 245 V(Uint8List, ., TypedData_Uint8Array_factory, TypedDataUint8Array, \ |
246 0x52988118) \ | 246 0x52988118) \ |
247 V(Uint8ClampedList, ., TypedData_Uint8ClampedArray_factory, \ | 247 V(Uint8ClampedList, ., TypedData_Uint8ClampedArray_factory, \ |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 0x75f4287b) \ | 439 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 0x75f4287b) \ |
440 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 0x55840d63) \ | 440 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 0x55840d63) \ |
441 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 0x5e83ecad) \ | 441 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 0x5e83ecad) \ |
442 | 442 |
443 // A list of core function that should never be inlined. | 443 // A list of core function that should never be inlined. |
444 #define INLINE_BLACK_LIST(V) \ | 444 #define INLINE_BLACK_LIST(V) \ |
445 V(::, asin, MathAsin, 0x2ecc2fcd) \ | 445 V(::, asin, MathAsin, 0x2ecc2fcd) \ |
446 V(::, acos, MathAcos, 0x08cf2212) \ | 446 V(::, acos, MathAcos, 0x08cf2212) \ |
447 V(::, atan, MathAtan, 0x1e2731d5) \ | 447 V(::, atan, MathAtan, 0x1e2731d5) \ |
448 V(::, atan2, MathAtan2, 0x39f1fa41) \ | 448 V(::, atan2, MathAtan2, 0x39f1fa41) \ |
449 V(::, cos, MathCos, 0x195a1d7e) \ | 449 V(::, cos, MathCos, 0x459bf5fe) \ |
450 V(::, sin, MathSin, 0x3f3a010c) \ | 450 V(::, sin, MathSin, 0x6b7bd98c) \ |
451 V(::, sqrt, MathSqrt, 0x70482cf3) \ | 451 V(::, sqrt, MathSqrt, 0x70482cf3) \ |
452 V(::, tan, MathTan, 0x0f8b9eaa) \ | 452 V(::, tan, MathTan, 0x3bcd772a) \ |
453 V(_Bigint, _lsh, Bigint_lsh, 0x40d9f1cc) \ | 453 V(_Bigint, _lsh, Bigint_lsh, 0x40d9f1cc) \ |
454 V(_Bigint, _rsh, Bigint_rsh, 0x703f1a40) \ | 454 V(_Bigint, _rsh, Bigint_rsh, 0x703f1a40) \ |
455 V(_Bigint, _absAdd, Bigint_absAdd, 0x50fb1e47) \ | 455 V(_Bigint, _absAdd, Bigint_absAdd, 0x50fb1e47) \ |
456 V(_Bigint, _absSub, Bigint_absSub, 0x2beeb34d) \ | 456 V(_Bigint, _absSub, Bigint_absSub, 0x2beeb34d) \ |
457 V(_Bigint, _mulAdd, Bigint_mulAdd, 0x4feffd35) \ | 457 V(_Bigint, _mulAdd, Bigint_mulAdd, 0x4feffd35) \ |
458 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 0x1acf0bbe) \ | 458 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 0x1acf0bbe) \ |
459 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 0x0a2898bb) \ | 459 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 0x0a2898bb) \ |
460 V(_Montgomery, _mulMod, Montgomery_mulMod, 0x26d5b8ee) \ | 460 V(_Montgomery, _mulMod, Montgomery_mulMod, 0x26d5b8ee) \ |
461 V(_Double, >, Double_greaterThan, 0x0a202683) \ | 461 V(_Double, >, Double_greaterThan, 0x0a202683) \ |
462 V(_Double, >=, Double_greaterEqualThan, 0x57491a62) \ | 462 V(_Double, >=, Double_greaterEqualThan, 0x57491a62) \ |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 // Class that recognizes factories and returns corresponding result cid. | 581 // Class that recognizes factories and returns corresponding result cid. |
582 class FactoryRecognizer : public AllStatic { | 582 class FactoryRecognizer : public AllStatic { |
583 public: | 583 public: |
584 // Return kDynamicCid if factory is not recognized. | 584 // Return kDynamicCid if factory is not recognized. |
585 static intptr_t ResultCid(const Function& factory); | 585 static intptr_t ResultCid(const Function& factory); |
586 }; | 586 }; |
587 | 587 |
588 } // namespace dart | 588 } // namespace dart |
589 | 589 |
590 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_ | 590 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |