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

Unified Diff: runtime/vm/dart_api_impl.cc

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: Undo unneeded changes 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
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index b282bf2fd913c338eba9f83747b290160c139391..3590d75498b5dd8b9d2052ef05f63cb5cd74430b 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -2438,4 +2438,13 @@ DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size) {
}
+ThreadLocalKey ApiNativeScope::api_native_key_ = Thread::kUnsetThreadLocalKey;
+
+
+void ApiNativeScope::InitOnce() {
siva 2012/02/09 00:45:29 Api::InitOnce() { .... }
Søren Gjesse 2012/02/09 08:44:01 Done.
+ ASSERT(api_native_key_ == Thread::kUnsetThreadLocalKey);
+ api_native_key_ = Thread::CreateThreadLocal();
+ ASSERT(api_native_key_ != Thread::kUnsetThreadLocalKey);
+}
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698