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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 V(_Uint64Array, ., TypedData_Uint64Array_factory, 767338823) \ | 129 V(_Uint64Array, ., TypedData_Uint64Array_factory, 767338823) \ |
130 V(_Float32Array, ., TypedData_Float32Array_factory, 1721244151) \ | 130 V(_Float32Array, ., TypedData_Float32Array_factory, 1721244151) \ |
131 V(_Float64Array, ., TypedData_Float64Array_factory, 1599078532) \ | 131 V(_Float64Array, ., TypedData_Float64Array_factory, 1599078532) \ |
132 V(_Float32x4Array, ., TypedData_Float32x4Array_factory, 879975401) \ | 132 V(_Float32x4Array, ., TypedData_Float32x4Array_factory, 879975401) \ |
133 V(_Int32x4Array, ., TypedData_Int32x4Array_factory, 924582681) \ | 133 V(_Int32x4Array, ., TypedData_Int32x4Array_factory, 924582681) \ |
134 V(_Float64x2Array, ., TypedData_Float64x2Array_factory, 1654170890) \ | 134 V(_Float64x2Array, ., TypedData_Float64x2Array_factory, 1654170890) \ |
135 | 135 |
136 | 136 |
137 #define PROFILER_LIB_INTRINSIC_LIST(V) \ | 137 #define PROFILER_LIB_INTRINSIC_LIST(V) \ |
138 V(_UserTag, makeCurrent, UserTag_makeCurrent, 1038211262) \ | 138 V(_UserTag, makeCurrent, UserTag_makeCurrent, 1038211262) \ |
| 139 V(::, _getDefaultTag, UserTag_defaultTag, 624228668) \ |
139 V(::, _getCurrentTag, Profiler_getCurrentTag, 1559793589) \ | 140 V(::, _getCurrentTag, Profiler_getCurrentTag, 1559793589) \ |
140 V(::, _clearCurrentTag, Profiler_clearCurrentTag, 874694572) \ | |
141 | 141 |
142 // TODO(srdjan): Implement _FixedSizeArrayIterator, get:current and | 142 // TODO(srdjan): Implement _FixedSizeArrayIterator, get:current and |
143 // _FixedSizeArrayIterator, moveNext. | 143 // _FixedSizeArrayIterator, moveNext. |
144 | 144 |
145 // Forward declarations. | 145 // Forward declarations. |
146 class Assembler; | 146 class Assembler; |
147 class Function; | 147 class Function; |
148 | 148 |
149 class Intrinsifier : public AllStatic { | 149 class Intrinsifier : public AllStatic { |
150 public: | 150 public: |
(...skipping 13 matching lines...) Expand all Loading... |
164 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 164 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
165 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 165 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
166 PROFILER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) | 166 PROFILER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) |
167 | 167 |
168 #undef DECLARE_FUNCTION | 168 #undef DECLARE_FUNCTION |
169 }; | 169 }; |
170 | 170 |
171 } // namespace dart | 171 } // namespace dart |
172 | 172 |
173 #endif // VM_INTRINSIFIER_H_ | 173 #endif // VM_INTRINSIFIER_H_ |
OLD | NEW |