| 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(Float32x4_fromDoubles, 5) \ |
| 112 V(Float32x4_zero, 1) \ |
| 113 V(Float32x4_add, 2) \ |
| 114 V(Float32x4_negate, 1) \ |
| 115 V(Float32x4_sub, 2) \ |
| 116 V(Float32x4_mul, 2) \ |
| 117 V(Float32x4_div, 2) \ |
| 118 V(Float32x4_cmplt, 2) \ |
| 119 V(Float32x4_cmplte, 2) \ |
| 120 V(Float32x4_cmpgt, 2) \ |
| 121 V(Float32x4_cmpgte, 2) \ |
| 122 V(Float32x4_cmpequal, 2) \ |
| 123 V(Float32x4_cmpnequal, 2) \ |
| 124 V(Float32x4_scale, 2) \ |
| 125 V(Float32x4_abs, 1) \ |
| 126 V(Float32x4_clamp, 3) \ |
| 127 V(Float32x4_getX, 1) \ |
| 128 V(Float32x4_getY, 1) \ |
| 129 V(Float32x4_getZ, 1) \ |
| 130 V(Float32x4_getW, 1) \ |
| 131 V(Float32x4_getXXXX, 1) \ |
| 132 V(Float32x4_getYYYY, 1) \ |
| 133 V(Float32x4_getZZZZ, 1) \ |
| 134 V(Float32x4_getWWWW, 1) \ |
| 135 V(Float32x4_setX, 2) \ |
| 136 V(Float32x4_setY, 2) \ |
| 137 V(Float32x4_setZ, 2) \ |
| 138 V(Float32x4_setW, 2) \ |
| 139 V(Float32x4_min, 2) \ |
| 140 V(Float32x4_max, 2) \ |
| 141 V(Float32x4_sqrt, 1) \ |
| 142 V(Float32x4_reciprocal, 1) \ |
| 143 V(Float32x4_reciprocalSqrt, 1) \ |
| 144 V(Float32x4_toUint32x4, 1) \ |
| 145 V(Uint32x4_fromInts, 5) \ |
| 146 V(Uint32x4_fromBools, 5) \ |
| 147 V(Uint32x4_or, 2) \ |
| 148 V(Uint32x4_and, 2) \ |
| 149 V(Uint32x4_xor, 2) \ |
| 150 V(Uint32x4_getX, 1) \ |
| 151 V(Uint32x4_getY, 1) \ |
| 152 V(Uint32x4_getZ, 1) \ |
| 153 V(Uint32x4_getW, 1) \ |
| 154 V(Uint32x4_setX, 2) \ |
| 155 V(Uint32x4_setY, 2) \ |
| 156 V(Uint32x4_setZ, 2) \ |
| 157 V(Uint32x4_setW, 2) \ |
| 158 V(Uint32x4_getFlagX, 1) \ |
| 159 V(Uint32x4_getFlagY, 1) \ |
| 160 V(Uint32x4_getFlagZ, 1) \ |
| 161 V(Uint32x4_getFlagW, 1) \ |
| 162 V(Uint32x4_setFlagX, 2) \ |
| 163 V(Uint32x4_setFlagY, 2) \ |
| 164 V(Uint32x4_setFlagZ, 2) \ |
| 165 V(Uint32x4_setFlagW, 2) \ |
| 166 V(Uint32x4_select, 3) \ |
| 167 V(Uint32x4_toFloat32x4, 1) \ |
| 111 V(ByteArray_getLength, 1) \ | 168 V(ByteArray_getLength, 1) \ |
| 112 V(ByteArray_getInt8, 2) \ | 169 V(ByteArray_getInt8, 2) \ |
| 113 V(ByteArray_setInt8, 3) \ | 170 V(ByteArray_setInt8, 3) \ |
| 114 V(ByteArray_getUint8, 2) \ | 171 V(ByteArray_getUint8, 2) \ |
| 115 V(ByteArray_setUint8, 3) \ | 172 V(ByteArray_setUint8, 3) \ |
| 116 V(ByteArray_getInt16, 2) \ | 173 V(ByteArray_getInt16, 2) \ |
| 117 V(ByteArray_setInt16, 3) \ | 174 V(ByteArray_setInt16, 3) \ |
| 118 V(ByteArray_getUint16, 2) \ | 175 V(ByteArray_getUint16, 2) \ |
| 119 V(ByteArray_setUint16, 3) \ | 176 V(ByteArray_setUint16, 3) \ |
| 120 V(ByteArray_getInt32, 2) \ | 177 V(ByteArray_getInt32, 2) \ |
| 121 V(ByteArray_setInt32, 3) \ | 178 V(ByteArray_setInt32, 3) \ |
| 122 V(ByteArray_getUint32, 2) \ | 179 V(ByteArray_getUint32, 2) \ |
| 123 V(ByteArray_setUint32, 3) \ | 180 V(ByteArray_setUint32, 3) \ |
| 124 V(ByteArray_getInt64, 2) \ | 181 V(ByteArray_getInt64, 2) \ |
| 125 V(ByteArray_setInt64, 3) \ | 182 V(ByteArray_setInt64, 3) \ |
| 126 V(ByteArray_getUint64, 2) \ | 183 V(ByteArray_getUint64, 2) \ |
| 127 V(ByteArray_setUint64, 3) \ | 184 V(ByteArray_setUint64, 3) \ |
| 185 V(ByteArray_getFloat32x4, 2) \ |
| 186 V(ByteArray_setFloat32x4, 3) \ |
| 128 V(ByteArray_getFloat32, 2) \ | 187 V(ByteArray_getFloat32, 2) \ |
| 129 V(ByteArray_setFloat32, 3) \ | 188 V(ByteArray_setFloat32, 3) \ |
| 130 V(ByteArray_getFloat64, 2) \ | 189 V(ByteArray_getFloat64, 2) \ |
| 131 V(ByteArray_setFloat64, 3) \ | 190 V(ByteArray_setFloat64, 3) \ |
| 132 V(ByteArray_setRange, 5) \ | 191 V(ByteArray_setRange, 5) \ |
| 133 V(Int8Array_new, 1) \ | 192 V(Int8Array_new, 1) \ |
| 134 V(Int8List_newTransferable, 1) \ | 193 V(Int8List_newTransferable, 1) \ |
| 135 V(Int8Array_getIndexed, 2) \ | 194 V(Int8Array_getIndexed, 2) \ |
| 136 V(Int8Array_setIndexed, 3) \ | 195 V(Int8Array_setIndexed, 3) \ |
| 137 V(Uint8Array_new, 1) \ | 196 V(Uint8Array_new, 1) \ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 159 V(Uint32Array_getIndexed, 2) \ | 218 V(Uint32Array_getIndexed, 2) \ |
| 160 V(Uint32Array_setIndexed, 3) \ | 219 V(Uint32Array_setIndexed, 3) \ |
| 161 V(Int64Array_new, 1) \ | 220 V(Int64Array_new, 1) \ |
| 162 V(Int64List_newTransferable, 1) \ | 221 V(Int64List_newTransferable, 1) \ |
| 163 V(Int64Array_getIndexed, 2) \ | 222 V(Int64Array_getIndexed, 2) \ |
| 164 V(Int64Array_setIndexed, 3) \ | 223 V(Int64Array_setIndexed, 3) \ |
| 165 V(Uint64Array_new, 1) \ | 224 V(Uint64Array_new, 1) \ |
| 166 V(Uint64List_newTransferable, 1) \ | 225 V(Uint64List_newTransferable, 1) \ |
| 167 V(Uint64Array_getIndexed, 2) \ | 226 V(Uint64Array_getIndexed, 2) \ |
| 168 V(Uint64Array_setIndexed, 3) \ | 227 V(Uint64Array_setIndexed, 3) \ |
| 228 V(Float32x4Array_new, 1) \ |
| 229 V(Float32x4List_newTransferable, 1) \ |
| 230 V(Float32x4Array_getIndexed, 2) \ |
| 231 V(Float32x4Array_setIndexed, 3) \ |
| 169 V(Float32Array_new, 1) \ | 232 V(Float32Array_new, 1) \ |
| 170 V(Float32List_newTransferable, 1) \ | 233 V(Float32List_newTransferable, 1) \ |
| 171 V(Float32Array_getIndexed, 2) \ | 234 V(Float32Array_getIndexed, 2) \ |
| 172 V(Float32Array_setIndexed, 3) \ | 235 V(Float32Array_setIndexed, 3) \ |
| 173 V(Float64Array_new, 1) \ | 236 V(Float64Array_new, 1) \ |
| 174 V(Float64List_newTransferable, 1) \ | 237 V(Float64List_newTransferable, 1) \ |
| 175 V(Float64Array_getIndexed, 2) \ | 238 V(Float64Array_getIndexed, 2) \ |
| 176 V(Float64Array_setIndexed, 3) \ | 239 V(Float64Array_setIndexed, 3) \ |
| 177 V(ExternalInt8Array_getIndexed, 2) \ | 240 V(ExternalInt8Array_getIndexed, 2) \ |
| 178 V(ExternalInt8Array_setIndexed, 3) \ | 241 V(ExternalInt8Array_setIndexed, 3) \ |
| 179 V(ExternalUint8Array_getIndexed, 2) \ | 242 V(ExternalUint8Array_getIndexed, 2) \ |
| 180 V(ExternalUint8Array_setIndexed, 3) \ | 243 V(ExternalUint8Array_setIndexed, 3) \ |
| 181 V(ExternalUint8ClampedArray_getIndexed, 2) \ | 244 V(ExternalUint8ClampedArray_getIndexed, 2) \ |
| 182 V(ExternalUint8ClampedArray_setIndexed, 3) \ | 245 V(ExternalUint8ClampedArray_setIndexed, 3) \ |
| 183 V(ExternalInt16Array_getIndexed, 2) \ | 246 V(ExternalInt16Array_getIndexed, 2) \ |
| 184 V(ExternalInt16Array_setIndexed, 3) \ | 247 V(ExternalInt16Array_setIndexed, 3) \ |
| 185 V(ExternalUint16Array_getIndexed, 2) \ | 248 V(ExternalUint16Array_getIndexed, 2) \ |
| 186 V(ExternalUint16Array_setIndexed, 3) \ | 249 V(ExternalUint16Array_setIndexed, 3) \ |
| 187 V(ExternalInt32Array_getIndexed, 2) \ | 250 V(ExternalInt32Array_getIndexed, 2) \ |
| 188 V(ExternalInt32Array_setIndexed, 3) \ | 251 V(ExternalInt32Array_setIndexed, 3) \ |
| 189 V(ExternalUint32Array_getIndexed, 2) \ | 252 V(ExternalUint32Array_getIndexed, 2) \ |
| 190 V(ExternalUint32Array_setIndexed, 3) \ | 253 V(ExternalUint32Array_setIndexed, 3) \ |
| 191 V(ExternalInt64Array_getIndexed, 2) \ | 254 V(ExternalInt64Array_getIndexed, 2) \ |
| 192 V(ExternalInt64Array_setIndexed, 3) \ | 255 V(ExternalInt64Array_setIndexed, 3) \ |
| 193 V(ExternalUint64Array_getIndexed, 2) \ | 256 V(ExternalUint64Array_getIndexed, 2) \ |
| 194 V(ExternalUint64Array_setIndexed, 3) \ | 257 V(ExternalUint64Array_setIndexed, 3) \ |
| 258 V(ExternalFloat32x4Array_getIndexed, 2) \ |
| 259 V(ExternalFloat32x4Array_setIndexed, 3) \ |
| 195 V(ExternalFloat32Array_getIndexed, 2) \ | 260 V(ExternalFloat32Array_getIndexed, 2) \ |
| 196 V(ExternalFloat32Array_setIndexed, 3) \ | 261 V(ExternalFloat32Array_setIndexed, 3) \ |
| 197 V(ExternalFloat64Array_getIndexed, 2) \ | 262 V(ExternalFloat64Array_getIndexed, 2) \ |
| 198 V(ExternalFloat64Array_setIndexed, 3) \ | 263 V(ExternalFloat64Array_setIndexed, 3) \ |
| 199 V(isolate_getPortInternal, 0) \ | 264 V(isolate_getPortInternal, 0) \ |
| 200 V(isolate_spawnFunction, 2) \ | 265 V(isolate_spawnFunction, 2) \ |
| 201 V(isolate_spawnUri, 1) \ | 266 V(isolate_spawnUri, 1) \ |
| 202 V(Mirrors_isLocalPort, 1) \ | 267 V(Mirrors_isLocalPort, 1) \ |
| 203 V(Mirrors_makeLocalInstanceMirror, 1) \ | 268 V(Mirrors_makeLocalInstanceMirror, 1) \ |
| 204 V(Mirrors_makeLocalMirrorSystem, 0) \ | 269 V(Mirrors_makeLocalMirrorSystem, 0) \ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 227 static void DN_##name(Dart_NativeArguments args); | 292 static void DN_##name(Dart_NativeArguments args); |
| 228 | 293 |
| 229 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 294 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 230 | 295 |
| 231 #undef DECLARE_BOOTSTRAP_NATIVE | 296 #undef DECLARE_BOOTSTRAP_NATIVE |
| 232 }; | 297 }; |
| 233 | 298 |
| 234 } // namespace dart | 299 } // namespace dart |
| 235 | 300 |
| 236 #endif // VM_BOOTSTRAP_NATIVES_H_ | 301 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |