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

Side by Side Diff: include/v8.h

Issue 13341: Improve mark-compact object grouping interface. (Closed)
Patch Set: Tests. Created 12 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
« 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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 * 1960 *
1961 * \note This is an experimental feature and it might be removed. 1961 * \note This is an experimental feature and it might be removed.
1962 */ 1962 */
1963 static void SetExternalSymbolCallback(ExternalSymbolCallback); 1963 static void SetExternalSymbolCallback(ExternalSymbolCallback);
1964 1964
1965 /** 1965 /**
1966 * Allows the host application to group objects together. If one 1966 * Allows the host application to group objects together. If one
1967 * object in the group is alive, all objects in the group are alive. 1967 * object in the group is alive, all objects in the group are alive.
1968 * After each garbage collection, object groups are removed. It is 1968 * After each garbage collection, object groups are removed. It is
1969 * intended to be used in the before-garbage-collection callback 1969 * intended to be used in the before-garbage-collection callback
1970 * function for istance to simulate DOM tree connections among JS 1970 * function, for instance to simulate DOM tree connections among JS
1971 * wrapper objects. 1971 * wrapper objects.
1972 */ 1972 */
1973 static void AddObjectToGroup(void* id, Persistent<Object> obj); 1973 static void AddObjectGroup(Persistent<Value>* objects, size_t length);
1974 1974
1975 /** 1975 /**
1976 * Initializes from snapshot if possible. Otherwise, attempts to 1976 * Initializes from snapshot if possible. Otherwise, attempts to
1977 * initialize from scratch. 1977 * initialize from scratch.
1978 */ 1978 */
1979 static bool Initialize(); 1979 static bool Initialize();
1980 1980
1981 /** 1981 /**
1982 * Adjusts the amount of registered external memory. Used to give 1982 * Adjusts the amount of registered external memory. Used to give
1983 * V8 an indication of the amount of externally allocated memory 1983 * V8 an indication of the amount of externally allocated memory
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 2463
2464 } // namespace v8 2464 } // namespace v8
2465 2465
2466 2466
2467 #undef EXPORT 2467 #undef EXPORT
2468 #undef EXPORT_INLINE 2468 #undef EXPORT_INLINE
2469 #undef TYPE_CHECK 2469 #undef TYPE_CHECK
2470 2470
2471 2471
2472 #endif // V8_H_ 2472 #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