| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 | 54 |
| 55 // ------------------------------------------------------------------------- | 55 // ------------------------------------------------------------------------- |
| 56 // MarkCompactCollector | 56 // MarkCompactCollector |
| 57 | 57 |
| 58 MarkCompactCollector::MarkCompactCollector() : // NOLINT | 58 MarkCompactCollector::MarkCompactCollector() : // NOLINT |
| 59 #ifdef DEBUG | 59 #ifdef DEBUG |
| 60 state_(IDLE), | 60 state_(IDLE), |
| 61 #endif | 61 #endif |
| 62 sweep_precisely_(false), | 62 sweep_precisely_(false), |
| 63 reduce_memory_footprint_(false), |
| 64 abort_incremental_marking_(false), |
| 63 compacting_(false), | 65 compacting_(false), |
| 64 was_marked_incrementally_(false), | 66 was_marked_incrementally_(false), |
| 65 collect_maps_(FLAG_collect_maps), | 67 collect_maps_(FLAG_collect_maps), |
| 66 flush_monomorphic_ics_(false), | 68 flush_monomorphic_ics_(false), |
| 67 tracer_(NULL), | 69 tracer_(NULL), |
| 68 migration_slots_buffer_(NULL), | 70 migration_slots_buffer_(NULL), |
| 69 heap_(NULL), | 71 heap_(NULL), |
| 70 code_flusher_(NULL), | 72 code_flusher_(NULL), |
| 71 encountered_weak_maps_(NULL) { } | 73 encountered_weak_maps_(NULL) { } |
| 72 | 74 |
| (...skipping 4056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4129 while (buffer != NULL) { | 4131 while (buffer != NULL) { |
| 4130 SlotsBuffer* next_buffer = buffer->next(); | 4132 SlotsBuffer* next_buffer = buffer->next(); |
| 4131 DeallocateBuffer(buffer); | 4133 DeallocateBuffer(buffer); |
| 4132 buffer = next_buffer; | 4134 buffer = next_buffer; |
| 4133 } | 4135 } |
| 4134 *buffer_address = NULL; | 4136 *buffer_address = NULL; |
| 4135 } | 4137 } |
| 4136 | 4138 |
| 4137 | 4139 |
| 4138 } } // namespace v8::internal | 4140 } } // namespace v8::internal |
| OLD | NEW |