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

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**);
turnidge 2012/08/29 16:53:35 Does this need to be listed x3?
Tom Ball 2012/08/29 17:20:40 I really, really, really, want it declared? ;-) I
+}
+
+
class RawExternalOneByteString : public RawString {
RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalOneByteString);
ExternalStringData<uint8_t>* external_data_;
+ friend Dart_Handle Dart_ExternalStringGetPeer(Dart_Handle, void**);
Ivan Posva 2012/08/29 05:59:30 Have you tried this? friend DART_EXTERN_C Dart_Han
Tom Ball 2012/08/29 17:20:40 That fails with a syntax error. According to http
};
@@ -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