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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 9325022: Decode the Dart message into a Dart_CMessage structure before calling the native port callback (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from asiva@ Created 8 years, 10 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/dart.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.h
diff --git a/runtime/vm/dart_api_impl.h b/runtime/vm/dart_api_impl.h
index e41e96f592a155dbe9043709f6fbb013cd11124e..4cf06683b87a8b838d4fd75d7b6fd18a3569091a 100644
--- a/runtime/vm/dart_api_impl.h
+++ b/runtime/vm/dart_api_impl.h
@@ -121,6 +121,16 @@ class Api : AllStatic {
// Reallocates space in the local zone.
static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size);
+
+ // Performs one-time initialization needed by the API.
+ static void InitOnce();
+
+ private:
+ // Thread local key used by the API. Currently holds the current
+ // ApiNativeScope if any.
+ static ThreadLocalKey api_native_key_;
+
+ friend class ApiNativeScope;
};
class IsolateSaver {
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698