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

Side by Side Diff: include/v8.h

Issue 174302: Update the Idle collector to do a full GC (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 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-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 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 * It should generally not be necessary to dispose v8 before exiting 2273 * It should generally not be necessary to dispose v8 before exiting
2274 * a process, this should happen automatically. It is only necessary 2274 * a process, this should happen automatically. It is only necessary
2275 * to use if the process needs the resources taken up by v8. 2275 * to use if the process needs the resources taken up by v8.
2276 */ 2276 */
2277 static bool Dispose(); 2277 static bool Dispose();
2278 2278
2279 2279
2280 /** 2280 /**
2281 * Optional notification that the embedder is idle. 2281 * Optional notification that the embedder is idle.
2282 * V8 uses the notification to reduce memory footprint. 2282 * V8 uses the notification to reduce memory footprint.
2283 * This call can be used repeatedly if the embedder remains idle.
2283 * \param is_high_priority tells whether the embedder is high priority. 2284 * \param is_high_priority tells whether the embedder is high priority.
2285 * Returns true if the embedder should stop calling IdleNotification
2286 * until real work has been done. This indicates that V8 has done
2287 * as much cleanup as it will be able to do.
2284 */ 2288 */
2285 static void IdleNotification(bool is_high_priority); 2289 static bool IdleNotification(bool is_high_priority);
2286 2290
2287 /** 2291 /**
2288 * Optional notification that the system is running low on memory. 2292 * Optional notification that the system is running low on memory.
2289 * V8 uses these notifications to attempt to free memory. 2293 * V8 uses these notifications to attempt to free memory.
2290 */ 2294 */
2291 static void LowMemoryNotification(); 2295 static void LowMemoryNotification();
2292 2296
2293 private: 2297 private:
2294 V8(); 2298 V8();
2295 2299
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 2795
2792 } // namespace v8 2796 } // namespace v8
2793 2797
2794 2798
2795 #undef V8EXPORT 2799 #undef V8EXPORT
2796 #undef V8EXPORT_INLINE 2800 #undef V8EXPORT_INLINE
2797 #undef TYPE_CHECK 2801 #undef TYPE_CHECK
2798 2802
2799 2803
2800 #endif // V8_H_ 2804 #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