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

Unified Diff: runtime/bin/dartutils.cc

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/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index f520620b9c259b79dd7767d43db9b0bf8b2291e6..9dd082dc26110927ca41e0e06bf9a549c8a673dc 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -399,8 +399,8 @@ Dart_CObject* CObject::NewArray(int length) {
}
-Dart_CObject* CObject::NewByteArray(int length) {
- Dart_CObject* cobject = New(Dart_CObject::kByteArray, length);
+Dart_CObject* CObject::NewUint8Array(int length) {
+ Dart_CObject* cobject = New(Dart_CObject::kUint8Array, length);
cobject->value.as_byte_array.length = length;
cobject->value.as_byte_array.values = reinterpret_cast<uint8_t*>(cobject + 1);
return cobject;
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/bin/file.cc » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698