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

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

Issue 1782003002: Simplify the VM's typed_data constructors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 4 years, 9 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
« no previous file with comments | « runtime/lib/typed_data.dart ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 V(FallThroughError_throwNew, 1) \ 157 V(FallThroughError_throwNew, 1) \
158 V(AbstractClassInstantiationError_throwNew, 2) \ 158 V(AbstractClassInstantiationError_throwNew, 2) \
159 V(Stopwatch_now, 0) \ 159 V(Stopwatch_now, 0) \
160 V(Stopwatch_frequency, 0) \ 160 V(Stopwatch_frequency, 0) \
161 V(Timeline_getIsolateNum, 0) \ 161 V(Timeline_getIsolateNum, 0) \
162 V(Timeline_getNextAsyncId, 0) \ 162 V(Timeline_getNextAsyncId, 0) \
163 V(Timeline_getTraceClock, 0) \ 163 V(Timeline_getTraceClock, 0) \
164 V(Timeline_reportCompleteEvent, 5) \ 164 V(Timeline_reportCompleteEvent, 5) \
165 V(Timeline_reportInstantEvent, 4) \ 165 V(Timeline_reportInstantEvent, 4) \
166 V(Timeline_reportTaskEvent, 6) \ 166 V(Timeline_reportTaskEvent, 6) \
167 V(TypedData_Int8Array_new, 1) \ 167 V(TypedData_Int8Array_new, 2) \
168 V(TypedData_Uint8Array_new, 1) \ 168 V(TypedData_Uint8Array_new, 2) \
169 V(TypedData_Uint8ClampedArray_new, 1) \ 169 V(TypedData_Uint8ClampedArray_new, 2) \
170 V(TypedData_Int16Array_new, 1) \ 170 V(TypedData_Int16Array_new, 2) \
171 V(TypedData_Uint16Array_new, 1) \ 171 V(TypedData_Uint16Array_new, 2) \
172 V(TypedData_Int32Array_new, 1) \ 172 V(TypedData_Int32Array_new, 2) \
173 V(TypedData_Uint32Array_new, 1) \ 173 V(TypedData_Uint32Array_new, 2) \
174 V(TypedData_Int64Array_new, 1) \ 174 V(TypedData_Int64Array_new, 2) \
175 V(TypedData_Uint64Array_new, 1) \ 175 V(TypedData_Uint64Array_new, 2) \
176 V(TypedData_Float32Array_new, 1) \ 176 V(TypedData_Float32Array_new, 2) \
177 V(TypedData_Float64Array_new, 1) \ 177 V(TypedData_Float64Array_new, 2) \
178 V(TypedData_Float32x4Array_new, 1) \ 178 V(TypedData_Float32x4Array_new, 2) \
179 V(TypedData_Int32x4Array_new, 1) \ 179 V(TypedData_Int32x4Array_new, 2) \
180 V(TypedData_Float64x2Array_new, 1) \ 180 V(TypedData_Float64x2Array_new, 2) \
181 V(ExternalTypedData_Int8Array_new, 1) \ 181 V(ExternalTypedData_Int8Array_new, 2) \
182 V(ExternalTypedData_Uint8Array_new, 1) \ 182 V(ExternalTypedData_Uint8Array_new, 2) \
183 V(ExternalTypedData_Uint8ClampedArray_new, 1) \ 183 V(ExternalTypedData_Uint8ClampedArray_new, 2) \
184 V(ExternalTypedData_Int16Array_new, 1) \ 184 V(ExternalTypedData_Int16Array_new, 2) \
185 V(ExternalTypedData_Uint16Array_new, 1) \ 185 V(ExternalTypedData_Uint16Array_new, 2) \
186 V(ExternalTypedData_Int32Array_new, 1) \ 186 V(ExternalTypedData_Int32Array_new, 2) \
187 V(ExternalTypedData_Uint32Array_new, 1) \ 187 V(ExternalTypedData_Uint32Array_new, 2) \
188 V(ExternalTypedData_Int64Array_new, 1) \ 188 V(ExternalTypedData_Int64Array_new, 2) \
189 V(ExternalTypedData_Uint64Array_new, 1) \ 189 V(ExternalTypedData_Uint64Array_new, 2) \
190 V(ExternalTypedData_Float32Array_new, 1) \ 190 V(ExternalTypedData_Float32Array_new, 2) \
191 V(ExternalTypedData_Float64Array_new, 1) \ 191 V(ExternalTypedData_Float64Array_new, 2) \
192 V(ExternalTypedData_Float32x4Array_new, 1) \ 192 V(ExternalTypedData_Float32x4Array_new, 2) \
193 V(ExternalTypedData_Int32x4Array_new, 1) \ 193 V(ExternalTypedData_Int32x4Array_new, 2) \
194 V(ExternalTypedData_Float64x2Array_new, 1) \ 194 V(ExternalTypedData_Float64x2Array_new, 2) \
195 V(TypedData_length, 1) \ 195 V(TypedData_length, 1) \
196 V(TypedData_setRange, 7) \ 196 V(TypedData_setRange, 7) \
197 V(TypedData_GetInt8, 2) \ 197 V(TypedData_GetInt8, 2) \
198 V(TypedData_SetInt8, 3) \ 198 V(TypedData_SetInt8, 3) \
199 V(TypedData_GetUint8, 2) \ 199 V(TypedData_GetUint8, 2) \
200 V(TypedData_SetUint8, 3) \ 200 V(TypedData_SetUint8, 3) \
201 V(TypedData_GetInt16, 2) \ 201 V(TypedData_GetInt16, 2) \
202 V(TypedData_SetInt16, 3) \ 202 V(TypedData_SetInt16, 3) \
203 V(TypedData_GetUint16, 2) \ 203 V(TypedData_GetUint16, 2) \
204 V(TypedData_SetUint16, 3) \ 204 V(TypedData_SetUint16, 3) \
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 #ifndef PRODUCT 430 #ifndef PRODUCT
431 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 431 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
432 #endif 432 #endif
433 433
434 #undef DECLARE_BOOTSTRAP_NATIVE 434 #undef DECLARE_BOOTSTRAP_NATIVE
435 }; 435 };
436 436
437 } // namespace dart 437 } // namespace dart
438 438
439 #endif // VM_BOOTSTRAP_NATIVES_H_ 439 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/lib/typed_data.dart ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698