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

Unified Diff: runtime/vm/bootstrap_natives.h

Issue 10379018: Revert "Revert "Implement {Int,Uint}{8,16,32,64} and Float{32,64} typed arrays."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/bootstrap_natives.h
diff --git a/runtime/vm/bootstrap_natives.h b/runtime/vm/bootstrap_natives.h
index 1b3166805c9721d14a29e1fa5fa6dd058a8687be..8fa219250cf0cf632cfcbda70ca2c1833ab74c52 100644
--- a/runtime/vm/bootstrap_natives.h
+++ b/runtime/vm/bootstrap_natives.h
@@ -107,48 +107,77 @@ namespace dart {
V(Clock_now, 0) \
V(Clock_frequency, 0) \
V(ByteArray_getLength, 1) \
+ V(ByteArray_getInt8, 2) \
+ V(ByteArray_setInt8, 3) \
+ V(ByteArray_getUint8, 2) \
+ V(ByteArray_setUint8, 3) \
+ V(ByteArray_getInt16, 2) \
+ V(ByteArray_setInt16, 3) \
+ V(ByteArray_getUint16, 2) \
+ V(ByteArray_setUint16, 3) \
+ V(ByteArray_getInt32, 2) \
+ V(ByteArray_setInt32, 3) \
+ V(ByteArray_getUint32, 2) \
+ V(ByteArray_setUint32, 3) \
+ V(ByteArray_getInt64, 2) \
+ V(ByteArray_setInt64, 3) \
+ V(ByteArray_getUint64, 2) \
+ V(ByteArray_setUint64, 3) \
+ V(ByteArray_getFloat32, 2) \
+ V(ByteArray_setFloat32, 3) \
+ V(ByteArray_getFloat64, 2) \
+ V(ByteArray_setFloat64, 3) \
V(ByteArray_setRange, 5) \
- V(InternalByteArray_allocate, 1) \
- V(InternalByteArray_getInt8, 2) \
- V(InternalByteArray_setInt8, 3) \
- V(InternalByteArray_getUint8, 2) \
- V(InternalByteArray_setUint8, 3) \
- V(InternalByteArray_getInt16, 2) \
- V(InternalByteArray_setInt16, 3) \
- V(InternalByteArray_getUint16, 2) \
- V(InternalByteArray_setUint16, 3) \
- V(InternalByteArray_getInt32, 2) \
- V(InternalByteArray_setInt32, 3) \
- V(InternalByteArray_getUint32, 2) \
- V(InternalByteArray_setUint32, 3) \
- V(InternalByteArray_getInt64, 2) \
- V(InternalByteArray_setInt64, 3) \
- V(InternalByteArray_getUint64, 2) \
- V(InternalByteArray_setUint64, 3) \
- V(InternalByteArray_getFloat32, 2) \
- V(InternalByteArray_setFloat32, 3) \
- V(InternalByteArray_getFloat64, 2) \
- V(InternalByteArray_setFloat64, 3) \
- V(ExternalByteArray_getInt8, 2) \
- V(ExternalByteArray_setInt8, 3) \
- V(ExternalByteArray_getUint8, 2) \
- V(ExternalByteArray_setUint8, 3) \
- V(ExternalByteArray_getInt16, 2) \
- V(ExternalByteArray_setInt16, 3) \
- V(ExternalByteArray_getUint16, 2) \
- V(ExternalByteArray_setUint16, 3) \
- V(ExternalByteArray_getInt32, 2) \
- V(ExternalByteArray_setInt32, 3) \
- V(ExternalByteArray_getUint32, 2) \
- V(ExternalByteArray_setUint32, 3) \
- V(ExternalByteArray_getInt64, 2) \
- V(ExternalByteArray_setInt64, 3) \
- V(ExternalByteArray_getUint64, 2) \
- V(ExternalByteArray_setUint64, 3) \
- V(ExternalByteArray_getFloat32, 2) \
- V(ExternalByteArray_setFloat32, 3) \
- V(ExternalByteArray_getFloat64, 2) \
- V(ExternalByteArray_setFloat64, 3) \
+ V(Int8Array_new, 1) \
+ V(Int8Array_getIndexed, 2) \
+ V(Int8Array_setIndexed, 3) \
+ V(Uint8Array_new, 1) \
+ V(Uint8Array_getIndexed, 2) \
+ V(Uint8Array_setIndexed, 3) \
+ V(Int16Array_new, 1) \
+ V(Int16Array_getIndexed, 2) \
+ V(Int16Array_setIndexed, 3) \
+ V(Uint16Array_new, 1) \
+ V(Uint16Array_getIndexed, 2) \
+ V(Uint16Array_setIndexed, 3) \
+ V(Int32Array_new, 1) \
+ V(Int32Array_getIndexed, 2) \
+ V(Int32Array_setIndexed, 3) \
+ V(Uint32Array_new, 1) \
+ V(Uint32Array_getIndexed, 2) \
+ V(Uint32Array_setIndexed, 3) \
+ V(Int64Array_new, 1) \
+ V(Int64Array_getIndexed, 2) \
+ V(Int64Array_setIndexed, 3) \
+ V(Uint64Array_new, 1) \
+ V(Uint64Array_getIndexed, 2) \
+ V(Uint64Array_setIndexed, 3) \
+ V(Float32Array_new, 1) \
+ V(Float32Array_getIndexed, 2) \
+ V(Float32Array_setIndexed, 3) \
+ V(Float64Array_new, 1) \
+ V(Float64Array_getIndexed, 2) \
+ V(Float64Array_setIndexed, 3) \
+ V(ExternalInt8Array_getIndexed, 2) \
+ V(ExternalInt8Array_setIndexed, 3) \
+ V(ExternalUint8Array_getIndexed, 2) \
+ V(ExternalUint8Array_setIndexed, 3) \
+ V(ExternalInt16Array_getIndexed, 2) \
+ V(ExternalInt16Array_setIndexed, 3) \
+ V(ExternalUint16Array_getIndexed, 2) \
+ V(ExternalUint16Array_setIndexed, 3) \
+ V(ExternalInt32Array_getIndexed, 2) \
+ V(ExternalInt32Array_setIndexed, 3) \
+ V(ExternalUint32Array_getIndexed, 2) \
+ V(ExternalUint32Array_setIndexed, 3) \
+ V(ExternalInt64Array_getIndexed, 2) \
+ V(ExternalInt64Array_setIndexed, 3) \
+ V(ExternalUint64Array_getIndexed, 2) \
+ V(ExternalUint64Array_setIndexed, 3) \
+ V(ExternalFloat32Array_getIndexed, 2) \
+ V(ExternalFloat32Array_setIndexed, 3) \
+ V(ExternalFloat64Array_getIndexed, 2) \
+ V(ExternalFloat64Array_setIndexed, 3) \
V(isolate_getPortInternal, 0) \
V(isolate_spawnFunction, 1) \
V(Mirrors_processResponse, 3) \

Powered by Google App Engine
This is Rietveld 408576698