Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: runtime/vm/thread.cc

Issue 1061243003: Move CHA field back to Isolate, pending a permanent fix. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698