Chromium Code Reviews| Index: runtime/vm/dart.cc |
| =================================================================== |
| --- runtime/vm/dart.cc (revision 23191) |
| +++ runtime/vm/dart.cc (working copy) |
| @@ -128,6 +128,12 @@ |
| vm_isolate_->heap()->IterateOldObjects(&premarker); |
| vm_isolate_->heap()->WriteProtect(true); |
| } |
| + // There is a planned and known asymmetry here: We enter one scope for the VM |
| + // isolate so that we can allocate the "persistent" scoped handles for the |
| + // predefined API values (such as Dart_True, Dart_False and Dart_Null). |
| + Dart_EnterScope(); |
| + Api::InitHandles(); |
| + |
|
siva
2013/05/28 17:37:18
At some point we should add Dart::Cleanup function
|
| Isolate::SetCurrent(NULL); // Unregister the VM isolate from this thread. |
| Isolate::SetCreateCallback(create); |
| Isolate::SetInterruptCallback(interrupt); |