| 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 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1642 // Extract the address value from the string. | 1642 // Extract the address value from the string. |
| 1643 int value = static_cast<int>(StringToInt(*address, 16)); | 1643 int value = static_cast<int>(StringToInt(*address, 16)); |
| 1644 Object* obj = reinterpret_cast<Object*>(value); | 1644 Object* obj = reinterpret_cast<Object*>(value); |
| 1645 return Smi::FromInt(GetObjId(obj)); | 1645 return Smi::FromInt(GetObjId(obj)); |
| 1646 } | 1646 } |
| 1647 | 1647 |
| 1648 | 1648 |
| 1649 // Helper class for copying HeapObjects. | 1649 // Helper class for copying HeapObjects. |
| 1650 class LolVisitor: public ObjectVisitor { | 1650 class LolVisitor: public ObjectVisitor { |
| 1651 public: | 1651 public: |
| 1652 | |
| 1653 LolVisitor(HeapObject* target, Handle<HeapObject> handle_to_skip) | 1652 LolVisitor(HeapObject* target, Handle<HeapObject> handle_to_skip) |
| 1654 : target_(target), handle_to_skip_(handle_to_skip), found_(false) {} | 1653 : target_(target), handle_to_skip_(handle_to_skip), found_(false) {} |
| 1655 | 1654 |
| 1656 void VisitPointer(Object** p) { CheckPointer(p); } | 1655 void VisitPointer(Object** p) { CheckPointer(p); } |
| 1657 | 1656 |
| 1658 void VisitPointers(Object** start, Object** end) { | 1657 void VisitPointers(Object** start, Object** end) { |
| 1659 // Check all HeapObject pointers in [start, end). | 1658 // Check all HeapObject pointers in [start, end). |
| 1660 for (Object** p = start; !found() && p < end; p++) CheckPointer(p); | 1659 for (Object** p = start; !found() && p < end; p++) CheckPointer(p); |
| 1661 } | 1660 } |
| 1662 | 1661 |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 i++, heap_obj, Heap::new_space()->FromSpaceStart()); | 2578 i++, heap_obj, Heap::new_space()->FromSpaceStart()); |
| 2580 } | 2579 } |
| 2581 } | 2580 } |
| 2582 } | 2581 } |
| 2583 #endif // VERIFY_LOL | 2582 #endif // VERIFY_LOL |
| 2584 | 2583 |
| 2585 | 2584 |
| 2586 } } // namespace v8::internal | 2585 } } // namespace v8::internal |
| 2587 | 2586 |
| 2588 #endif // LIVE_OBJECT_LIST | 2587 #endif // LIVE_OBJECT_LIST |
| 2589 | |
| OLD | NEW |