OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 /** | 190 /** |
191 * HeapSnapshotEdge represents a directed connection between heap | 191 * HeapSnapshotEdge represents a directed connection between heap |
192 * graph nodes: from retaners to retained nodes. | 192 * graph nodes: from retaners to retained nodes. |
193 */ | 193 */ |
194 class V8EXPORT HeapGraphEdge { | 194 class V8EXPORT HeapGraphEdge { |
195 public: | 195 public: |
196 enum Type { | 196 enum Type { |
197 CONTEXT_VARIABLE = 0, // A variable from a function context. | 197 CONTEXT_VARIABLE = 0, // A variable from a function context. |
198 ELEMENT = 1, // An element of an array. | 198 ELEMENT = 1, // An element of an array. |
199 PROPERTY = 2 // A named object property. | 199 PROPERTY = 2, // A named object property. |
| 200 INTERNAL = 3 // A link that can't be accessed from JS, |
| 201 // thus, its name isn't a real property name. |
200 }; | 202 }; |
201 | 203 |
202 /** Returns edge type (see HeapGraphEdge::Type). */ | 204 /** Returns edge type (see HeapGraphEdge::Type). */ |
203 Type GetType() const; | 205 Type GetType() const; |
204 | 206 |
205 /** | 207 /** |
206 * Returns edge name. This can be a variable name, an element index, or | 208 * Returns edge name. This can be a variable name, an element index, or |
207 * a property name. | 209 * a property name. |
208 */ | 210 */ |
209 Handle<Value> GetName() const; | 211 Handle<Value> GetName() const; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 }; | 325 }; |
324 | 326 |
325 | 327 |
326 } // namespace v8 | 328 } // namespace v8 |
327 | 329 |
328 | 330 |
329 #undef V8EXPORT | 331 #undef V8EXPORT |
330 | 332 |
331 | 333 |
332 #endif // V8_V8_PROFILER_H_ | 334 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |