Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: runtime/vm/bootstrap_natives.h

Issue 12303013: Simd128Float32, Simd128Mask, and Simd128Float32List additions for dart:scalarlist (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating Kasper's review Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_cmpnequal, 2) \
124 V(Simd128Float32_scale, 2) \
125 V(Simd128Float32_abs, 1) \
126 V(Simd128Float32_clamp, 3) \
127 V(Simd128Float32_getX, 1) \
128 V(Simd128Float32_getY, 1) \
129 V(Simd128Float32_getZ, 1) \
130 V(Simd128Float32_getW, 1) \
131 V(Simd128Float32_getXXXX, 1) \
132 V(Simd128Float32_getYYYY, 1) \
133 V(Simd128Float32_getZZZZ, 1) \
134 V(Simd128Float32_getWWWW, 1) \
135 V(Simd128Float32_setX, 2) \
136 V(Simd128Float32_setY, 2) \
137 V(Simd128Float32_setZ, 2) \
138 V(Simd128Float32_setW, 2) \
139 V(Simd128Float32_min, 2) \
140 V(Simd128Float32_max, 2) \
141 V(Simd128Float32_sqrt, 1) \
142 V(Simd128Float32_reciprocal, 1) \
143 V(Simd128Float32_reciprocalSqrt, 1) \
144 V(Simd128Float32_toSimd128Mask, 1) \
145 V(Simd128Mask_fromInts, 5) \
146 V(Simd128Mask_fromBools, 5) \
147 V(Simd128Mask_or, 2) \
148 V(Simd128Mask_and, 2) \
149 V(Simd128Mask_xor, 2) \
150 V(Simd128Mask_getX, 1) \
151 V(Simd128Mask_getY, 1) \
152 V(Simd128Mask_getZ, 1) \
153 V(Simd128Mask_getW, 1) \
154 V(Simd128Mask_setX, 2) \
155 V(Simd128Mask_setY, 2) \
156 V(Simd128Mask_setZ, 2) \
157 V(Simd128Mask_setW, 2) \
158 V(Simd128Mask_getFlagX, 1) \
159 V(Simd128Mask_getFlagY, 1) \
160 V(Simd128Mask_getFlagZ, 1) \
161 V(Simd128Mask_getFlagW, 1) \
162 V(Simd128Mask_setFlagX, 2) \
163 V(Simd128Mask_setFlagY, 2) \
164 V(Simd128Mask_setFlagZ, 2) \
165 V(Simd128Mask_setFlagW, 2) \
166 V(Simd128Mask_select, 3) \
167 V(Simd128Mask_toSimd128Float32, 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_getSimd128Float32, 2) \
186 V(ByteArray_setSimd128Float32, 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
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(Simd128Float32Array_new, 1) \
229 V(Simd128Float32List_newTransferable, 1) \
230 V(Simd128Float32Array_getIndexed, 2) \
231 V(Simd128Float32Array_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(ExternalSimd128Float32Array_getIndexed, 2) \
259 V(ExternalSimd128Float32Array_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698