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

Side by Side Diff: src/v8threads.cc

Issue 2655002: Rename ThreadManager::IterateThreads to ThreadManager::IterateArchivedThreads... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 6 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 | « src/v8threads.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 state != NULL; 324 state != NULL;
325 state = state->Next()) { 325 state = state->Next()) {
326 char* data = state->data(); 326 char* data = state->data();
327 data = HandleScopeImplementer::Iterate(v, data); 327 data = HandleScopeImplementer::Iterate(v, data);
328 data = Top::Iterate(v, data); 328 data = Top::Iterate(v, data);
329 data = Relocatable::Iterate(v, data); 329 data = Relocatable::Iterate(v, data);
330 } 330 }
331 } 331 }
332 332
333 333
334 void ThreadManager::IterateThreads(ThreadVisitor* v) { 334 void ThreadManager::IterateArchivedThreads(ThreadVisitor* v) {
335 for (ThreadState* state = ThreadState::FirstInUse(); 335 for (ThreadState* state = ThreadState::FirstInUse();
336 state != NULL; 336 state != NULL;
337 state = state->Next()) { 337 state = state->Next()) {
338 char* data = state->data(); 338 char* data = state->data();
339 data += HandleScopeImplementer::ArchiveSpacePerThread(); 339 data += HandleScopeImplementer::ArchiveSpacePerThread();
340 Top::IterateThread(v, data); 340 Top::IterateThread(v, data);
341 } 341 }
342 } 342 }
343 343
344 344
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // Acknowledge the preemption by the receiving thread. 452 // Acknowledge the preemption by the receiving thread.
453 void ContextSwitcher::PreemptionReceived() { 453 void ContextSwitcher::PreemptionReceived() {
454 ASSERT(Locker::IsLocked()); 454 ASSERT(Locker::IsLocked());
455 // There is currently no accounting being done for this. But could be in the 455 // There is currently no accounting being done for this. But could be in the
456 // future, which is why we leave this in. 456 // future, which is why we leave this in.
457 } 457 }
458 458
459 459
460 } // namespace internal 460 } // namespace internal
461 } // namespace v8 461 } // namespace v8
OLDNEW
« no previous file with comments | « src/v8threads.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698