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); |