| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 V(_OneByteString, _substringUncheckedNative, \ | 84 V(_OneByteString, _substringUncheckedNative, \ |
| 85 OneByteString_substringUnchecked, 713121438) \ | 85 OneByteString_substringUnchecked, 713121438) \ |
| 86 V(_OneByteString, _setAt, OneByteString_setAt, 342452817) \ | 86 V(_OneByteString, _setAt, OneByteString_setAt, 342452817) \ |
| 87 V(_OneByteString, _allocate, OneByteString_allocate, 510754908) \ | 87 V(_OneByteString, _allocate, OneByteString_allocate, 510754908) \ |
| 88 | 88 |
| 89 | 89 |
| 90 #define MATH_LIB_INTRINSIC_LIST(V) \ | 90 #define MATH_LIB_INTRINSIC_LIST(V) \ |
| 91 V(::, sqrt, Math_sqrt, 1662640002) \ | 91 V(::, sqrt, Math_sqrt, 1662640002) \ |
| 92 V(::, sin, Math_sin, 1273932041) \ | 92 V(::, sin, Math_sin, 1273932041) \ |
| 93 V(::, cos, Math_cos, 1749547468) \ | 93 V(::, cos, Math_cos, 1749547468) \ |
| 94 V(_Random, _nextState, Random_nextState, 77315414) \ |
| 94 | 95 |
| 95 | 96 |
| 96 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 97 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
| 97 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ | 98 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ |
| 98 V(_Int8Array, _new, TypedData_Int8Array_new, 48970297) \ | 99 V(_Int8Array, _new, TypedData_Int8Array_new, 48970297) \ |
| 99 V(_Uint8Array, _new, TypedData_Uint8Array_new, 389788863) \ | 100 V(_Uint8Array, _new, TypedData_Uint8Array_new, 389788863) \ |
| 100 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 59021935) \ | 101 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 59021935) \ |
| 101 V(_Int16Array, _new, TypedData_Int16Array_new, 465688649) \ | 102 V(_Int16Array, _new, TypedData_Int16Array_new, 465688649) \ |
| 102 V(_Uint16Array, _new, TypedData_Uint16Array_new, 169304657) \ | 103 V(_Uint16Array, _new, TypedData_Uint16Array_new, 169304657) \ |
| 103 V(_Int32Array, _new, TypedData_Int32Array_new, 947562951) \ | 104 V(_Int32Array, _new, TypedData_Int32Array_new, 947562951) \ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 144 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 144 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 145 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 145 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 146 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 146 | 147 |
| 147 #undef DECLARE_FUNCTION | 148 #undef DECLARE_FUNCTION |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace dart | 151 } // namespace dart |
| 151 | 152 |
| 152 #endif // VM_INTRINSIFIER_H_ | 153 #endif // VM_INTRINSIFIER_H_ |
| OLD | NEW |