| 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 last_allocationprofile_gc_timestamp_(0), | 588 last_allocationprofile_gc_timestamp_(0), |
| 589 object_id_ring_(NULL), | 589 object_id_ring_(NULL), |
| 590 trace_buffer_(NULL), | 590 trace_buffer_(NULL), |
| 591 profiler_data_(NULL), | 591 profiler_data_(NULL), |
| 592 thread_state_(NULL), | 592 thread_state_(NULL), |
| 593 tag_table_(GrowableObjectArray::null()), | 593 tag_table_(GrowableObjectArray::null()), |
| 594 current_tag_(UserTag::null()), | 594 current_tag_(UserTag::null()), |
| 595 default_tag_(UserTag::null()), | 595 default_tag_(UserTag::null()), |
| 596 deoptimized_code_array_(GrowableObjectArray::null()), | 596 deoptimized_code_array_(GrowableObjectArray::null()), |
| 597 metrics_list_head_(NULL), | 597 metrics_list_head_(NULL), |
| 598 cha_(NULL), |
| 598 next_(NULL), | 599 next_(NULL), |
| 599 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 600 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
| 600 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) | 601 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) |
| 601 reusable_handles_() { | 602 reusable_handles_() { |
| 602 set_vm_tag(VMTag::kIdleTagId); | 603 set_vm_tag(VMTag::kIdleTagId); |
| 603 set_user_tag(UserTags::kDefaultUserTag); | 604 set_user_tag(UserTags::kDefaultUserTag); |
| 604 } | 605 } |
| 605 | 606 |
| 606 Isolate::Isolate(Isolate* original) | 607 Isolate::Isolate(Isolate* original) |
| 607 : mutator_thread_(NULL), | 608 : mutator_thread_(NULL), |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 last_allocationprofile_accumulator_reset_timestamp_(0), | 652 last_allocationprofile_accumulator_reset_timestamp_(0), |
| 652 last_allocationprofile_gc_timestamp_(0), | 653 last_allocationprofile_gc_timestamp_(0), |
| 653 object_id_ring_(NULL), | 654 object_id_ring_(NULL), |
| 654 trace_buffer_(NULL), | 655 trace_buffer_(NULL), |
| 655 profiler_data_(NULL), | 656 profiler_data_(NULL), |
| 656 thread_state_(NULL), | 657 thread_state_(NULL), |
| 657 tag_table_(GrowableObjectArray::null()), | 658 tag_table_(GrowableObjectArray::null()), |
| 658 current_tag_(UserTag::null()), | 659 current_tag_(UserTag::null()), |
| 659 default_tag_(UserTag::null()), | 660 default_tag_(UserTag::null()), |
| 660 metrics_list_head_(NULL), | 661 metrics_list_head_(NULL), |
| 662 cha_(NULL), |
| 661 next_(NULL), | 663 next_(NULL), |
| 662 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) | 664 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) |
| 663 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) | 665 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) |
| 664 reusable_handles_() { | 666 reusable_handles_() { |
| 665 } | 667 } |
| 666 #undef REUSABLE_HANDLE_SCOPE_INIT | 668 #undef REUSABLE_HANDLE_SCOPE_INIT |
| 667 #undef REUSABLE_HANDLE_INITIALIZERS | 669 #undef REUSABLE_HANDLE_INITIALIZERS |
| 668 | 670 |
| 669 Isolate::~Isolate() { | 671 Isolate::~Isolate() { |
| 670 free(name_); | 672 free(name_); |
| (...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 serialized_message_, serialized_message_len_); | 1949 serialized_message_, serialized_message_len_); |
| 1948 } | 1950 } |
| 1949 | 1951 |
| 1950 | 1952 |
| 1951 void IsolateSpawnState::Cleanup() { | 1953 void IsolateSpawnState::Cleanup() { |
| 1952 SwitchIsolateScope switch_scope(I); | 1954 SwitchIsolateScope switch_scope(I); |
| 1953 Dart::ShutdownIsolate(); | 1955 Dart::ShutdownIsolate(); |
| 1954 } | 1956 } |
| 1955 | 1957 |
| 1956 } // namespace dart | 1958 } // namespace dart |
| OLD | NEW |