| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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/thread.h" | 5 #include "vm/thread.h" |
| 6 | 6 |
| 7 #include "vm/isolate.h" | 7 #include "vm/isolate.h" |
| 8 #include "vm/os_thread.h" | 8 #include "vm/os_thread.h" |
| 9 #include "vm/profiler.h" | 9 #include "vm/profiler.h" |
| 10 #include "vm/thread_interrupter.h" | 10 #include "vm/thread_interrupter.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 isolate->set_vm_tag(VMTag::kIdleTagId); | 80 isolate->set_vm_tag(VMTag::kIdleTagId); |
| 81 isolate->set_thread_state(NULL); | 81 isolate->set_thread_state(NULL); |
| 82 Profiler::EndExecution(isolate); | 82 Profiler::EndExecution(isolate); |
| 83 isolate->set_mutator_thread(NULL); | 83 isolate->set_mutator_thread(NULL); |
| 84 thread->isolate_ = NULL; | 84 thread->isolate_ = NULL; |
| 85 ASSERT(Isolate::Current() == NULL); | 85 ASSERT(Isolate::Current() == NULL); |
| 86 CleanUp(); | 86 CleanUp(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 | 89 |
| 90 CHA* Thread::cha() const { |
| 91 ASSERT(isolate_ != NULL); |
| 92 return isolate_->cha_; |
| 93 } |
| 94 |
| 95 |
| 96 void Thread::set_cha(CHA* value) { |
| 97 ASSERT(isolate_ != NULL); |
| 98 isolate_->cha_ = value; |
| 99 } |
| 100 |
| 90 } // namespace dart | 101 } // namespace dart |
| OLD | NEW |