Revision: 15752
Author:   [email protected]
Date:     Thu Jul 18 07:14:56 2013
Log:      Add named links to dependent_code in Map objects in heap snapshot.

[email protected], [email protected]

Review URL: https://codereview.chromium.org/19631003
http://code.google.com/p/v8/source/detail?r=15752

Modified:
 /branches/bleeding_edge/src/heap-snapshot-generator.cc

=======================================
--- /branches/bleeding_edge/src/heap-snapshot-generator.cc Wed Jul 17 11:23:16 2013 +++ /branches/bleeding_edge/src/heap-snapshot-generator.cc Thu Jul 18 07:14:56 2013
@@ -892,7 +892,7 @@
       : generator_(generator),
         parent_obj_(parent_obj),
         parent_(parent),
-        next_index_(1) {
+        next_index_(0) {
   }
   void VisitCodeEntry(Address entry_address) {
Code* code = Code::cast(Code::GetObjectFromEntryAddress(entry_address));
@@ -1147,6 +1147,10 @@
   SetInternalReference(map, entry,
                        "constructor", map->constructor(),
                        Map::kConstructorOffset);
+  TagObject(map->dependent_code(), "(dependent code)");
+  SetInternalReference(map, entry,
+                       "dependent_code", map->dependent_code(),
+                       Map::kDependentCodeOffset);
 }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to