OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |