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

Unified Diff: runtime/vm/object.h

Issue 11437028: Added Uint8ClampedList. COmpielr optimziations to follow in next CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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
« no previous file with comments | « runtime/vm/heap_profiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 15794)
+++ runtime/vm/object.h (working copy)
@@ -4669,6 +4669,20 @@
};
+class Uint8ClampedArray : public Uint8Array {
+ public:
+ static RawUint8ClampedArray* New(intptr_t len,
+ Heap::Space space = Heap::kNew);
+ static RawUint8ClampedArray* New(const uint8_t* data,
+ intptr_t len,
+ Heap::Space space = Heap::kNew);
+
+ private:
+ HEAP_OBJECT_IMPLEMENTATION(Uint8ClampedArray, Uint8Array);
+ friend class Class;
+};
+
+
class Int16Array : public ByteArray {
public:
intptr_t ByteLength() const {
@@ -5206,6 +5220,20 @@
};
+class ExternalUint8ClampedArray : public ExternalUint8Array {
+ public:
+ static RawExternalUint8ClampedArray* New(uint8_t* data,
+ intptr_t len,
+ void* peer,
+ Dart_PeerFinalizer callback,
+ Heap::Space space = Heap::kNew);
+
+ private:
+ HEAP_OBJECT_IMPLEMENTATION(ExternalUint8ClampedArray, ExternalUint8Array);
+ friend class Class;
+};
+
+
class ExternalInt16Array : public ByteArray {
public:
intptr_t ByteLength() const {
« no previous file with comments | « runtime/vm/heap_profiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698