| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 enum Type { | 291 enum Type { |
| 292 kHidden = 0, // Hidden node, may be filtered when shown to user. | 292 kHidden = 0, // Hidden node, may be filtered when shown to user. |
| 293 kArray = 1, // An array of elements. | 293 kArray = 1, // An array of elements. |
| 294 kString = 2, // A string. | 294 kString = 2, // A string. |
| 295 kObject = 3, // A JS object (except for arrays and strings). | 295 kObject = 3, // A JS object (except for arrays and strings). |
| 296 kCode = 4, // Compiled code. | 296 kCode = 4, // Compiled code. |
| 297 kClosure = 5, // Function closure. | 297 kClosure = 5, // Function closure. |
| 298 kRegExp = 6, // RegExp. | 298 kRegExp = 6, // RegExp. |
| 299 kHeapNumber = 7, // Number stored in the heap. | 299 kHeapNumber = 7, // Number stored in the heap. |
| 300 kNative = 8, // Native object (not from V8 heap). | 300 kNative = 8, // Native object (not from V8 heap). |
| 301 kSynthetic = 9 // Synthetic object, usualy used for grouping | 301 kSynthetic = 9 // Synthetic object, usually used for grouping |
| 302 // snapshot items together. | 302 // snapshot items together. |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 /** Returns node type (see HeapGraphNode::Type). */ | 305 /** Returns node type (see HeapGraphNode::Type). */ |
| 306 Type GetType() const; | 306 Type GetType() const; |
| 307 | 307 |
| 308 /** | 308 /** |
| 309 * Returns node name. Depending on node's type this can be the name | 309 * Returns node name. Depending on node's type this can be the name |
| 310 * of the constructor (for objects), the name of the function (for | 310 * of the constructor (for objects), the name of the function (for |
| 311 * closures), string value, or an empty string (for compiled code). | 311 * closures), string value, or an empty string (for compiled code). |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 }; | 654 }; |
| 655 | 655 |
| 656 | 656 |
| 657 } // namespace v8 | 657 } // namespace v8 |
| 658 | 658 |
| 659 | 659 |
| 660 #undef V8EXPORT | 660 #undef V8EXPORT |
| 661 | 661 |
| 662 | 662 |
| 663 #endif // V8_V8_PROFILER_H_ | 663 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |