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

Side by Side Diff: include/v8.h

Issue 6686053: Introduce one way dependencies into object grouping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renaming Created 9 years, 9 months 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/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 2700 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 * intended to be used in the before-garbage-collection callback 2711 * intended to be used in the before-garbage-collection callback
2712 * function, for instance to simulate DOM tree connections among JS 2712 * function, for instance to simulate DOM tree connections among JS
2713 * wrapper objects. 2713 * wrapper objects.
2714 * See v8-profiler.h for RetainedObjectInfo interface description. 2714 * See v8-profiler.h for RetainedObjectInfo interface description.
2715 */ 2715 */
2716 static void AddObjectGroup(Persistent<Value>* objects, 2716 static void AddObjectGroup(Persistent<Value>* objects,
2717 size_t length, 2717 size_t length,
2718 RetainedObjectInfo* info = NULL); 2718 RetainedObjectInfo* info = NULL);
2719 2719
2720 /** 2720 /**
2721 * Allows the host application to declare implicit references between
2722 * the objects: if |parent| is alive, all |children| are alive too.
2723 * After each garbage collection, all implicit references
2724 * are removed. It is intended to be used in the before-garbage-collection
2725 * callback function.
2726 */
2727 static void AddImplicitReferences(Persistent<Object> parent,
2728 Persistent<Value>* children,
2729 size_t length);
2730
2731 /**
2721 * Initializes from snapshot if possible. Otherwise, attempts to 2732 * Initializes from snapshot if possible. Otherwise, attempts to
2722 * initialize from scratch. This function is called implicitly if 2733 * initialize from scratch. This function is called implicitly if
2723 * you use the API without calling it first. 2734 * you use the API without calling it first.
2724 */ 2735 */
2725 static bool Initialize(); 2736 static bool Initialize();
2726 2737
2727 /** 2738 /**
2728 * Adjusts the amount of registered external memory. Used to give 2739 * Adjusts the amount of registered external memory. Used to give
2729 * V8 an indication of the amount of externally allocated memory 2740 * V8 an indication of the amount of externally allocated memory
2730 * that is kept alive by JavaScript objects. V8 uses this to decide 2741 * that is kept alive by JavaScript objects. V8 uses this to decide
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3855 3866
3856 3867
3857 } // namespace v8 3868 } // namespace v8
3858 3869
3859 3870
3860 #undef V8EXPORT 3871 #undef V8EXPORT
3861 #undef TYPE_CHECK 3872 #undef TYPE_CHECK
3862 3873
3863 3874
3864 #endif // V8_H_ 3875 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698