| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 reader_.ExpectC(']'); | 1625 reader_.ExpectC(']'); |
| 1626 } | 1626 } |
| 1627 #endif | 1627 #endif |
| 1628 | 1628 |
| 1629 // Resolve the encoded pointers we just read in. | 1629 // Resolve the encoded pointers we just read in. |
| 1630 // Same as obj->Iterate(this), but doesn't rely on the map pointer being set. | 1630 // Same as obj->Iterate(this), but doesn't rely on the map pointer being set. |
| 1631 VisitPointer(reinterpret_cast<Object**>(obj->address())); | 1631 VisitPointer(reinterpret_cast<Object**>(obj->address())); |
| 1632 obj->IterateBody(type, size, this); | 1632 obj->IterateBody(type, size, this); |
| 1633 | 1633 |
| 1634 if (type == CODE_TYPE) { | 1634 if (type == CODE_TYPE) { |
| 1635 Code* code = Code::cast(obj); | 1635 LOG(CodeMoveEvent(a, obj->address())); |
| 1636 LOG(CodeMoveEvent(a, code->address())); | |
| 1637 } | 1636 } |
| 1638 objects_++; | 1637 objects_++; |
| 1639 return o; | 1638 return o; |
| 1640 } | 1639 } |
| 1641 | 1640 |
| 1642 | 1641 |
| 1643 static inline Object* ResolvePaged(int page_index, | 1642 static inline Object* ResolvePaged(int page_index, |
| 1644 int page_offset, | 1643 int page_offset, |
| 1645 PagedSpace* space, | 1644 PagedSpace* space, |
| 1646 List<Page*>* page_list) { | 1645 List<Page*>* page_list) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1708 ASSERT(index < large_objects_.length()); | 1707 ASSERT(index < large_objects_.length()); |
| 1709 } | 1708 } |
| 1710 return large_objects_[index]; // s.page_offset() is ignored. | 1709 return large_objects_[index]; // s.page_offset() is ignored. |
| 1711 } | 1710 } |
| 1712 UNREACHABLE(); | 1711 UNREACHABLE(); |
| 1713 return NULL; | 1712 return NULL; |
| 1714 } | 1713 } |
| 1715 | 1714 |
| 1716 | 1715 |
| 1717 } } // namespace v8::internal | 1716 } } // namespace v8::internal |
| OLD | NEW |