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

Unified Diff: runtime/vm/bootstrap_natives.h

Issue 8429027: Add an external array type to support typed arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make loads and stores byte relative Created 9 years, 1 month 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 dea5034b3cd043a3c6ef52e317205d2797bb94dc..205fb1b044a5a112e6cfceb14814441bc1c81517 100644
--- a/runtime/vm/bootstrap_natives.h
+++ b/runtime/vm/bootstrap_natives.h
@@ -100,6 +100,28 @@ namespace dart {
V(FallThroughError_throwNew, 1) \
V(Clock_now, 0) \
V(Clock_frequency, 0) \
+ V(ByteBuffer_allocate, 2) \
+ V(ByteBuffer_getLength, 1) \
+ V(ByteBuffer_getInt8, 2) \
+ V(ByteBuffer_setInt8, 3) \
+ V(ByteBuffer_getUint8, 2) \
+ V(ByteBuffer_setUint8, 3) \
+ V(ByteBuffer_getInt16, 2) \
+ V(ByteBuffer_setInt16, 3) \
+ V(ByteBuffer_getUint16, 2) \
+ V(ByteBuffer_setUint16, 3) \
+ V(ByteBuffer_getInt32, 2) \
+ V(ByteBuffer_setInt32, 3) \
+ V(ByteBuffer_getUint32, 2) \
+ V(ByteBuffer_setUint32, 3) \
+ V(ByteBuffer_getInt64, 2) \
+ V(ByteBuffer_setInt64, 3) \
+ V(ByteBuffer_getUint64, 2) \
+ V(ByteBuffer_setUint64, 3) \
+ V(ByteBuffer_getFloat32, 2) \
+ V(ByteBuffer_setFloat32, 3) \
+ V(ByteBuffer_getFloat64, 2) \
+ V(ByteBuffer_setFloat64, 3) \
BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY)

Powered by Google App Engine
This is Rietveld 408576698