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 | 4 |
5 #ifndef VM_BOOTSTRAP_NATIVES_H_ | 5 #ifndef VM_BOOTSTRAP_NATIVES_H_ |
6 #define VM_BOOTSTRAP_NATIVES_H_ | 6 #define VM_BOOTSTRAP_NATIVES_H_ |
7 | 7 |
8 #include "vm/native_entry.h" | 8 #include "vm/native_entry.h" |
9 | 9 |
10 // bootstrap dart natives used in the core dart library. | 10 // bootstrap dart natives used in the core dart library. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 V(TypedData_Uint8ClampedArray_new, 1) \ | 138 V(TypedData_Uint8ClampedArray_new, 1) \ |
139 V(TypedData_Int16Array_new, 1) \ | 139 V(TypedData_Int16Array_new, 1) \ |
140 V(TypedData_Uint16Array_new, 1) \ | 140 V(TypedData_Uint16Array_new, 1) \ |
141 V(TypedData_Int32Array_new, 1) \ | 141 V(TypedData_Int32Array_new, 1) \ |
142 V(TypedData_Uint32Array_new, 1) \ | 142 V(TypedData_Uint32Array_new, 1) \ |
143 V(TypedData_Int64Array_new, 1) \ | 143 V(TypedData_Int64Array_new, 1) \ |
144 V(TypedData_Uint64Array_new, 1) \ | 144 V(TypedData_Uint64Array_new, 1) \ |
145 V(TypedData_Float32Array_new, 1) \ | 145 V(TypedData_Float32Array_new, 1) \ |
146 V(TypedData_Float64Array_new, 1) \ | 146 V(TypedData_Float64Array_new, 1) \ |
147 V(TypedData_Float32x4Array_new, 1) \ | 147 V(TypedData_Float32x4Array_new, 1) \ |
148 V(TypedData_Int32x4Array_new, 1) \ | 148 V(TypedData_Int32x4Array_new, 1) \ |
149 V(ExternalTypedData_Int8Array_new, 1) \ | 149 V(ExternalTypedData_Int8Array_new, 1) \ |
150 V(ExternalTypedData_Uint8Array_new, 1) \ | 150 V(ExternalTypedData_Uint8Array_new, 1) \ |
151 V(ExternalTypedData_Uint8ClampedArray_new, 1) \ | 151 V(ExternalTypedData_Uint8ClampedArray_new, 1) \ |
152 V(ExternalTypedData_Int16Array_new, 1) \ | 152 V(ExternalTypedData_Int16Array_new, 1) \ |
153 V(ExternalTypedData_Uint16Array_new, 1) \ | 153 V(ExternalTypedData_Uint16Array_new, 1) \ |
154 V(ExternalTypedData_Int32Array_new, 1) \ | 154 V(ExternalTypedData_Int32Array_new, 1) \ |
155 V(ExternalTypedData_Uint32Array_new, 1) \ | 155 V(ExternalTypedData_Uint32Array_new, 1) \ |
156 V(ExternalTypedData_Int64Array_new, 1) \ | 156 V(ExternalTypedData_Int64Array_new, 1) \ |
157 V(ExternalTypedData_Uint64Array_new, 1) \ | 157 V(ExternalTypedData_Uint64Array_new, 1) \ |
158 V(ExternalTypedData_Float32Array_new, 1) \ | 158 V(ExternalTypedData_Float32Array_new, 1) \ |
159 V(ExternalTypedData_Float64Array_new, 1) \ | 159 V(ExternalTypedData_Float64Array_new, 1) \ |
160 V(ExternalTypedData_Float32x4Array_new, 1) \ | 160 V(ExternalTypedData_Float32x4Array_new, 1) \ |
161 V(ExternalTypedData_Int32x4Array_new, 1) \ | 161 V(ExternalTypedData_Int32x4Array_new, 1) \ |
162 V(TypedData_length, 1) \ | 162 V(TypedData_length, 1) \ |
163 V(TypedData_setRange, 5) \ | 163 V(TypedData_setRange, 5) \ |
164 V(TypedData_GetInt8, 2) \ | 164 V(TypedData_GetInt8, 2) \ |
165 V(TypedData_SetInt8, 3) \ | 165 V(TypedData_SetInt8, 3) \ |
166 V(TypedData_GetUint8, 2) \ | 166 V(TypedData_GetUint8, 2) \ |
167 V(TypedData_SetUint8, 3) \ | 167 V(TypedData_SetUint8, 3) \ |
168 V(TypedData_GetInt16, 2) \ | 168 V(TypedData_GetInt16, 2) \ |
169 V(TypedData_SetInt16, 3) \ | 169 V(TypedData_SetInt16, 3) \ |
170 V(TypedData_GetUint16, 2) \ | 170 V(TypedData_GetUint16, 2) \ |
171 V(TypedData_SetUint16, 3) \ | 171 V(TypedData_SetUint16, 3) \ |
172 V(TypedData_GetInt32, 2) \ | 172 V(TypedData_GetInt32, 2) \ |
173 V(TypedData_SetInt32, 3) \ | 173 V(TypedData_SetInt32, 3) \ |
174 V(TypedData_GetUint32, 2) \ | 174 V(TypedData_GetUint32, 2) \ |
175 V(TypedData_SetUint32, 3) \ | 175 V(TypedData_SetUint32, 3) \ |
176 V(TypedData_GetInt64, 2) \ | 176 V(TypedData_GetInt64, 2) \ |
177 V(TypedData_SetInt64, 3) \ | 177 V(TypedData_SetInt64, 3) \ |
178 V(TypedData_GetUint64, 2) \ | 178 V(TypedData_GetUint64, 2) \ |
179 V(TypedData_SetUint64, 3) \ | 179 V(TypedData_SetUint64, 3) \ |
180 V(TypedData_GetFloat32, 2) \ | 180 V(TypedData_GetFloat32, 2) \ |
181 V(TypedData_SetFloat32, 3) \ | 181 V(TypedData_SetFloat32, 3) \ |
182 V(TypedData_GetFloat64, 2) \ | 182 V(TypedData_GetFloat64, 2) \ |
183 V(TypedData_SetFloat64, 3) \ | 183 V(TypedData_SetFloat64, 3) \ |
184 V(TypedData_GetFloat32x4, 2) \ | 184 V(TypedData_GetFloat32x4, 2) \ |
185 V(TypedData_SetFloat32x4, 3) \ | 185 V(TypedData_SetFloat32x4, 3) \ |
186 V(TypedData_GetInt32x4, 2) \ | 186 V(TypedData_GetInt32x4, 2) \ |
187 V(TypedData_SetInt32x4, 3) \ | 187 V(TypedData_SetInt32x4, 3) \ |
188 V(ByteData_ToEndianInt16, 2) \ | 188 V(ByteData_ToEndianInt16, 2) \ |
189 V(ByteData_ToEndianUint16, 2) \ | 189 V(ByteData_ToEndianUint16, 2) \ |
190 V(ByteData_ToEndianInt32, 2) \ | 190 V(ByteData_ToEndianInt32, 2) \ |
191 V(ByteData_ToEndianUint32, 2) \ | 191 V(ByteData_ToEndianUint32, 2) \ |
192 V(ByteData_ToEndianInt64, 2) \ | 192 V(ByteData_ToEndianInt64, 2) \ |
193 V(ByteData_ToEndianUint64, 2) \ | 193 V(ByteData_ToEndianUint64, 2) \ |
194 V(ByteData_ToEndianFloat32, 2) \ | 194 V(ByteData_ToEndianFloat32, 2) \ |
195 V(ByteData_ToEndianFloat64, 2) \ | 195 V(ByteData_ToEndianFloat64, 2) \ |
196 V(Float32x4_fromDoubles, 5) \ | 196 V(Float32x4_fromDoubles, 5) \ |
197 V(Float32x4_splat, 2) \ | 197 V(Float32x4_splat, 2) \ |
198 V(Float32x4_fromInt32x4Bits, 2) \ | 198 V(Float32x4_fromInt32x4Bits, 2) \ |
199 V(Float32x4_zero, 1) \ | 199 V(Float32x4_zero, 1) \ |
200 V(Float32x4_add, 2) \ | 200 V(Float32x4_add, 2) \ |
201 V(Float32x4_negate, 1) \ | 201 V(Float32x4_negate, 1) \ |
202 V(Float32x4_sub, 2) \ | 202 V(Float32x4_sub, 2) \ |
203 V(Float32x4_mul, 2) \ | 203 V(Float32x4_mul, 2) \ |
204 V(Float32x4_div, 2) \ | 204 V(Float32x4_div, 2) \ |
205 V(Float32x4_cmplt, 2) \ | 205 V(Float32x4_cmplt, 2) \ |
206 V(Float32x4_cmplte, 2) \ | 206 V(Float32x4_cmplte, 2) \ |
207 V(Float32x4_cmpgt, 2) \ | 207 V(Float32x4_cmpgt, 2) \ |
208 V(Float32x4_cmpgte, 2) \ | 208 V(Float32x4_cmpgte, 2) \ |
(...skipping 11 matching lines...) Expand all Loading... |
220 V(Float32x4_shuffleMix, 3) \ | 220 V(Float32x4_shuffleMix, 3) \ |
221 V(Float32x4_setX, 2) \ | 221 V(Float32x4_setX, 2) \ |
222 V(Float32x4_setY, 2) \ | 222 V(Float32x4_setY, 2) \ |
223 V(Float32x4_setZ, 2) \ | 223 V(Float32x4_setZ, 2) \ |
224 V(Float32x4_setW, 2) \ | 224 V(Float32x4_setW, 2) \ |
225 V(Float32x4_min, 2) \ | 225 V(Float32x4_min, 2) \ |
226 V(Float32x4_max, 2) \ | 226 V(Float32x4_max, 2) \ |
227 V(Float32x4_sqrt, 1) \ | 227 V(Float32x4_sqrt, 1) \ |
228 V(Float32x4_reciprocal, 1) \ | 228 V(Float32x4_reciprocal, 1) \ |
229 V(Float32x4_reciprocalSqrt, 1) \ | 229 V(Float32x4_reciprocalSqrt, 1) \ |
230 V(Int32x4_fromInts, 5) \ | 230 V(Int32x4_fromInts, 5) \ |
231 V(Int32x4_fromBools, 5) \ | 231 V(Int32x4_fromBools, 5) \ |
232 V(Int32x4_fromFloat32x4Bits, 2) \ | 232 V(Int32x4_fromFloat32x4Bits, 2) \ |
233 V(Int32x4_or, 2) \ | 233 V(Int32x4_or, 2) \ |
234 V(Int32x4_and, 2) \ | 234 V(Int32x4_and, 2) \ |
235 V(Int32x4_xor, 2) \ | 235 V(Int32x4_xor, 2) \ |
236 V(Int32x4_add, 2) \ | 236 V(Int32x4_add, 2) \ |
237 V(Int32x4_sub, 2) \ | 237 V(Int32x4_sub, 2) \ |
238 V(Int32x4_getX, 1) \ | 238 V(Int32x4_getX, 1) \ |
239 V(Int32x4_getY, 1) \ | 239 V(Int32x4_getY, 1) \ |
240 V(Int32x4_getZ, 1) \ | 240 V(Int32x4_getZ, 1) \ |
241 V(Int32x4_getW, 1) \ | 241 V(Int32x4_getW, 1) \ |
242 V(Int32x4_setX, 2) \ | 242 V(Int32x4_setX, 2) \ |
243 V(Int32x4_setY, 2) \ | 243 V(Int32x4_setY, 2) \ |
244 V(Int32x4_setZ, 2) \ | 244 V(Int32x4_setZ, 2) \ |
245 V(Int32x4_setW, 2) \ | 245 V(Int32x4_setW, 2) \ |
246 V(Int32x4_getSignMask, 1) \ | 246 V(Int32x4_getSignMask, 1) \ |
247 V(Int32x4_shuffle, 2) \ | 247 V(Int32x4_shuffle, 2) \ |
248 V(Int32x4_shuffleMix, 3) \ | 248 V(Int32x4_shuffleMix, 3) \ |
249 V(Int32x4_getFlagX, 1) \ | 249 V(Int32x4_getFlagX, 1) \ |
250 V(Int32x4_getFlagY, 1) \ | 250 V(Int32x4_getFlagY, 1) \ |
251 V(Int32x4_getFlagZ, 1) \ | 251 V(Int32x4_getFlagZ, 1) \ |
252 V(Int32x4_getFlagW, 1) \ | 252 V(Int32x4_getFlagW, 1) \ |
253 V(Int32x4_setFlagX, 2) \ | 253 V(Int32x4_setFlagX, 2) \ |
254 V(Int32x4_setFlagY, 2) \ | 254 V(Int32x4_setFlagY, 2) \ |
255 V(Int32x4_setFlagZ, 2) \ | 255 V(Int32x4_setFlagZ, 2) \ |
256 V(Int32x4_setFlagW, 2) \ | 256 V(Int32x4_setFlagW, 2) \ |
257 V(Int32x4_select, 3) \ | 257 V(Int32x4_select, 3) \ |
258 V(Isolate_mainPort, 0) \ | 258 V(Isolate_mainPort, 0) \ |
259 V(Isolate_spawnFunction, 1) \ | 259 V(Isolate_spawnFunction, 1) \ |
260 V(Isolate_spawnUri, 1) \ | 260 V(Isolate_spawnUri, 1) \ |
261 V(Mirrors_makeLocalClassMirror, 1) \ | 261 V(Mirrors_makeLocalClassMirror, 1) \ |
262 V(Mirrors_makeLocalTypeMirror, 1) \ | 262 V(Mirrors_makeLocalTypeMirror, 1) \ |
263 V(Mirrors_makeLocalMirrorSystem, 0) \ | 263 V(Mirrors_makeLocalMirrorSystem, 0) \ |
264 V(Mirrors_mangleName, 2) \ | 264 V(Mirrors_mangleName, 2) \ |
265 V(MirrorReference_equals, 2) \ | 265 V(MirrorReference_equals, 2) \ |
266 V(InstanceMirror_invoke, 5) \ | 266 V(InstanceMirror_invoke, 5) \ |
267 V(InstanceMirror_invokeGetter, 3) \ | 267 V(InstanceMirror_invokeGetter, 3) \ |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 static void DN_##name(Dart_NativeArguments args); | 326 static void DN_##name(Dart_NativeArguments args); |
327 | 327 |
328 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 328 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
329 | 329 |
330 #undef DECLARE_BOOTSTRAP_NATIVE | 330 #undef DECLARE_BOOTSTRAP_NATIVE |
331 }; | 331 }; |
332 | 332 |
333 } // namespace dart | 333 } // namespace dart |
334 | 334 |
335 #endif // VM_BOOTSTRAP_NATIVES_H_ | 335 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |