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

Unified Diff: runtime/vm/dart.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.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index b54564b23b104e0aa047a975061068653de0ce40..1c5f13be04c14c5cb2079429dc72b9c1d2e2bc72 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -1,10 +1,11 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/dart.h"
#include "vm/code_index_table.h"
+#include "vm/dart_api_state.h"
#include "vm/flags.h"
#include "vm/freelist.h"
#include "vm/handles.h"
@@ -34,6 +35,7 @@ bool Dart::InitOnce(Dart_IsolateCreateCallback create,
Isolate::InitOnce();
PortMap::InitOnce();
FreeListElement::InitOnce();
+ ApiNativeScope::InitOnce();
siva 2012/02/09 00:45:29 Why don't you make this Api::InitOnce(); We have
Søren Gjesse 2012/02/09 08:44:01 Good point. I also moved the thread local key to t
// Create the VM isolate and finish the VM initialization.
{
ASSERT(vm_isolate_ == NULL);

Powered by Google App Engine
This is Rietveld 408576698