OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/isolate.h" | 5 #include "vm/isolate.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "platform/json.h" | 9 #include "platform/json.h" |
10 #include "lib/mirrors.h" | 10 #include "lib/mirrors.h" |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 message_handler_(NULL), | 305 message_handler_(NULL), |
306 spawn_state_(NULL), | 306 spawn_state_(NULL), |
307 is_runnable_(false), | 307 is_runnable_(false), |
308 gc_prologue_callbacks_(), | 308 gc_prologue_callbacks_(), |
309 gc_epilogue_callbacks_(), | 309 gc_epilogue_callbacks_(), |
310 defer_finalization_count_(0), | 310 defer_finalization_count_(0), |
311 deopt_context_(NULL), | 311 deopt_context_(NULL), |
312 stacktrace_(NULL), | 312 stacktrace_(NULL), |
313 stack_frame_index_(-1), | 313 stack_frame_index_(-1), |
314 object_histogram_(NULL), | 314 object_histogram_(NULL), |
| 315 cha_used_(false), |
315 object_id_ring_(NULL), | 316 object_id_ring_(NULL), |
316 profiler_data_(NULL), | 317 profiler_data_(NULL), |
317 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 318 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
318 reusable_handles_() { | 319 reusable_handles_() { |
319 if (FLAG_print_object_histogram && (Dart::vm_isolate() != NULL)) { | 320 if (FLAG_print_object_histogram && (Dart::vm_isolate() != NULL)) { |
320 object_histogram_ = new ObjectHistogram(this); | 321 object_histogram_ = new ObjectHistogram(this); |
321 } | 322 } |
322 } | 323 } |
323 #undef REUSABLE_HANDLE_INITIALIZERS | 324 #undef REUSABLE_HANDLE_INITIALIZERS |
324 | 325 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 return func.raw(); | 971 return func.raw(); |
971 } | 972 } |
972 | 973 |
973 | 974 |
974 void IsolateSpawnState::Cleanup() { | 975 void IsolateSpawnState::Cleanup() { |
975 SwitchIsolateScope switch_scope(isolate()); | 976 SwitchIsolateScope switch_scope(isolate()); |
976 Dart::ShutdownIsolate(); | 977 Dart::ShutdownIsolate(); |
977 } | 978 } |
978 | 979 |
979 } // namespace dart | 980 } // namespace dart |
OLD | NEW |