| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 V(_ImmutableArray, [], ImmutableArray_getIndexed, 486821199) \ | 76 V(_ImmutableArray, [], ImmutableArray_getIndexed, 486821199) \ |
| 77 V(_ImmutableArray, get:length, ImmutableArray_getLength, 433698233) \ | 77 V(_ImmutableArray, get:length, ImmutableArray_getLength, 433698233) \ |
| 78 V(Object, ==, Object_equal, 2126897013) \ | 78 V(Object, ==, Object_equal, 2126897013) \ |
| 79 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \ | 79 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \ |
| 80 V(_StringBase, get:isEmpty, String_getIsEmpty, 1026765313) \ | 80 V(_StringBase, get:isEmpty, String_getIsEmpty, 1026765313) \ |
| 81 V(_StringBase, get:length, String_getLength, 320803993) \ | 81 V(_StringBase, get:length, String_getLength, 320803993) \ |
| 82 V(_StringBase, codeUnitAt, String_codeUnitAt, 984449525) \ | 82 V(_StringBase, codeUnitAt, String_codeUnitAt, 984449525) \ |
| 83 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 682660413) \ | 83 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 682660413) \ |
| 84 V(_OneByteString, _substringUncheckedNative, \ | 84 V(_OneByteString, _substringUncheckedNative, \ |
| 85 OneByteString_substringUnchecked, 713121438) \ | 85 OneByteString_substringUnchecked, 713121438) \ |
| 86 V(_OneByteString, _setAt, OneByteString_setAt, 342452817) \ |
| 87 V(_OneByteString, _allocate, OneByteString_allocate, 510754908) \ |
| 86 | 88 |
| 87 | 89 |
| 88 #define MATH_LIB_INTRINSIC_LIST(V) \ | 90 #define MATH_LIB_INTRINSIC_LIST(V) \ |
| 89 V(::, sqrt, Math_sqrt, 1662640002) \ | 91 V(::, sqrt, Math_sqrt, 1662640002) \ |
| 90 V(::, sin, Math_sin, 1273932041) \ | 92 V(::, sin, Math_sin, 1273932041) \ |
| 91 V(::, cos, Math_cos, 1749547468) \ | 93 V(::, cos, Math_cos, 1749547468) \ |
| 92 | 94 |
| 93 | 95 |
| 94 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 96 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
| 95 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ | 97 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 143 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 142 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 144 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 143 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 145 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 144 | 146 |
| 145 #undef DECLARE_FUNCTION | 147 #undef DECLARE_FUNCTION |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace dart | 150 } // namespace dart |
| 149 | 151 |
| 150 #endif // VM_INTRINSIFIER_H_ | 152 #endif // VM_INTRINSIFIER_H_ |
| OLD | NEW |