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

Side by Side Diff: src/objects.cc

Issue 8716009: Distinguish weak references in heap snapshots, group GC roots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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
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 7621 matching lines...) Expand 10 before | Expand all | Expand 10 after
7632 // Resize the initial map and all maps in its transition tree. 7632 // Resize the initial map and all maps in its transition tree.
7633 map->TraverseTransitionTree(&ShrinkInstanceSize, &slack); 7633 map->TraverseTransitionTree(&ShrinkInstanceSize, &slack);
7634 7634
7635 // Give the correct expected_nof_properties to initial maps created later. 7635 // Give the correct expected_nof_properties to initial maps created later.
7636 ASSERT(expected_nof_properties() >= slack); 7636 ASSERT(expected_nof_properties() >= slack);
7637 set_expected_nof_properties(expected_nof_properties() - slack); 7637 set_expected_nof_properties(expected_nof_properties() - slack);
7638 } 7638 }
7639 } 7639 }
7640 7640
7641 7641
7642 #define DECLARE_TAG(ignore1, name, ignore2) name,
7643 const char* VisitorSynchronization::kTags[
7644 VisitorSynchronization::kNumberOfSyncTags] = {
7645 VISITOR_SYNCHRONIZATION_TAGS_LIST(DECLARE_TAG)
7646 };
7647 #undef DECLARE_TAG
7648
7649
7650 #define DECLARE_TAG(ignore1, ignore2, name) name,
7651 const char* VisitorSynchronization::kTagNames[
7652 VisitorSynchronization::kNumberOfSyncTags] = {
7653 VISITOR_SYNCHRONIZATION_TAGS_LIST(DECLARE_TAG)
7654 };
7655 #undef DECLARE_TAG
7656
7657
7642 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) { 7658 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) {
7643 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); 7659 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode()));
7644 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); 7660 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address());
7645 Object* old_target = target; 7661 Object* old_target = target;
7646 VisitPointer(&target); 7662 VisitPointer(&target);
7647 CHECK_EQ(target, old_target); // VisitPointer doesn't change Code* *target. 7663 CHECK_EQ(target, old_target); // VisitPointer doesn't change Code* *target.
7648 } 7664 }
7649 7665
7650 7666
7651 void ObjectVisitor::VisitCodeEntry(Address entry_address) { 7667 void ObjectVisitor::VisitCodeEntry(Address entry_address) {
(...skipping 4860 matching lines...) Expand 10 before | Expand all | Expand 10 after
12512 if (break_point_objects()->IsUndefined()) return 0; 12528 if (break_point_objects()->IsUndefined()) return 0;
12513 // Single break point. 12529 // Single break point.
12514 if (!break_point_objects()->IsFixedArray()) return 1; 12530 if (!break_point_objects()->IsFixedArray()) return 1;
12515 // Multiple break points. 12531 // Multiple break points.
12516 return FixedArray::cast(break_point_objects())->length(); 12532 return FixedArray::cast(break_point_objects())->length();
12517 } 12533 }
12518 #endif // ENABLE_DEBUGGER_SUPPORT 12534 #endif // ENABLE_DEBUGGER_SUPPORT
12519 12535
12520 12536
12521 } } // namespace v8::internal 12537 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698