| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ | 105 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ |
| 106 V(AssertionError_throwNew, 2) \ | 106 V(AssertionError_throwNew, 2) \ |
| 107 V(TypeError_throwNew, 5) \ | 107 V(TypeError_throwNew, 5) \ |
| 108 V(FallThroughError_throwNew, 1) \ | 108 V(FallThroughError_throwNew, 1) \ |
| 109 V(AbstractClassInstantiationError_throwNew, 2) \ | 109 V(AbstractClassInstantiationError_throwNew, 2) \ |
| 110 V(Stacktrace_getFullStacktrace, 1) \ | 110 V(Stacktrace_getFullStacktrace, 1) \ |
| 111 V(Stacktrace_getStacktrace, 1) \ | 111 V(Stacktrace_getStacktrace, 1) \ |
| 112 V(Stacktrace_setupFullStacktrace, 1) \ | 112 V(Stacktrace_setupFullStacktrace, 1) \ |
| 113 V(Stopwatch_now, 0) \ | 113 V(Stopwatch_now, 0) \ |
| 114 V(Stopwatch_frequency, 0) \ | 114 V(Stopwatch_frequency, 0) \ |
| 115 V(Float32x4_fromDoubles, 5) \ | |
| 116 V(Float32x4_zero, 1) \ | |
| 117 V(Float32x4_add, 2) \ | |
| 118 V(Float32x4_negate, 1) \ | |
| 119 V(Float32x4_sub, 2) \ | |
| 120 V(Float32x4_mul, 2) \ | |
| 121 V(Float32x4_div, 2) \ | |
| 122 V(Float32x4_cmplt, 2) \ | |
| 123 V(Float32x4_cmplte, 2) \ | |
| 124 V(Float32x4_cmpgt, 2) \ | |
| 125 V(Float32x4_cmpgte, 2) \ | |
| 126 V(Float32x4_cmpequal, 2) \ | |
| 127 V(Float32x4_cmpnequal, 2) \ | |
| 128 V(Float32x4_scale, 2) \ | |
| 129 V(Float32x4_abs, 1) \ | |
| 130 V(Float32x4_clamp, 3) \ | |
| 131 V(Float32x4_getX, 1) \ | |
| 132 V(Float32x4_getY, 1) \ | |
| 133 V(Float32x4_getZ, 1) \ | |
| 134 V(Float32x4_getW, 1) \ | |
| 135 V(Float32x4_getXXXX, 1) \ | |
| 136 V(Float32x4_getYYYY, 1) \ | |
| 137 V(Float32x4_getZZZZ, 1) \ | |
| 138 V(Float32x4_getWWWW, 1) \ | |
| 139 V(Float32x4_setX, 2) \ | |
| 140 V(Float32x4_setY, 2) \ | |
| 141 V(Float32x4_setZ, 2) \ | |
| 142 V(Float32x4_setW, 2) \ | |
| 143 V(Float32x4_min, 2) \ | |
| 144 V(Float32x4_max, 2) \ | |
| 145 V(Float32x4_sqrt, 1) \ | |
| 146 V(Float32x4_reciprocal, 1) \ | |
| 147 V(Float32x4_reciprocalSqrt, 1) \ | |
| 148 V(Float32x4_toUint32x4, 1) \ | |
| 149 V(Uint32x4_fromInts, 5) \ | |
| 150 V(Uint32x4_fromBools, 5) \ | |
| 151 V(Uint32x4_or, 2) \ | |
| 152 V(Uint32x4_and, 2) \ | |
| 153 V(Uint32x4_xor, 2) \ | |
| 154 V(Uint32x4_getX, 1) \ | |
| 155 V(Uint32x4_getY, 1) \ | |
| 156 V(Uint32x4_getZ, 1) \ | |
| 157 V(Uint32x4_getW, 1) \ | |
| 158 V(Uint32x4_setX, 2) \ | |
| 159 V(Uint32x4_setY, 2) \ | |
| 160 V(Uint32x4_setZ, 2) \ | |
| 161 V(Uint32x4_setW, 2) \ | |
| 162 V(Uint32x4_getFlagX, 1) \ | |
| 163 V(Uint32x4_getFlagY, 1) \ | |
| 164 V(Uint32x4_getFlagZ, 1) \ | |
| 165 V(Uint32x4_getFlagW, 1) \ | |
| 166 V(Uint32x4_setFlagX, 2) \ | |
| 167 V(Uint32x4_setFlagY, 2) \ | |
| 168 V(Uint32x4_setFlagZ, 2) \ | |
| 169 V(Uint32x4_setFlagW, 2) \ | |
| 170 V(Uint32x4_select, 3) \ | |
| 171 V(Uint32x4_toFloat32x4, 1) \ | |
| 172 V(ByteArray_getLength, 1) \ | 115 V(ByteArray_getLength, 1) \ |
| 173 V(ByteArray_getInt8, 2) \ | 116 V(ByteArray_getInt8, 2) \ |
| 174 V(ByteArray_setInt8, 3) \ | 117 V(ByteArray_setInt8, 3) \ |
| 175 V(ByteArray_getUint8, 2) \ | 118 V(ByteArray_getUint8, 2) \ |
| 176 V(ByteArray_setUint8, 3) \ | 119 V(ByteArray_setUint8, 3) \ |
| 177 V(ByteArray_getInt16, 2) \ | 120 V(ByteArray_getInt16, 2) \ |
| 178 V(ByteArray_setInt16, 3) \ | 121 V(ByteArray_setInt16, 3) \ |
| 179 V(ByteArray_getUint16, 2) \ | 122 V(ByteArray_getUint16, 2) \ |
| 180 V(ByteArray_setUint16, 3) \ | 123 V(ByteArray_setUint16, 3) \ |
| 181 V(ByteArray_getInt32, 2) \ | 124 V(ByteArray_getInt32, 2) \ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 V(TypedData_Uint8Array_new, 1) \ | 212 V(TypedData_Uint8Array_new, 1) \ |
| 270 V(TypedData_Uint8ClampedArray_new, 1) \ | 213 V(TypedData_Uint8ClampedArray_new, 1) \ |
| 271 V(TypedData_Int16Array_new, 1) \ | 214 V(TypedData_Int16Array_new, 1) \ |
| 272 V(TypedData_Uint16Array_new, 1) \ | 215 V(TypedData_Uint16Array_new, 1) \ |
| 273 V(TypedData_Int32Array_new, 1) \ | 216 V(TypedData_Int32Array_new, 1) \ |
| 274 V(TypedData_Uint32Array_new, 1) \ | 217 V(TypedData_Uint32Array_new, 1) \ |
| 275 V(TypedData_Int64Array_new, 1) \ | 218 V(TypedData_Int64Array_new, 1) \ |
| 276 V(TypedData_Uint64Array_new, 1) \ | 219 V(TypedData_Uint64Array_new, 1) \ |
| 277 V(TypedData_Float32Array_new, 1) \ | 220 V(TypedData_Float32Array_new, 1) \ |
| 278 V(TypedData_Float64Array_new, 1) \ | 221 V(TypedData_Float64Array_new, 1) \ |
| 222 V(TypedData_Float32x4Array_new, 1) \ |
| 279 V(ExternalTypedData_Int8Array_new, 1) \ | 223 V(ExternalTypedData_Int8Array_new, 1) \ |
| 280 V(ExternalTypedData_Uint8Array_new, 1) \ | 224 V(ExternalTypedData_Uint8Array_new, 1) \ |
| 281 V(ExternalTypedData_Uint8ClampedArray_new, 1) \ | 225 V(ExternalTypedData_Uint8ClampedArray_new, 1) \ |
| 282 V(ExternalTypedData_Int16Array_new, 1) \ | 226 V(ExternalTypedData_Int16Array_new, 1) \ |
| 283 V(ExternalTypedData_Uint16Array_new, 1) \ | 227 V(ExternalTypedData_Uint16Array_new, 1) \ |
| 284 V(ExternalTypedData_Int32Array_new, 1) \ | 228 V(ExternalTypedData_Int32Array_new, 1) \ |
| 285 V(ExternalTypedData_Uint32Array_new, 1) \ | 229 V(ExternalTypedData_Uint32Array_new, 1) \ |
| 286 V(ExternalTypedData_Int64Array_new, 1) \ | 230 V(ExternalTypedData_Int64Array_new, 1) \ |
| 287 V(ExternalTypedData_Uint64Array_new, 1) \ | 231 V(ExternalTypedData_Uint64Array_new, 1) \ |
| 288 V(ExternalTypedData_Float32Array_new, 1) \ | 232 V(ExternalTypedData_Float32Array_new, 1) \ |
| 289 V(ExternalTypedData_Float64Array_new, 1) \ | 233 V(ExternalTypedData_Float64Array_new, 1) \ |
| 234 V(ExternalTypedData_Float32x4Array_new, 1) \ |
| 290 V(TypedData_length, 1) \ | 235 V(TypedData_length, 1) \ |
| 291 V(TypedData_GetInt8, 2) \ | 236 V(TypedData_GetInt8, 2) \ |
| 292 V(TypedData_SetInt8, 3) \ | 237 V(TypedData_SetInt8, 3) \ |
| 293 V(TypedData_GetUint8, 2) \ | 238 V(TypedData_GetUint8, 2) \ |
| 294 V(TypedData_SetUint8, 3) \ | 239 V(TypedData_SetUint8, 3) \ |
| 295 V(TypedData_GetInt16, 2) \ | 240 V(TypedData_GetInt16, 2) \ |
| 296 V(TypedData_SetInt16, 3) \ | 241 V(TypedData_SetInt16, 3) \ |
| 297 V(TypedData_GetUint16, 2) \ | 242 V(TypedData_GetUint16, 2) \ |
| 298 V(TypedData_SetUint16, 3) \ | 243 V(TypedData_SetUint16, 3) \ |
| 299 V(TypedData_GetInt32, 2) \ | 244 V(TypedData_GetInt32, 2) \ |
| 300 V(TypedData_SetInt32, 3) \ | 245 V(TypedData_SetInt32, 3) \ |
| 301 V(TypedData_GetUint32, 2) \ | 246 V(TypedData_GetUint32, 2) \ |
| 302 V(TypedData_SetUint32, 3) \ | 247 V(TypedData_SetUint32, 3) \ |
| 303 V(TypedData_GetInt64, 2) \ | 248 V(TypedData_GetInt64, 2) \ |
| 304 V(TypedData_SetInt64, 3) \ | 249 V(TypedData_SetInt64, 3) \ |
| 305 V(TypedData_GetUint64, 2) \ | 250 V(TypedData_GetUint64, 2) \ |
| 306 V(TypedData_SetUint64, 3) \ | 251 V(TypedData_SetUint64, 3) \ |
| 307 V(TypedData_GetFloat32, 2) \ | 252 V(TypedData_GetFloat32, 2) \ |
| 308 V(TypedData_SetFloat32, 3) \ | 253 V(TypedData_SetFloat32, 3) \ |
| 309 V(TypedData_GetFloat64, 2) \ | 254 V(TypedData_GetFloat64, 2) \ |
| 310 V(TypedData_SetFloat64, 3) \ | 255 V(TypedData_SetFloat64, 3) \ |
| 256 V(TypedData_GetFloat32x4, 2) \ |
| 257 V(TypedData_SetFloat32x4, 3) \ |
| 258 V(Float32x4_fromDoubles, 5) \ |
| 259 V(Float32x4_zero, 1) \ |
| 260 V(Float32x4_add, 2) \ |
| 261 V(Float32x4_negate, 1) \ |
| 262 V(Float32x4_sub, 2) \ |
| 263 V(Float32x4_mul, 2) \ |
| 264 V(Float32x4_div, 2) \ |
| 265 V(Float32x4_cmplt, 2) \ |
| 266 V(Float32x4_cmplte, 2) \ |
| 267 V(Float32x4_cmpgt, 2) \ |
| 268 V(Float32x4_cmpgte, 2) \ |
| 269 V(Float32x4_cmpequal, 2) \ |
| 270 V(Float32x4_cmpnequal, 2) \ |
| 271 V(Float32x4_scale, 2) \ |
| 272 V(Float32x4_abs, 1) \ |
| 273 V(Float32x4_clamp, 3) \ |
| 274 V(Float32x4_getX, 1) \ |
| 275 V(Float32x4_getY, 1) \ |
| 276 V(Float32x4_getZ, 1) \ |
| 277 V(Float32x4_getW, 1) \ |
| 278 V(Float32x4_getXXXX, 1) \ |
| 279 V(Float32x4_getYYYY, 1) \ |
| 280 V(Float32x4_getZZZZ, 1) \ |
| 281 V(Float32x4_getWWWW, 1) \ |
| 282 V(Float32x4_setX, 2) \ |
| 283 V(Float32x4_setY, 2) \ |
| 284 V(Float32x4_setZ, 2) \ |
| 285 V(Float32x4_setW, 2) \ |
| 286 V(Float32x4_min, 2) \ |
| 287 V(Float32x4_max, 2) \ |
| 288 V(Float32x4_sqrt, 1) \ |
| 289 V(Float32x4_reciprocal, 1) \ |
| 290 V(Float32x4_reciprocalSqrt, 1) \ |
| 291 V(Float32x4_toUint32x4, 1) \ |
| 292 V(Uint32x4_fromInts, 5) \ |
| 293 V(Uint32x4_fromBools, 5) \ |
| 294 V(Uint32x4_or, 2) \ |
| 295 V(Uint32x4_and, 2) \ |
| 296 V(Uint32x4_xor, 2) \ |
| 297 V(Uint32x4_getX, 1) \ |
| 298 V(Uint32x4_getY, 1) \ |
| 299 V(Uint32x4_getZ, 1) \ |
| 300 V(Uint32x4_getW, 1) \ |
| 301 V(Uint32x4_setX, 2) \ |
| 302 V(Uint32x4_setY, 2) \ |
| 303 V(Uint32x4_setZ, 2) \ |
| 304 V(Uint32x4_setW, 2) \ |
| 305 V(Uint32x4_getFlagX, 1) \ |
| 306 V(Uint32x4_getFlagY, 1) \ |
| 307 V(Uint32x4_getFlagZ, 1) \ |
| 308 V(Uint32x4_getFlagW, 1) \ |
| 309 V(Uint32x4_setFlagX, 2) \ |
| 310 V(Uint32x4_setFlagY, 2) \ |
| 311 V(Uint32x4_setFlagZ, 2) \ |
| 312 V(Uint32x4_setFlagW, 2) \ |
| 313 V(Uint32x4_select, 3) \ |
| 314 V(Uint32x4_toFloat32x4, 1) \ |
| 311 V(isolate_getPortInternal, 0) \ | 315 V(isolate_getPortInternal, 0) \ |
| 312 V(isolate_spawnFunction, 2) \ | 316 V(isolate_spawnFunction, 2) \ |
| 313 V(isolate_spawnUri, 1) \ | 317 V(isolate_spawnUri, 1) \ |
| 314 V(Mirrors_isLocalPort, 1) \ | 318 V(Mirrors_isLocalPort, 1) \ |
| 315 V(Mirrors_makeLocalInstanceMirror, 1) \ | 319 V(Mirrors_makeLocalInstanceMirror, 1) \ |
| 316 V(Mirrors_makeLocalMirrorSystem, 0) \ | 320 V(Mirrors_makeLocalMirrorSystem, 0) \ |
| 317 V(LocalObjectMirrorImpl_invoke, 3) \ | 321 V(LocalObjectMirrorImpl_invoke, 3) \ |
| 318 V(LocalObjectMirrorImpl_getField, 2) \ | 322 V(LocalObjectMirrorImpl_getField, 2) \ |
| 319 V(LocalObjectMirrorImpl_setField, 3) \ | 323 V(LocalObjectMirrorImpl_setField, 3) \ |
| 320 V(LocalClosureMirrorImpl_apply, 2) \ | 324 V(LocalClosureMirrorImpl_apply, 2) \ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 339 static void DN_##name(Dart_NativeArguments args); | 343 static void DN_##name(Dart_NativeArguments args); |
| 340 | 344 |
| 341 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 345 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 342 | 346 |
| 343 #undef DECLARE_BOOTSTRAP_NATIVE | 347 #undef DECLARE_BOOTSTRAP_NATIVE |
| 344 }; | 348 }; |
| 345 | 349 |
| 346 } // namespace dart | 350 } // namespace dart |
| 347 | 351 |
| 348 #endif // VM_BOOTSTRAP_NATIVES_H_ | 352 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |