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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 V(ObjectArray, get:length, Array_getLength) \ | 55 V(ObjectArray, get:length, Array_getLength) \ |
56 V(ObjectArray, [], Array_getIndexed) \ | 56 V(ObjectArray, [], Array_getIndexed) \ |
57 V(ObjectArray, []=, Array_setIndexed) \ | 57 V(ObjectArray, []=, Array_setIndexed) \ |
58 V(GrowableObjectArray, GrowableObjectArray.fromObjectArray, GArray_Allocate) \ | 58 V(GrowableObjectArray, GrowableObjectArray.fromObjectArray, GArray_Allocate) \ |
59 V(GrowableObjectArray, get:length, GrowableArray_getLength) \ | 59 V(GrowableObjectArray, get:length, GrowableArray_getLength) \ |
60 V(GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ | 60 V(GrowableObjectArray, get:capacity, GrowableArray_getCapacity) \ |
61 V(GrowableObjectArray, [], GrowableArray_getIndexed) \ | 61 V(GrowableObjectArray, [], GrowableArray_getIndexed) \ |
62 V(GrowableObjectArray, []=, GrowableArray_setIndexed) \ | 62 V(GrowableObjectArray, []=, GrowableArray_setIndexed) \ |
63 V(GrowableObjectArray, _setLength, GrowableArray_setLength) \ | 63 V(GrowableObjectArray, _setLength, GrowableArray_setLength) \ |
64 V(GrowableObjectArray, set:data, GrowableArray_setData) \ | 64 V(GrowableObjectArray, set:data, GrowableArray_setData) \ |
65 V(_ByteArrayBase, get:length, ByteArrayBase_getLength) \ | |
66 V(_ByteArrayBase, [], ByteArrayBase_getIndexed) \ | |
67 V(ImmutableArray, [], ImmutableArray_getIndexed) \ | 65 V(ImmutableArray, [], ImmutableArray_getIndexed) \ |
68 V(ImmutableArray, get:length, ImmutableArray_getLength) \ | 66 V(ImmutableArray, get:length, ImmutableArray_getLength) \ |
69 V(Math, sqrt, Math_sqrt) \ | 67 V(Math, sqrt, Math_sqrt) \ |
70 V(Math, sin, Math_sin) \ | 68 V(Math, sin, Math_sin) \ |
71 V(Math, cos, Math_cos) \ | 69 V(Math, cos, Math_cos) \ |
72 V(Object, ==, Object_equal) \ | 70 V(Object, ==, Object_equal) \ |
73 V(FixedSizeArrayIterator, next, FixedSizeArrayIterator_next) \ | 71 V(FixedSizeArrayIterator, next, FixedSizeArrayIterator_next) \ |
74 V(FixedSizeArrayIterator, hasNext, FixedSizeArrayIterator_hasNext) \ | 72 V(FixedSizeArrayIterator, hasNext, FixedSizeArrayIterator_hasNext) \ |
75 V(StringBase, get:length, String_getLength) \ | 73 V(StringBase, get:length, String_getLength) \ |
76 V(StringBase, charCodeAt, String_charCodeAt) \ | 74 V(StringBase, charCodeAt, String_charCodeAt) \ |
(...skipping 15 matching lines...) Expand all Loading... |
92 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ | 90 #define DECLARE_FUNCTION(test_class_name, test_function_name, destination) \ |
93 static bool destination(Assembler* assembler); | 91 static bool destination(Assembler* assembler); |
94 | 92 |
95 INTRINSIC_LIST(DECLARE_FUNCTION) | 93 INTRINSIC_LIST(DECLARE_FUNCTION) |
96 #undef DECLARE_FUNCTION | 94 #undef DECLARE_FUNCTION |
97 }; | 95 }; |
98 | 96 |
99 } // namespace dart | 97 } // namespace dart |
100 | 98 |
101 #endif // VM_INTRINSIFIER_H_ | 99 #endif // VM_INTRINSIFIER_H_ |
OLD | NEW |