| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 cur_page = space_->anchor(); | 109 cur_page = space_->anchor(); |
| 110 } else { | 110 } else { |
| 111 cur_page = Page::FromAddress(cur_addr_ - 1); | 111 cur_page = Page::FromAddress(cur_addr_ - 1); |
| 112 ASSERT(cur_addr_ == cur_page->ObjectAreaEnd()); | 112 ASSERT(cur_addr_ == cur_page->ObjectAreaEnd()); |
| 113 } | 113 } |
| 114 cur_page = cur_page->next_page(); | 114 cur_page = cur_page->next_page(); |
| 115 if (cur_page == space_->anchor()) return false; | 115 if (cur_page == space_->anchor()) return false; |
| 116 cur_addr_ = cur_page->ObjectAreaStart(); | 116 cur_addr_ = cur_page->ObjectAreaStart(); |
| 117 cur_end_ = cur_page->ObjectAreaEnd(); | 117 cur_end_ = cur_page->ObjectAreaEnd(); |
| 118 ASSERT(!cur_page->IsFlagSet(Page::WAS_SWEPT_CONSERVATIVELY)); | 118 ASSERT(!cur_page->IsFlagSet(Page::WAS_SWEPT_CONSERVATIVELY)); |
| 119 ASSERT(IncrementalMarking::state() == IncrementalMarking::STOPPED); | |
| 120 return true; | 119 return true; |
| 121 } | 120 } |
| 122 | 121 |
| 123 | 122 |
| 124 #ifdef DEBUG | 123 #ifdef DEBUG |
| 125 void HeapObjectIterator::Verify() { | 124 void HeapObjectIterator::Verify() { |
| 126 // TODO(gc): We should do something here. | 125 // TODO(gc): We should do something here. |
| 127 } | 126 } |
| 128 #endif | 127 #endif |
| 129 | 128 |
| (...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { | 2114 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { |
| 2116 if (obj->IsCode()) { | 2115 if (obj->IsCode()) { |
| 2117 Code* code = Code::cast(obj); | 2116 Code* code = Code::cast(obj); |
| 2118 code_kind_statistics[code->kind()] += code->Size(); | 2117 code_kind_statistics[code->kind()] += code->Size(); |
| 2119 } | 2118 } |
| 2120 } | 2119 } |
| 2121 } | 2120 } |
| 2122 #endif // DEBUG | 2121 #endif // DEBUG |
| 2123 | 2122 |
| 2124 } } // namespace v8::internal | 2123 } } // namespace v8::internal |
| OLD | NEW |