| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   783   HeapSnapshot* NewSnapshot( |   783   HeapSnapshot* NewSnapshot( | 
|   784       HeapSnapshot::Type type, const char* name, unsigned uid); |   784       HeapSnapshot::Type type, const char* name, unsigned uid); | 
|   785   void SnapshotGenerationFinished(HeapSnapshot* snapshot); |   785   void SnapshotGenerationFinished(HeapSnapshot* snapshot); | 
|   786   List<HeapSnapshot*>* snapshots() { return &snapshots_; } |   786   List<HeapSnapshot*>* snapshots() { return &snapshots_; } | 
|   787   HeapSnapshot* GetSnapshot(unsigned uid); |   787   HeapSnapshot* GetSnapshot(unsigned uid); | 
|   788   void RemoveSnapshot(HeapSnapshot* snapshot); |   788   void RemoveSnapshot(HeapSnapshot* snapshot); | 
|   789  |   789  | 
|   790   StringsStorage* names() { return &names_; } |   790   StringsStorage* names() { return &names_; } | 
|   791   TokenEnumerator* token_enumerator() { return token_enumerator_; } |   791   TokenEnumerator* token_enumerator() { return token_enumerator_; } | 
|   792  |   792  | 
 |   793   SnapshotObjectId FindObjectId(Address object_addr) { | 
 |   794     return ids_.FindEntry(object_addr); | 
 |   795   } | 
|   793   SnapshotObjectId GetObjectId(Address object_addr, int object_size) { |   796   SnapshotObjectId GetObjectId(Address object_addr, int object_size) { | 
|   794     return ids_.FindOrAddEntry(object_addr, object_size); |   797     return ids_.FindOrAddEntry(object_addr, object_size); | 
|   795   } |   798   } | 
|   796   Handle<HeapObject> FindHeapObjectById(SnapshotObjectId id); |   799   Handle<HeapObject> FindHeapObjectById(SnapshotObjectId id); | 
|   797   void ObjectMoveEvent(Address from, Address to) { ids_.MoveObject(from, to); } |   800   void ObjectMoveEvent(Address from, Address to) { ids_.MoveObject(from, to); } | 
|   798   SnapshotObjectId last_assigned_id() const { |   801   SnapshotObjectId last_assigned_id() const { | 
|   799     return ids_.last_assigned_id(); |   802     return ids_.last_assigned_id(); | 
|   800   } |   803   } | 
|   801  |   804  | 
|   802  private: |   805  private: | 
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1190  |  1193  | 
|  1191   friend class HeapSnapshotJSONSerializerEnumerator; |  1194   friend class HeapSnapshotJSONSerializerEnumerator; | 
|  1192   friend class HeapSnapshotJSONSerializerIterator; |  1195   friend class HeapSnapshotJSONSerializerIterator; | 
|  1193  |  1196  | 
|  1194   DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |  1197   DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 
|  1195 }; |  1198 }; | 
|  1196  |  1199  | 
|  1197 } }  // namespace v8::internal |  1200 } }  // namespace v8::internal | 
|  1198  |  1201  | 
|  1199 #endif  // V8_PROFILE_GENERATOR_H_ |  1202 #endif  // V8_PROFILE_GENERATOR_H_ | 
| OLD | NEW |