 Chromium Code Reviews
 Chromium Code Reviews Issue 9918005:
  Current schema of calculation max_snapshot_js_object_id is not always correct.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 9918005:
  Current schema of calculation max_snapshot_js_object_id is not always correct.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: src/profile-generator.h | 
| diff --git a/src/profile-generator.h b/src/profile-generator.h | 
| index 8010538cc9096d9f928533e3d69668e79cac21df..a76bc94f2dc45fd7325704b605a0f08bcc9c3574 100644 | 
| --- a/src/profile-generator.h | 
| +++ b/src/profile-generator.h | 
| @@ -645,6 +645,7 @@ class HeapSnapshot { | 
| HeapEntry* gc_subroot(int index) { return gc_subroot_entries_[index]; } | 
| List<HeapEntry*>* entries() { return &entries_; } | 
| size_t raw_entries_size() { return raw_entries_size_; } | 
| + void RememberLastSnapshotJSObjectId(); | 
| SnapshotObjectId max_snapshot_js_object_id() const { | 
| return max_snapshot_js_object_id_; | 
| } | 
| @@ -704,6 +705,9 @@ class HeapObjectsMap { | 
| void SnapshotGenerationFinished(); | 
| SnapshotObjectId FindObject(Address addr); | 
| void MoveObject(Address from, Address to); | 
| + SnapshotObjectId max_snapshot_js_object_id() const { | 
| 
mnaganov (inactive)
2012/03/29 12:12:17
I think, a name like 'current_id' is more appropri
 | 
| + return next_id_ - kObjectIdStep; | 
| + } | 
| static SnapshotObjectId GenerateId(v8::RetainedObjectInfo* info); | 
| static inline SnapshotObjectId GetNthGcSubrootId(int delta); | 
| @@ -768,6 +772,9 @@ class HeapSnapshotsCollection { | 
| SnapshotObjectId GetObjectId(Address addr) { return ids_.FindObject(addr); } | 
| Handle<HeapObject> FindHeapObjectById(SnapshotObjectId id); | 
| void ObjectMoveEvent(Address from, Address to) { ids_.MoveObject(from, to); } | 
| + SnapshotObjectId max_snapshot_js_object_id() const { | 
| + return ids_.max_snapshot_js_object_id(); | 
| + } | 
| private: | 
| INLINE(static bool HeapSnapshotsMatch(void* key1, void* key2)) { |