| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 V(DateNatives_currentTimeMillis, 0) \ | 101 V(DateNatives_currentTimeMillis, 0) \ |
| 102 V(DateNatives_timeZoneName, 1) \ | 102 V(DateNatives_timeZoneName, 1) \ |
| 103 V(DateNatives_timeZoneOffsetInSeconds, 1) \ | 103 V(DateNatives_timeZoneOffsetInSeconds, 1) \ |
| 104 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ | 104 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ |
| 105 V(AssertionError_throwNew, 2) \ | 105 V(AssertionError_throwNew, 2) \ |
| 106 V(TypeError_throwNew, 5) \ | 106 V(TypeError_throwNew, 5) \ |
| 107 V(FallThroughError_throwNew, 1) \ | 107 V(FallThroughError_throwNew, 1) \ |
| 108 V(AbstractClassInstantiationError_throwNew, 2) \ | 108 V(AbstractClassInstantiationError_throwNew, 2) \ |
| 109 V(Stopwatch_now, 0) \ | 109 V(Stopwatch_now, 0) \ |
| 110 V(Stopwatch_frequency, 0) \ | 110 V(Stopwatch_frequency, 0) \ |
| 111 V(Simd128Float32_fromDoubles, 5) \ |
| 112 V(Simd128Float32_zero, 1) \ |
| 113 V(Simd128Float32_add, 2) \ |
| 114 V(Simd128Float32_negate, 1) \ |
| 115 V(Simd128Float32_sub, 2) \ |
| 116 V(Simd128Float32_mul, 2) \ |
| 117 V(Simd128Float32_div, 2) \ |
| 118 V(Simd128Float32_cmplt, 2) \ |
| 119 V(Simd128Float32_cmplte, 2) \ |
| 120 V(Simd128Float32_cmpgt, 2) \ |
| 121 V(Simd128Float32_cmpgte, 2) \ |
| 122 V(Simd128Float32_cmpequal, 2) \ |
| 123 V(Simd128Float32_scale, 2) \ |
| 124 V(Simd128Float32_abs, 1) \ |
| 125 V(Simd128Float32_clamp, 3) \ |
| 126 V(Simd128Float32_getX, 1) \ |
| 127 V(Simd128Float32_getY, 1) \ |
| 128 V(Simd128Float32_getZ, 1) \ |
| 129 V(Simd128Float32_getW, 1) \ |
| 130 V(Simd128Float32_getXXXX, 1) \ |
| 131 V(Simd128Float32_getYYYY, 1) \ |
| 132 V(Simd128Float32_getZZZZ, 1) \ |
| 133 V(Simd128Float32_getWWWW, 1) \ |
| 134 V(Simd128Float32_setX, 2) \ |
| 135 V(Simd128Float32_setY, 2) \ |
| 136 V(Simd128Float32_setZ, 2) \ |
| 137 V(Simd128Float32_setW, 2) \ |
| 138 V(Simd128Float32_min, 2) \ |
| 139 V(Simd128Float32_max, 2) \ |
| 140 V(Simd128Float32_sqrt, 1) \ |
| 141 V(Simd128Float32_reciprocal, 1) \ |
| 142 V(Simd128Float32_reciprocalSqrt, 1) \ |
| 143 V(Simd128Float32_toSimd128Mask, 1) \ |
| 144 V(Simd128Mask_fromInts, 5) \ |
| 145 V(Simd128Mask_fromBools, 5) \ |
| 146 V(Simd128Mask_or, 2) \ |
| 147 V(Simd128Mask_and, 2) \ |
| 148 V(Simd128Mask_xor, 2) \ |
| 149 V(Simd128Mask_getX, 1) \ |
| 150 V(Simd128Mask_getY, 1) \ |
| 151 V(Simd128Mask_getZ, 1) \ |
| 152 V(Simd128Mask_getW, 1) \ |
| 153 V(Simd128Mask_setX, 2) \ |
| 154 V(Simd128Mask_setY, 2) \ |
| 155 V(Simd128Mask_setZ, 2) \ |
| 156 V(Simd128Mask_setW, 2) \ |
| 157 V(Simd128Mask_getFlagX, 1) \ |
| 158 V(Simd128Mask_getFlagY, 1) \ |
| 159 V(Simd128Mask_getFlagZ, 1) \ |
| 160 V(Simd128Mask_getFlagW, 1) \ |
| 161 V(Simd128Mask_setFlagX, 2) \ |
| 162 V(Simd128Mask_setFlagY, 2) \ |
| 163 V(Simd128Mask_setFlagZ, 2) \ |
| 164 V(Simd128Mask_setFlagW, 2) \ |
| 165 V(Simd128Mask_select, 3) \ |
| 166 V(Simd128Mask_toSimd128Float32, 1) \ |
| 111 V(ByteArray_getLength, 1) \ | 167 V(ByteArray_getLength, 1) \ |
| 112 V(ByteArray_getInt8, 2) \ | 168 V(ByteArray_getInt8, 2) \ |
| 113 V(ByteArray_setInt8, 3) \ | 169 V(ByteArray_setInt8, 3) \ |
| 114 V(ByteArray_getUint8, 2) \ | 170 V(ByteArray_getUint8, 2) \ |
| 115 V(ByteArray_setUint8, 3) \ | 171 V(ByteArray_setUint8, 3) \ |
| 116 V(ByteArray_getInt16, 2) \ | 172 V(ByteArray_getInt16, 2) \ |
| 117 V(ByteArray_setInt16, 3) \ | 173 V(ByteArray_setInt16, 3) \ |
| 118 V(ByteArray_getUint16, 2) \ | 174 V(ByteArray_getUint16, 2) \ |
| 119 V(ByteArray_setUint16, 3) \ | 175 V(ByteArray_setUint16, 3) \ |
| 120 V(ByteArray_getInt32, 2) \ | 176 V(ByteArray_getInt32, 2) \ |
| 121 V(ByteArray_setInt32, 3) \ | 177 V(ByteArray_setInt32, 3) \ |
| 122 V(ByteArray_getUint32, 2) \ | 178 V(ByteArray_getUint32, 2) \ |
| 123 V(ByteArray_setUint32, 3) \ | 179 V(ByteArray_setUint32, 3) \ |
| 124 V(ByteArray_getInt64, 2) \ | 180 V(ByteArray_getInt64, 2) \ |
| 125 V(ByteArray_setInt64, 3) \ | 181 V(ByteArray_setInt64, 3) \ |
| 126 V(ByteArray_getUint64, 2) \ | 182 V(ByteArray_getUint64, 2) \ |
| 127 V(ByteArray_setUint64, 3) \ | 183 V(ByteArray_setUint64, 3) \ |
| 184 V(ByteArray_getSimd128Float32, 2) \ |
| 185 V(ByteArray_setSimd128Float32, 3) \ |
| 128 V(ByteArray_getFloat32, 2) \ | 186 V(ByteArray_getFloat32, 2) \ |
| 129 V(ByteArray_setFloat32, 3) \ | 187 V(ByteArray_setFloat32, 3) \ |
| 130 V(ByteArray_getFloat64, 2) \ | 188 V(ByteArray_getFloat64, 2) \ |
| 131 V(ByteArray_setFloat64, 3) \ | 189 V(ByteArray_setFloat64, 3) \ |
| 132 V(ByteArray_setRange, 5) \ | 190 V(ByteArray_setRange, 5) \ |
| 133 V(Int8Array_new, 1) \ | 191 V(Int8Array_new, 1) \ |
| 134 V(Int8List_newTransferable, 1) \ | 192 V(Int8List_newTransferable, 1) \ |
| 135 V(Int8Array_getIndexed, 2) \ | 193 V(Int8Array_getIndexed, 2) \ |
| 136 V(Int8Array_setIndexed, 3) \ | 194 V(Int8Array_setIndexed, 3) \ |
| 137 V(Uint8Array_new, 1) \ | 195 V(Uint8Array_new, 1) \ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 159 V(Uint32Array_getIndexed, 2) \ | 217 V(Uint32Array_getIndexed, 2) \ |
| 160 V(Uint32Array_setIndexed, 3) \ | 218 V(Uint32Array_setIndexed, 3) \ |
| 161 V(Int64Array_new, 1) \ | 219 V(Int64Array_new, 1) \ |
| 162 V(Int64List_newTransferable, 1) \ | 220 V(Int64List_newTransferable, 1) \ |
| 163 V(Int64Array_getIndexed, 2) \ | 221 V(Int64Array_getIndexed, 2) \ |
| 164 V(Int64Array_setIndexed, 3) \ | 222 V(Int64Array_setIndexed, 3) \ |
| 165 V(Uint64Array_new, 1) \ | 223 V(Uint64Array_new, 1) \ |
| 166 V(Uint64List_newTransferable, 1) \ | 224 V(Uint64List_newTransferable, 1) \ |
| 167 V(Uint64Array_getIndexed, 2) \ | 225 V(Uint64Array_getIndexed, 2) \ |
| 168 V(Uint64Array_setIndexed, 3) \ | 226 V(Uint64Array_setIndexed, 3) \ |
| 227 V(Simd128Float32Array_new, 1) \ |
| 228 V(Simd128Float32List_newTransferable, 1) \ |
| 229 V(Simd128Float32Array_getIndexed, 2) \ |
| 230 V(Simd128Float32Array_setIndexed, 3) \ |
| 169 V(Float32Array_new, 1) \ | 231 V(Float32Array_new, 1) \ |
| 170 V(Float32List_newTransferable, 1) \ | 232 V(Float32List_newTransferable, 1) \ |
| 171 V(Float32Array_getIndexed, 2) \ | 233 V(Float32Array_getIndexed, 2) \ |
| 172 V(Float32Array_setIndexed, 3) \ | 234 V(Float32Array_setIndexed, 3) \ |
| 173 V(Float64Array_new, 1) \ | 235 V(Float64Array_new, 1) \ |
| 174 V(Float64List_newTransferable, 1) \ | 236 V(Float64List_newTransferable, 1) \ |
| 175 V(Float64Array_getIndexed, 2) \ | 237 V(Float64Array_getIndexed, 2) \ |
| 176 V(Float64Array_setIndexed, 3) \ | 238 V(Float64Array_setIndexed, 3) \ |
| 177 V(ExternalInt8Array_getIndexed, 2) \ | 239 V(ExternalInt8Array_getIndexed, 2) \ |
| 178 V(ExternalInt8Array_setIndexed, 3) \ | 240 V(ExternalInt8Array_setIndexed, 3) \ |
| 179 V(ExternalUint8Array_getIndexed, 2) \ | 241 V(ExternalUint8Array_getIndexed, 2) \ |
| 180 V(ExternalUint8Array_setIndexed, 3) \ | 242 V(ExternalUint8Array_setIndexed, 3) \ |
| 181 V(ExternalUint8ClampedArray_getIndexed, 2) \ | 243 V(ExternalUint8ClampedArray_getIndexed, 2) \ |
| 182 V(ExternalUint8ClampedArray_setIndexed, 3) \ | 244 V(ExternalUint8ClampedArray_setIndexed, 3) \ |
| 183 V(ExternalInt16Array_getIndexed, 2) \ | 245 V(ExternalInt16Array_getIndexed, 2) \ |
| 184 V(ExternalInt16Array_setIndexed, 3) \ | 246 V(ExternalInt16Array_setIndexed, 3) \ |
| 185 V(ExternalUint16Array_getIndexed, 2) \ | 247 V(ExternalUint16Array_getIndexed, 2) \ |
| 186 V(ExternalUint16Array_setIndexed, 3) \ | 248 V(ExternalUint16Array_setIndexed, 3) \ |
| 187 V(ExternalInt32Array_getIndexed, 2) \ | 249 V(ExternalInt32Array_getIndexed, 2) \ |
| 188 V(ExternalInt32Array_setIndexed, 3) \ | 250 V(ExternalInt32Array_setIndexed, 3) \ |
| 189 V(ExternalUint32Array_getIndexed, 2) \ | 251 V(ExternalUint32Array_getIndexed, 2) \ |
| 190 V(ExternalUint32Array_setIndexed, 3) \ | 252 V(ExternalUint32Array_setIndexed, 3) \ |
| 191 V(ExternalInt64Array_getIndexed, 2) \ | 253 V(ExternalInt64Array_getIndexed, 2) \ |
| 192 V(ExternalInt64Array_setIndexed, 3) \ | 254 V(ExternalInt64Array_setIndexed, 3) \ |
| 193 V(ExternalUint64Array_getIndexed, 2) \ | 255 V(ExternalUint64Array_getIndexed, 2) \ |
| 194 V(ExternalUint64Array_setIndexed, 3) \ | 256 V(ExternalUint64Array_setIndexed, 3) \ |
| 257 V(ExternalSimd128Float32Array_getIndexed, 2) \ |
| 258 V(ExternalSimd128Float32Array_setIndexed, 3) \ |
| 195 V(ExternalFloat32Array_getIndexed, 2) \ | 259 V(ExternalFloat32Array_getIndexed, 2) \ |
| 196 V(ExternalFloat32Array_setIndexed, 3) \ | 260 V(ExternalFloat32Array_setIndexed, 3) \ |
| 197 V(ExternalFloat64Array_getIndexed, 2) \ | 261 V(ExternalFloat64Array_getIndexed, 2) \ |
| 198 V(ExternalFloat64Array_setIndexed, 3) \ | 262 V(ExternalFloat64Array_setIndexed, 3) \ |
| 199 V(isolate_getPortInternal, 0) \ | 263 V(isolate_getPortInternal, 0) \ |
| 200 V(isolate_spawnFunction, 2) \ | 264 V(isolate_spawnFunction, 2) \ |
| 201 V(isolate_spawnUri, 1) \ | 265 V(isolate_spawnUri, 1) \ |
| 202 V(Mirrors_isLocalPort, 1) \ | 266 V(Mirrors_isLocalPort, 1) \ |
| 203 V(Mirrors_makeLocalInstanceMirror, 1) \ | 267 V(Mirrors_makeLocalInstanceMirror, 1) \ |
| 204 V(Mirrors_makeLocalMirrorSystem, 0) \ | 268 V(Mirrors_makeLocalMirrorSystem, 0) \ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 227 static void DN_##name(Dart_NativeArguments args); | 291 static void DN_##name(Dart_NativeArguments args); |
| 228 | 292 |
| 229 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 293 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 230 | 294 |
| 231 #undef DECLARE_BOOTSTRAP_NATIVE | 295 #undef DECLARE_BOOTSTRAP_NATIVE |
| 232 }; | 296 }; |
| 233 | 297 |
| 234 } // namespace dart | 298 } // namespace dart |
| 235 | 299 |
| 236 #endif // VM_BOOTSTRAP_NATIVES_H_ | 300 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |