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

Unified Diff: runtime/vm/object.h

Issue 11280121: Intrinsify ExternalUint8Array.[]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 4e1a484cc39ae140e597adfad86517c72c4d572f..7c121442272fed39122e6e5d6a85ec5008c924df 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5157,6 +5157,10 @@ class ExternalUint8Array : public ByteArray {
return RoundedAllocationSize(sizeof(RawExternalUint8Array));
}
+ static intptr_t external_data_offset() {
+ return length_offset() + kWordSize;
Florian Schneider 2012/11/21 15:15:17 Maybe instead use OFFSET_OF here as well?
Mads Ager (google) 2012/11/21 15:31:34 Done for all of these.
+ }
+
static RawExternalUint8Array* New(uint8_t* data,
intptr_t len,
void* peer,
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698