| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 V(_Double, toDouble, Double_toDouble) \ | 49 V(_Double, toDouble, Double_toDouble) \ |
| 50 V(_Double, mulFromInteger, Double_mulFromInteger) \ | 50 V(_Double, mulFromInteger, Double_mulFromInteger) \ |
| 51 V(_Double, .fromInteger, Double_fromInteger) \ | 51 V(_Double, .fromInteger, Double_fromInteger) \ |
| 52 V(_Double, isNaN, Double_isNaN) \ | 52 V(_Double, isNaN, Double_isNaN) \ |
| 53 V(_Double, isNegative, Double_isNegative) \ | 53 V(_Double, isNegative, Double_isNegative) \ |
| 54 V(_Double, toInt, Double_toInt) \ | 54 V(_Double, toInt, Double_toInt) \ |
| 55 V(_ObjectArray, ., ObjectArray_Allocate) \ | 55 V(_ObjectArray, ., ObjectArray_Allocate) \ |
| 56 V(_ObjectArray, get:length, Array_getLength) \ | 56 V(_ObjectArray, get:length, Array_getLength) \ |
| 57 V(_ObjectArray, [], Array_getIndexed) \ | 57 V(_ObjectArray, [], Array_getIndexed) \ |
| 58 V(_ObjectArray, []=, Array_setIndexed) \ | 58 V(_ObjectArray, []=, Array_setIndexed) \ |
| 59 V(_GrowableObjectArray, \ | 59 V(_GrowableObjectArray, .fromObjectArray, GArray_Allocate) \ |
| 60 .fromObjectArray, \ | |
| 61 GArray_Allocate) \ | |
| 62 V(_GrowableObjectArray, get:length, GrowableArray_getLength) \ | 60 V(_GrowableObjectArray, get:length, GrowableArray_getLength) \ |
| 63 V(_GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ | 61 V(_GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ |
| 64 V(_GrowableObjectArray, [], GrowableArray_getIndexed) \ | 62 V(_GrowableObjectArray, [], GrowableArray_getIndexed) \ |
| 65 V(_GrowableObjectArray, []=, GrowableArray_setIndexed) \ | 63 V(_GrowableObjectArray, []=, GrowableArray_setIndexed) \ |
| 66 V(_GrowableObjectArray, _setLength, GrowableArray_setLength) \ | 64 V(_GrowableObjectArray, _setLength, GrowableArray_setLength) \ |
| 67 V(_GrowableObjectArray, _setData, GrowableArray_setData) \ | 65 V(_GrowableObjectArray, _setData, GrowableArray_setData) \ |
| 68 V(_GrowableObjectArray, add, GrowableArray_add) \ | 66 V(_GrowableObjectArray, add, GrowableArray_add) \ |
| 69 V(_ImmutableArray, [], ImmutableArray_getIndexed) \ | 67 V(_ImmutableArray, [], ImmutableArray_getIndexed) \ |
| 70 V(_ImmutableArray, get:length, ImmutableArray_getLength) \ | 68 V(_ImmutableArray, get:length, ImmutableArray_getLength) \ |
| 71 V(::, sqrt, Math_sqrt) \ | 69 V(::, sqrt, Math_sqrt) \ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ | 102 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ |
| 105 static bool destination(Assembler* assembler); | 103 static bool destination(Assembler* assembler); |
| 106 | 104 |
| 107 INTRINSIC_LIST(DECLARE_FUNCTION) | 105 INTRINSIC_LIST(DECLARE_FUNCTION) |
| 108 #undef DECLARE_FUNCTION | 106 #undef DECLARE_FUNCTION |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 } // namespace dart | 109 } // namespace dart |
| 112 | 110 |
| 113 #endif // VM_INTRINSIFIER_H_ | 111 #endif // VM_INTRINSIFIER_H_ |
| OLD | NEW |