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

Unified Diff: runtime/vm/raw_object.h

Issue 10897014: Performance improvement for the Dart VM runtime method (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 11476)
+++ runtime/vm/raw_object.h (working copy)
@@ -1123,10 +1123,18 @@
};
+DART_EXTERN_C {
+ Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle, void**);
+ Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle, void**);
+ Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle, void**);
+}
+
+
class RawExternalOneByteString : public RawString {
RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalOneByteString);
ExternalStringData<uint8_t>* external_data_;
+ friend Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle o, void**);
Ivan Posva 2012/08/28 22:21:20 Please remove the o to be consistent. Also can you
Tom Ball 2012/08/29 00:16:39 The 'o' is removed, but I think the block declarat
};
@@ -1134,6 +1142,7 @@
RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalTwoByteString);
ExternalStringData<uint16_t>* external_data_;
+ friend Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle, void**);
};
@@ -1141,6 +1150,7 @@
RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFourByteString);
ExternalStringData<uint32_t>* external_data_;
+ friend Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle, void**);
};
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698