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

Unified Diff: runtime/vm/object.h

Issue 12881006: Add the native intrinsic TypedData_setRange to optimize the setRange call when the destination and … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('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 20057)
+++ runtime/vm/object.h (working copy)
@@ -4991,6 +4991,12 @@
intptr_t len,
Heap::Space space = Heap::kNew);
+ static void Copy(const TypedData& dst,
+ intptr_t dst_offset_in_bytes,
+ const TypedData& src,
+ intptr_t src_offset_in_bytes,
+ intptr_t length_in_bytes);
+
protected:
void SetLength(intptr_t value) const {
raw_ptr()->length_ = Smi::New(value);
@@ -5079,6 +5085,12 @@
intptr_t len,
Heap::Space space = Heap::kNew);
+ static void Copy(const ExternalTypedData& dst,
+ intptr_t dst_offset_in_bytes,
+ const ExternalTypedData& src,
+ intptr_t src_offset_in_bytes,
+ intptr_t length_in_bytes);
+
protected:
void SetLength(intptr_t value) const {
raw_ptr()->length_ = Smi::New(value);
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698