| OLD | NEW |
| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { | 153 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { |
| 154 SetOldSpacePageFlags(chunk, IsMarking()); | 154 SetOldSpacePageFlags(chunk, IsMarking()); |
| 155 } | 155 } |
| 156 | 156 |
| 157 inline void SetNewSpacePageFlags(NewSpacePage* chunk) { | 157 inline void SetNewSpacePageFlags(NewSpacePage* chunk) { |
| 158 SetNewSpacePageFlags(chunk, IsMarking()); | 158 SetNewSpacePageFlags(chunk, IsMarking()); |
| 159 } | 159 } |
| 160 | 160 |
| 161 MarkingDeque* marking_deque() { return &marking_deque_; } | 161 MarkingDeque* marking_deque() { return &marking_deque_; } |
| 162 | 162 |
| 163 bool IsCompacting() { return IsMarking() && is_compacting_; } |
| 164 |
| 163 private: | 165 private: |
| 164 void set_should_hurry(bool val) { | 166 void set_should_hurry(bool val) { |
| 165 should_hurry_ = val; | 167 should_hurry_ = val; |
| 166 } | 168 } |
| 167 | 169 |
| 168 void ResetStepCounters() { | 170 void ResetStepCounters() { |
| 169 steps_count_ = 0; | 171 steps_count_ = 0; |
| 170 steps_took_ = 0; | 172 steps_took_ = 0; |
| 171 steps_count_since_last_gc_ = 0; | 173 steps_count_since_last_gc_ = 0; |
| 172 steps_took_since_last_gc_ = 0; | 174 steps_took_since_last_gc_ = 0; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 int steps_count_since_last_gc_; | 209 int steps_count_since_last_gc_; |
| 208 double steps_took_since_last_gc_; | 210 double steps_took_since_last_gc_; |
| 209 bool should_hurry_; | 211 bool should_hurry_; |
| 210 int allocation_marking_factor_; | 212 int allocation_marking_factor_; |
| 211 intptr_t allocated_; | 213 intptr_t allocated_; |
| 212 }; | 214 }; |
| 213 | 215 |
| 214 } } // namespace v8::internal | 216 } } // namespace v8::internal |
| 215 | 217 |
| 216 #endif // V8_INCREMENTAL_MARKING_H_ | 218 #endif // V8_INCREMENTAL_MARKING_H_ |
| OLD | NEW |