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

Side by Side Diff: src/mark-compact.cc

Issue 303493005: Drop bogus assert after r21552. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "code-stubs.h" 7 #include "code-stubs.h"
8 #include "compilation-cache.h" 8 #include "compilation-cache.h"
9 #include "cpu-profiler.h" 9 #include "cpu-profiler.h"
10 #include "deoptimizer.h" 10 #include "deoptimizer.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 } 393 }
394 394
395 return compacting_; 395 return compacting_;
396 } 396 }
397 397
398 398
399 void MarkCompactCollector::CollectGarbage() { 399 void MarkCompactCollector::CollectGarbage() {
400 // Make sure that Prepare() has been called. The individual steps below will 400 // Make sure that Prepare() has been called. The individual steps below will
401 // update the state as they proceed. 401 // update the state as they proceed.
402 ASSERT(state_ == PREPARE_GC); 402 ASSERT(state_ == PREPARE_GC);
403 ASSERT(encountered_weak_collections_ == Smi::FromInt(0));
404 403
405 MarkLiveObjects(); 404 MarkLiveObjects();
406 ASSERT(heap_->incremental_marking()->IsStopped()); 405 ASSERT(heap_->incremental_marking()->IsStopped());
407 406
408 if (FLAG_collect_maps) ClearNonLiveReferences(); 407 if (FLAG_collect_maps) ClearNonLiveReferences();
409 408
410 ClearWeakCollections(); 409 ClearWeakCollections();
411 410
412 #ifdef VERIFY_HEAP 411 #ifdef VERIFY_HEAP
413 if (FLAG_verify_heap) { 412 if (FLAG_verify_heap) {
(...skipping 4049 matching lines...) Expand 10 before | Expand all | Expand 10 after
4463 while (buffer != NULL) { 4462 while (buffer != NULL) {
4464 SlotsBuffer* next_buffer = buffer->next(); 4463 SlotsBuffer* next_buffer = buffer->next();
4465 DeallocateBuffer(buffer); 4464 DeallocateBuffer(buffer);
4466 buffer = next_buffer; 4465 buffer = next_buffer;
4467 } 4466 }
4468 *buffer_address = NULL; 4467 *buffer_address = NULL;
4469 } 4468 }
4470 4469
4471 4470
4472 } } // namespace v8::internal 4471 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698