Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: include/v8-profiler.h

Issue 8716009: Distinguish weak references in heap snapshots, group GC roots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | src/objects.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 public: 212 public:
213 enum Type { 213 enum Type {
214 kContextVariable = 0, // A variable from a function context. 214 kContextVariable = 0, // A variable from a function context.
215 kElement = 1, // An element of an array. 215 kElement = 1, // An element of an array.
216 kProperty = 2, // A named object property. 216 kProperty = 2, // A named object property.
217 kInternal = 3, // A link that can't be accessed from JS, 217 kInternal = 3, // A link that can't be accessed from JS,
218 // thus, its name isn't a real property name 218 // thus, its name isn't a real property name
219 // (e.g. parts of a ConsString). 219 // (e.g. parts of a ConsString).
220 kHidden = 4, // A link that is needed for proper sizes 220 kHidden = 4, // A link that is needed for proper sizes
221 // calculation, but may be hidden from user. 221 // calculation, but may be hidden from user.
222 kShortcut = 5 // A link that must not be followed during 222 kShortcut = 5, // A link that must not be followed during
223 // sizes calculation. 223 // sizes calculation.
224 kWeak = 6 // A weak persistent handle reference.
Vitaly Repeshko 2011/12/02 23:39:47 Can this be used for other weak references, e.g.,
mnaganov (inactive) 2011/12/05 12:55:25 Sure, just a stale comment. Updated.
224 }; 225 };
225 226
226 /** Returns edge type (see HeapGraphEdge::Type). */ 227 /** Returns edge type (see HeapGraphEdge::Type). */
227 Type GetType() const; 228 Type GetType() const;
228 229
229 /** 230 /**
230 * Returns edge name. This can be a variable name, an element index, or 231 * Returns edge name. This can be a variable name, an element index, or
231 * a property name. 232 * a property name.
232 */ 233 */
233 Handle<Value> GetName() const; 234 Handle<Value> GetName() const;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 }; 500 };
500 501
501 502
502 } // namespace v8 503 } // namespace v8
503 504
504 505
505 #undef V8EXPORT 506 #undef V8EXPORT
506 507
507 508
508 #endif // V8_V8_PROFILER_H_ 509 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698