Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/liveobjectlist.cc

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/liveedit.cc ('k') | src/log.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698