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 30 matching lines...) Expand all Loading... |
41 V(_Smi, ~, Smi_bitNegate) \ | 41 V(_Smi, ~, Smi_bitNegate) \ |
42 V(_Double, >, Double_greaterThan) \ | 42 V(_Double, >, Double_greaterThan) \ |
43 V(_Double, >=, Double_greaterEqualThan) \ | 43 V(_Double, >=, Double_greaterEqualThan) \ |
44 V(_Double, <, Double_lessThan) \ | 44 V(_Double, <, Double_lessThan) \ |
45 V(_Double, <=, Double_lessEqualThan) \ | 45 V(_Double, <=, Double_lessEqualThan) \ |
46 V(_Double, ==, Double_equal) \ | 46 V(_Double, ==, Double_equal) \ |
47 V(_Double, +, Double_add) \ | 47 V(_Double, +, Double_add) \ |
48 V(_Double, -, Double_sub) \ | 48 V(_Double, -, Double_sub) \ |
49 V(_Double, *, Double_mul) \ | 49 V(_Double, *, Double_mul) \ |
50 V(_Double, /, Double_div) \ | 50 V(_Double, /, Double_div) \ |
| 51 V(_Double, get:isNaN, Double_getIsNaN) \ |
| 52 V(_Double, get:isNegative, Double_getIsNegative) \ |
51 V(_Double, toDouble, Double_toDouble) \ | 53 V(_Double, toDouble, Double_toDouble) \ |
52 V(_Double, _mulFromInteger, Double_mulFromInteger) \ | 54 V(_Double, _mulFromInteger, Double_mulFromInteger) \ |
53 V(_Double, .fromInteger, Double_fromInteger) \ | 55 V(_Double, .fromInteger, Double_fromInteger) \ |
54 V(_Double, isNaN, Double_isNaN) \ | |
55 V(_Double, isNegative, Double_isNegative) \ | |
56 V(_Double, toInt, Double_toInt) \ | 56 V(_Double, toInt, Double_toInt) \ |
57 V(_ObjectArray, ., ObjectArray_Allocate) \ | 57 V(_ObjectArray, ., ObjectArray_Allocate) \ |
58 V(_ObjectArray, get:length, Array_getLength) \ | 58 V(_ObjectArray, get:length, Array_getLength) \ |
59 V(_ObjectArray, [], Array_getIndexed) \ | 59 V(_ObjectArray, [], Array_getIndexed) \ |
60 V(_ObjectArray, []=, Array_setIndexed) \ | 60 V(_ObjectArray, []=, Array_setIndexed) \ |
61 V(_GrowableObjectArray, .fromObjectArray, GArray_Allocate) \ | 61 V(_GrowableObjectArray, .fromObjectArray, GArray_Allocate) \ |
62 V(_GrowableObjectArray, get:length, GrowableArray_getLength) \ | 62 V(_GrowableObjectArray, get:length, GrowableArray_getLength) \ |
63 V(_GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ | 63 V(_GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ |
64 V(_GrowableObjectArray, [], GrowableArray_getIndexed) \ | 64 V(_GrowableObjectArray, [], GrowableArray_getIndexed) \ |
65 V(_GrowableObjectArray, []=, GrowableArray_setIndexed) \ | 65 V(_GrowableObjectArray, []=, GrowableArray_setIndexed) \ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ | 110 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ |
111 static bool destination(Assembler* assembler); | 111 static bool destination(Assembler* assembler); |
112 | 112 |
113 INTRINSIC_LIST(DECLARE_FUNCTION) | 113 INTRINSIC_LIST(DECLARE_FUNCTION) |
114 #undef DECLARE_FUNCTION | 114 #undef DECLARE_FUNCTION |
115 }; | 115 }; |
116 | 116 |
117 } // namespace dart | 117 } // namespace dart |
118 | 118 |
119 #endif // VM_INTRINSIFIER_H_ | 119 #endif // VM_INTRINSIFIER_H_ |
OLD | NEW |