OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 enum Type { | 91 enum Type { |
92 kHidden = v8::HeapGraphNode::kHidden, | 92 kHidden = v8::HeapGraphNode::kHidden, |
93 kArray = v8::HeapGraphNode::kArray, | 93 kArray = v8::HeapGraphNode::kArray, |
94 kString = v8::HeapGraphNode::kString, | 94 kString = v8::HeapGraphNode::kString, |
95 kObject = v8::HeapGraphNode::kObject, | 95 kObject = v8::HeapGraphNode::kObject, |
96 kCode = v8::HeapGraphNode::kCode, | 96 kCode = v8::HeapGraphNode::kCode, |
97 kClosure = v8::HeapGraphNode::kClosure, | 97 kClosure = v8::HeapGraphNode::kClosure, |
98 kRegExp = v8::HeapGraphNode::kRegExp, | 98 kRegExp = v8::HeapGraphNode::kRegExp, |
99 kHeapNumber = v8::HeapGraphNode::kHeapNumber, | 99 kHeapNumber = v8::HeapGraphNode::kHeapNumber, |
100 kNative = v8::HeapGraphNode::kNative, | 100 kNative = v8::HeapGraphNode::kNative, |
101 kSynthetic = v8::HeapGraphNode::kSynthetic, | 101 kSynthetic = v8::HeapGraphNode::kSynthetic |
102 kContext = v8::HeapGraphNode::kContext | |
103 }; | 102 }; |
104 static const int kNoEntry; | 103 static const int kNoEntry; |
105 | 104 |
106 HeapEntry() { } | 105 HeapEntry() { } |
107 HeapEntry(HeapSnapshot* snapshot, | 106 HeapEntry(HeapSnapshot* snapshot, |
108 Type type, | 107 Type type, |
109 const char* name, | 108 const char* name, |
110 SnapshotObjectId id, | 109 SnapshotObjectId id, |
111 int self_size); | 110 int self_size); |
112 | 111 |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 friend class HeapSnapshotJSONSerializerIterator; | 689 friend class HeapSnapshotJSONSerializerIterator; |
691 | 690 |
692 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 691 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
693 }; | 692 }; |
694 | 693 |
695 | 694 |
696 } } // namespace v8::internal | 695 } } // namespace v8::internal |
697 | 696 |
698 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 697 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
699 | 698 |
OLD | NEW |