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

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

Issue 8043022: Enable compaction, disable code-compaction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | test/mjsunit/mjsunit.status » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // Rather than passing the tracer around we stash it in a static member 478 // Rather than passing the tracer around we stash it in a static member
479 // variable. 479 // variable.
480 tracer_ = tracer; 480 tracer_ = tracer;
481 481
482 #ifdef DEBUG 482 #ifdef DEBUG
483 ASSERT(state_ == IDLE); 483 ASSERT(state_ == IDLE);
484 state_ = PREPARE_GC; 484 state_ = PREPARE_GC;
485 #endif 485 #endif
486 486
487 // TODO(1726) Revert this into an assertion when compaction is enabled. 487 // TODO(1726) Revert this into an assertion when compaction is enabled.
488 if (FLAG_never_compact) FLAG_always_compact = false; 488 ASSERT(!FLAG_never_compact || !FLAG_always_compact);
489 489
490 if (collect_maps_) CreateBackPointers(); 490 if (collect_maps_) CreateBackPointers();
491 #ifdef ENABLE_GDB_JIT_INTERFACE 491 #ifdef ENABLE_GDB_JIT_INTERFACE
492 if (FLAG_gdbjit) { 492 if (FLAG_gdbjit) {
493 // If GDBJIT interface is active disable compaction. 493 // If GDBJIT interface is active disable compaction.
494 compacting_collection_ = false; 494 compacting_collection_ = false;
495 } 495 }
496 #endif 496 #endif
497 497
498 // Clear marking bits for precise sweeping to collect all garbage. 498 // Clear marking bits for precise sweeping to collect all garbage.
(...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after
3835 while (buffer != NULL) { 3835 while (buffer != NULL) {
3836 SlotsBuffer* next_buffer = buffer->next(); 3836 SlotsBuffer* next_buffer = buffer->next();
3837 DeallocateBuffer(buffer); 3837 DeallocateBuffer(buffer);
3838 buffer = next_buffer; 3838 buffer = next_buffer;
3839 } 3839 }
3840 *buffer_address = NULL; 3840 *buffer_address = NULL;
3841 } 3841 }
3842 3842
3843 3843
3844 } } // namespace v8::internal 3844 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698