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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 V(_Double, +, Double_add) \ | 45 V(_Double, +, Double_add) \ |
46 V(_Double, -, Double_sub) \ | 46 V(_Double, -, Double_sub) \ |
47 V(_Double, *, Double_mul) \ | 47 V(_Double, *, Double_mul) \ |
48 V(_Double, /, Double_div) \ | 48 V(_Double, /, Double_div) \ |
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, _Double.fromInteger, Double_fromInteger) \ | 51 V(_Double, _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., ObjectArray_Allocate) \ | 55 V(_ObjectArray, _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, GrowableObjectArray.fromObjectArray, GArray_Allocate) \ | 59 V(_GrowableObjectArray, \ |
60 V(GrowableObjectArray, get:length, GrowableArray_getLength) \ | 60 _GrowableObjectArray.fromObjectArray, \ |
61 V(GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ | 61 GArray_Allocate) \ |
62 V(GrowableObjectArray, [], GrowableArray_getIndexed) \ | 62 V(_GrowableObjectArray, get:length, GrowableArray_getLength) \ |
63 V(GrowableObjectArray, []=, GrowableArray_setIndexed) \ | 63 V(_GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ |
64 V(GrowableObjectArray, _setLength, GrowableArray_setLength) \ | 64 V(_GrowableObjectArray, [], GrowableArray_getIndexed) \ |
65 V(GrowableObjectArray, _setData, GrowableArray_setData) \ | 65 V(_GrowableObjectArray, []=, GrowableArray_setIndexed) \ |
66 V(GrowableObjectArray, add, GrowableArray_add) \ | 66 V(_GrowableObjectArray, _setLength, GrowableArray_setLength) \ |
67 V(ImmutableArray, [], ImmutableArray_getIndexed) \ | 67 V(_GrowableObjectArray, _setData, GrowableArray_setData) \ |
68 V(ImmutableArray, get:length, ImmutableArray_getLength) \ | 68 V(_GrowableObjectArray, add, GrowableArray_add) \ |
| 69 V(_ImmutableArray, [], ImmutableArray_getIndexed) \ |
| 70 V(_ImmutableArray, get:length, ImmutableArray_getLength) \ |
69 V(::, sqrt, Math_sqrt) \ | 71 V(::, sqrt, Math_sqrt) \ |
70 V(::, sin, Math_sin) \ | 72 V(::, sin, Math_sin) \ |
71 V(::, cos, Math_cos) \ | 73 V(::, cos, Math_cos) \ |
72 V(Object, ==, Object_equal) \ | 74 V(Object, ==, Object_equal) \ |
73 V(FixedSizeArrayIterator, next, FixedSizeArrayIterator_next) \ | 75 V(_FixedSizeArrayIterator, next, FixedSizeArrayIterator_next) \ |
74 V(FixedSizeArrayIterator, hasNext, FixedSizeArrayIterator_hasNext) \ | 76 V(_FixedSizeArrayIterator, hasNext, FixedSizeArrayIterator_hasNext) \ |
75 V(StringBase, get:length, String_getLength) \ | 77 V(StringBase, get:length, String_getLength) \ |
76 V(StringBase, charCodeAt, String_charCodeAt) \ | 78 V(StringBase, charCodeAt, String_charCodeAt) \ |
77 V(StringBase, hashCode, String_hashCode) \ | 79 V(StringBase, hashCode, String_hashCode) \ |
78 V(StringBase, isEmpty, String_isEmpty) \ | 80 V(StringBase, isEmpty, String_isEmpty) \ |
79 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \ | 81 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \ |
80 V(_Int8Array, [], Int8Array_getIndexed) \ | 82 V(_Int8Array, [], Int8Array_getIndexed) \ |
81 V(_Uint8Array, [], Uint8Array_getIndexed) \ | 83 V(_Uint8Array, [], Uint8Array_getIndexed) \ |
82 V(_Int16Array, [], Int16Array_getIndexed) \ | 84 V(_Int16Array, [], Int16Array_getIndexed) \ |
83 V(_Uint16Array, [], Uint16Array_getIndexed) \ | 85 V(_Uint16Array, [], Uint16Array_getIndexed) \ |
84 V(_Int32Array, [], Int32Array_getIndexed) \ | 86 V(_Int32Array, [], Int32Array_getIndexed) \ |
(...skipping 15 matching lines...) Expand all Loading... |
100 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ | 102 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ |
101 static bool destination(Assembler* assembler); | 103 static bool destination(Assembler* assembler); |
102 | 104 |
103 INTRINSIC_LIST(DECLARE_FUNCTION) | 105 INTRINSIC_LIST(DECLARE_FUNCTION) |
104 #undef DECLARE_FUNCTION | 106 #undef DECLARE_FUNCTION |
105 }; | 107 }; |
106 | 108 |
107 } // namespace dart | 109 } // namespace dart |
108 | 110 |
109 #endif // VM_INTRINSIFIER_H_ | 111 #endif // VM_INTRINSIFIER_H_ |
OLD | NEW |