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

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

Issue 1402383003: Simplify timeline backend (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « runtime/vm/thread.h ('k') | runtime/vm/thread_registry.h » ('j') | 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/growable_array.h" 7 #include "vm/growable_array.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/log.h" 10 #include "vm/log.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #define REUSABLE_HANDLE_INITIALIZERS(object) \ 175 #define REUSABLE_HANDLE_INITIALIZERS(object) \
176 object##_handle_(NULL), 176 object##_handle_(NULL),
177 177
178 178
179 Thread::Thread(bool init_vm_constants) 179 Thread::Thread(bool init_vm_constants)
180 : id_(OSThread::GetCurrentThreadId()), 180 : id_(OSThread::GetCurrentThreadId()),
181 thread_interrupt_callback_(NULL), 181 thread_interrupt_callback_(NULL),
182 thread_interrupt_data_(NULL), 182 thread_interrupt_data_(NULL),
183 isolate_(NULL), 183 isolate_(NULL),
184 heap_(NULL), 184 heap_(NULL),
185 timeline_block_(NULL),
185 store_buffer_block_(NULL), 186 store_buffer_block_(NULL),
186 log_(new class Log()), 187 log_(new class Log()),
187 deopt_id_(0), 188 deopt_id_(0),
188 vm_tag_(0), 189 vm_tag_(0),
189 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) 190 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS)
190 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) 191 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT)
191 reusable_handles_(), 192 reusable_handles_(),
192 cha_(NULL), 193 cha_(NULL),
193 no_callback_scope_depth_(0), 194 no_callback_scope_depth_(0),
194 thread_list_next_(NULL) { 195 thread_list_next_(NULL) {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 Thread* ThreadIterator::Next() { 523 Thread* ThreadIterator::Next() {
523 ASSERT(Thread::thread_list_lock_ != NULL); 524 ASSERT(Thread::thread_list_lock_ != NULL);
524 ASSERT(Thread::thread_list_lock_->IsOwnedByCurrentThread()); 525 ASSERT(Thread::thread_list_lock_->IsOwnedByCurrentThread());
525 Thread* current = next_; 526 Thread* current = next_;
526 next_ = next_->thread_list_next_; 527 next_ = next_->thread_list_next_;
527 return current; 528 return current;
528 } 529 }
529 530
530 531
531 } // namespace dart 532 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/thread.h ('k') | runtime/vm/thread_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698