| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 #ifdef ENABLE_GDB_JIT_INTERFACE | 344 #ifdef ENABLE_GDB_JIT_INTERFACE |
| 345 // If GDBJIT interface is active disable compaction. | 345 // If GDBJIT interface is active disable compaction. |
| 346 if (FLAG_gdbjit) return false; | 346 if (FLAG_gdbjit) return false; |
| 347 #endif | 347 #endif |
| 348 | 348 |
| 349 CollectEvacuationCandidates(heap()->old_pointer_space()); | 349 CollectEvacuationCandidates(heap()->old_pointer_space()); |
| 350 CollectEvacuationCandidates(heap()->old_data_space()); | 350 CollectEvacuationCandidates(heap()->old_data_space()); |
| 351 | 351 |
| 352 if (FLAG_compact_code_space && | 352 if (FLAG_compact_code_space && |
| 353 heap()->isolate()->logger()->is_moved_code_supported() && |
| 353 (mode == NON_INCREMENTAL_COMPACTION || | 354 (mode == NON_INCREMENTAL_COMPACTION || |
| 354 FLAG_incremental_code_compaction)) { | 355 FLAG_incremental_code_compaction)) { |
| 355 CollectEvacuationCandidates(heap()->code_space()); | 356 CollectEvacuationCandidates(heap()->code_space()); |
| 356 } else if (FLAG_trace_fragmentation) { | 357 } else if (FLAG_trace_fragmentation) { |
| 357 TraceFragmentation(heap()->code_space()); | 358 TraceFragmentation(heap()->code_space()); |
| 358 } | 359 } |
| 359 | 360 |
| 360 if (FLAG_trace_fragmentation) { | 361 if (FLAG_trace_fragmentation) { |
| 361 TraceFragmentation(heap()->map_space()); | 362 TraceFragmentation(heap()->map_space()); |
| 362 TraceFragmentation(heap()->cell_space()); | 363 TraceFragmentation(heap()->cell_space()); |
| (...skipping 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3848 while (buffer != NULL) { | 3849 while (buffer != NULL) { |
| 3849 SlotsBuffer* next_buffer = buffer->next(); | 3850 SlotsBuffer* next_buffer = buffer->next(); |
| 3850 DeallocateBuffer(buffer); | 3851 DeallocateBuffer(buffer); |
| 3851 buffer = next_buffer; | 3852 buffer = next_buffer; |
| 3852 } | 3853 } |
| 3853 *buffer_address = NULL; | 3854 *buffer_address = NULL; |
| 3854 } | 3855 } |
| 3855 | 3856 |
| 3856 | 3857 |
| 3857 } } // namespace v8::internal | 3858 } } // namespace v8::internal |
| OLD | NEW |