| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 V(Object, ==, Object_equal, 936042315) \ | 48 V(Object, ==, Object_equal, 936042315) \ |
| 49 V(_StringBase, get:hashCode, String_getHashCode, 654543028) \ | 49 V(_StringBase, get:hashCode, String_getHashCode, 654543028) \ |
| 50 V(_StringBase, get:isEmpty, String_getIsEmpty, 879849436) \ | 50 V(_StringBase, get:isEmpty, String_getIsEmpty, 879849436) \ |
| 51 V(_StringBase, get:length, String_getLength, 1483520063) \ | 51 V(_StringBase, get:length, String_getLength, 1483520063) \ |
| 52 V(_StringBase, codeUnitAt, String_codeUnitAt, 1958436584) \ | 52 V(_StringBase, codeUnitAt, String_codeUnitAt, 1958436584) \ |
| 53 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1236464016) \ | 53 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1236464016) \ |
| 54 V(_OneByteString, _substringUncheckedNative, \ | 54 V(_OneByteString, _substringUncheckedNative, \ |
| 55 OneByteString_substringUnchecked, 25652388) \ | 55 OneByteString_substringUnchecked, 25652388) \ |
| 56 V(_OneByteString, _setAt, OneByteString_setAt, 308408714) \ | 56 V(_OneByteString, _setAt, OneByteString_setAt, 308408714) \ |
| 57 V(_OneByteString, _allocate, OneByteString_allocate, 1744068081) \ | 57 V(_OneByteString, _allocate, OneByteString_allocate, 1744068081) \ |
| 58 V(_OneByteString, ==, OneByteString_equality, 1064139944) \ |
| 59 V(_TwoByteString, ==, TwoByteString_equality, 1616855207) \ |
| 58 | 60 |
| 59 | 61 |
| 60 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ | 62 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ |
| 61 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ | 63 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ |
| 62 740884607) \ | 64 740884607) \ |
| 63 V(_IntegerImplementation, +, Integer_add, 772815665) \ | 65 V(_IntegerImplementation, +, Integer_add, 772815665) \ |
| 64 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ | 66 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ |
| 65 584777821) \ | 67 584777821) \ |
| 66 V(_IntegerImplementation, -, Integer_sub, 1938559678) \ | 68 V(_IntegerImplementation, -, Integer_sub, 1938559678) \ |
| 67 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ | 69 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 156 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 155 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 157 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 156 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 158 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
| 157 | 159 |
| 158 #undef DECLARE_FUNCTION | 160 #undef DECLARE_FUNCTION |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 } // namespace dart | 163 } // namespace dart |
| 162 | 164 |
| 163 #endif // VM_INTRINSIFIER_H_ | 165 #endif // VM_INTRINSIFIER_H_ |
| OLD | NEW |