| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/dart.h" | 5 #include "vm/dart.h" |
| 6 | 6 |
| 7 #include "vm/dart_api_state.h" | 7 #include "vm/dart_api_state.h" |
| 8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 9 #include "vm/freelist.h" | 9 #include "vm/freelist.h" |
| 10 #include "vm/handles.h" | 10 #include "vm/handles.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 OS::Print("Size of isolate snapshot = %ld\n", snapshot->length()); | 95 OS::Print("Size of isolate snapshot = %ld\n", snapshot->length()); |
| 96 } | 96 } |
| 97 SnapshotReader reader(snapshot, isolate); | 97 SnapshotReader reader(snapshot, isolate); |
| 98 reader.ReadFullSnapshot(); | 98 reader.ReadFullSnapshot(); |
| 99 if (FLAG_trace_isolates) { | 99 if (FLAG_trace_isolates) { |
| 100 isolate->heap()->PrintSizes(); | 100 isolate->heap()->PrintSizes(); |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 StubCode::Init(isolate); | 104 StubCode::Init(isolate); |
| 105 isolate->heap()->EnableGrowthControl(); |
| 105 isolate->set_init_callback_data(data); | 106 isolate->set_init_callback_data(data); |
| 106 if (FLAG_print_class_table) { | 107 if (FLAG_print_class_table) { |
| 107 isolate->class_table()->Print(); | 108 isolate->class_table()->Print(); |
| 108 } | 109 } |
| 109 return Error::null(); | 110 return Error::null(); |
| 110 } | 111 } |
| 111 | 112 |
| 112 | 113 |
| 113 void Dart::ShutdownIsolate() { | 114 void Dart::ShutdownIsolate() { |
| 114 Isolate* isolate = Isolate::Current(); | 115 Isolate* isolate = Isolate::Current(); |
| 115 isolate->Shutdown(); | 116 isolate->Shutdown(); |
| 116 delete isolate; | 117 delete isolate; |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace dart | 120 } // namespace dart |
| OLD | NEW |