| 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 "vm/code_observers.h" | 10 #include "vm/code_observers.h" |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 #else | 648 #else |
| 649 #define REUSABLE_HANDLE_SCOPE_INIT(object) | 649 #define REUSABLE_HANDLE_SCOPE_INIT(object) |
| 650 #endif // defined(DEBUG) | 650 #endif // defined(DEBUG) |
| 651 | 651 |
| 652 #define REUSABLE_HANDLE_INITIALIZERS(object) \ | 652 #define REUSABLE_HANDLE_INITIALIZERS(object) \ |
| 653 object##_handle_(NULL), | 653 object##_handle_(NULL), |
| 654 | 654 |
| 655 Isolate::Isolate(const Dart_IsolateFlags& api_flags) | 655 Isolate::Isolate(const Dart_IsolateFlags& api_flags) |
| 656 : vm_tag_(0), | 656 : vm_tag_(0), |
| 657 store_buffer_(new StoreBuffer()), | 657 store_buffer_(new StoreBuffer()), |
| 658 heap_(NULL), |
| 658 thread_registry_(new ThreadRegistry()), | 659 thread_registry_(new ThreadRegistry()), |
| 659 message_notify_callback_(NULL), | 660 message_notify_callback_(NULL), |
| 660 name_(NULL), | 661 name_(NULL), |
| 661 debugger_name_(NULL), | 662 debugger_name_(NULL), |
| 662 start_time_(OS::GetCurrentTimeMicros()), | 663 start_time_(OS::GetCurrentTimeMicros()), |
| 663 main_port_(0), | 664 main_port_(0), |
| 664 origin_id_(0), | 665 origin_id_(0), |
| 665 pause_capability_(0), | 666 pause_capability_(0), |
| 666 terminate_capability_(0), | 667 terminate_capability_(0), |
| 667 errors_fatal_(true), | 668 errors_fatal_(true), |
| 668 heap_(NULL), | |
| 669 object_store_(NULL), | 669 object_store_(NULL), |
| 670 top_exit_frame_info_(0), | 670 top_exit_frame_info_(0), |
| 671 init_callback_data_(NULL), | 671 init_callback_data_(NULL), |
| 672 environment_callback_(NULL), | 672 environment_callback_(NULL), |
| 673 library_tag_handler_(NULL), | 673 library_tag_handler_(NULL), |
| 674 api_state_(NULL), | 674 api_state_(NULL), |
| 675 debugger_(NULL), | 675 debugger_(NULL), |
| 676 single_step_(false), | 676 single_step_(false), |
| 677 resume_request_(false), | 677 resume_request_(false), |
| 678 last_resume_timestamp_(OS::GetCurrentTimeMillis()), | 678 last_resume_timestamp_(OS::GetCurrentTimeMillis()), |
| (...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2346 serialized_message_, serialized_message_len_); | 2346 serialized_message_, serialized_message_len_); |
| 2347 } | 2347 } |
| 2348 | 2348 |
| 2349 | 2349 |
| 2350 void IsolateSpawnState::Cleanup() { | 2350 void IsolateSpawnState::Cleanup() { |
| 2351 SwitchIsolateScope switch_scope(I); | 2351 SwitchIsolateScope switch_scope(I); |
| 2352 Dart::ShutdownIsolate(); | 2352 Dart::ShutdownIsolate(); |
| 2353 } | 2353 } |
| 2354 | 2354 |
| 2355 } // namespace dart | 2355 } // namespace dart |
| OLD | NEW |