| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Class for intrinsifying functions. | 4 // Class for intrinsifying functions. |
| 5 | 5 |
| 6 #ifndef VM_INTRINSIFIER_H_ | 6 #ifndef VM_INTRINSIFIER_H_ |
| 7 #define VM_INTRINSIFIER_H_ | 7 #define VM_INTRINSIFIER_H_ |
| 8 | 8 |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1087476857) \ | 91 V(_IntegerImplementation, >=, Integer_greaterEqualThan, 1087476857) \ |
| 92 V(_IntegerImplementation, <<, Integer_shl, 1600590181) \ | 92 V(_IntegerImplementation, <<, Integer_shl, 1600590181) \ |
| 93 V(_IntegerImplementation, >>, Integer_sar, 237416447) \ | 93 V(_IntegerImplementation, >>, Integer_sar, 237416447) \ |
| 94 V(_Double, toInt, Double_toInt, 630286253) | 94 V(_Double, toInt, Double_toInt, 630286253) |
| 95 | 95 |
| 96 | 96 |
| 97 #define MATH_LIB_INTRINSIC_LIST(V) \ | 97 #define MATH_LIB_INTRINSIC_LIST(V) \ |
| 98 V(::, sqrt, Math_sqrt, 1662640002) \ | 98 V(::, sqrt, Math_sqrt, 1662640002) \ |
| 99 V(::, sin, Math_sin, 1273932041) \ | 99 V(::, sin, Math_sin, 1273932041) \ |
| 100 V(::, cos, Math_cos, 1749547468) \ | 100 V(::, cos, Math_cos, 1749547468) \ |
| 101 V(_Random, _nextState, Random_nextState, 287494804) \ | 101 V(_Random, _nextState, Random_nextState, 776416255) \ |
| 102 | 102 |
| 103 | 103 |
| 104 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 104 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
| 105 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ | 105 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ |
| 106 V(_Int8Array, _new, TypedData_Int8Array_new, 1708300323) \ | 106 V(_Int8Array, _new, TypedData_Int8Array_new, 1708300323) \ |
| 107 V(_Uint8Array, _new, TypedData_Uint8Array_new, 280387497) \ | 107 V(_Uint8Array, _new, TypedData_Uint8Array_new, 280387497) \ |
| 108 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1035267417) \ | 108 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1035267417) \ |
| 109 V(_Int16Array, _new, TypedData_Int16Array_new, 1460383283) \ | 109 V(_Int16Array, _new, TypedData_Int16Array_new, 1460383283) \ |
| 110 V(_Uint16Array, _new, TypedData_Uint16Array_new, 737997883) \ | 110 V(_Uint16Array, _new, TypedData_Uint16Array_new, 737997883) \ |
| 111 V(_Int32Array, _new, TypedData_Int32Array_new, 1608749233) \ | 111 V(_Int32Array, _new, TypedData_Int32Array_new, 1608749233) \ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 152 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 153 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 153 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 154 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 154 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 155 | 155 |
| 156 #undef DECLARE_FUNCTION | 156 #undef DECLARE_FUNCTION |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace dart | 159 } // namespace dart |
| 160 | 160 |
| 161 #endif // VM_INTRINSIFIER_H_ | 161 #endif // VM_INTRINSIFIER_H_ |
| OLD | NEW |