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

Side by Side Diff: include/v8.h

Issue 173016: Add LowMemoryNotification to the API on Android platform.... (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') | src/api.cc » ('J')
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 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 static bool Dispose(); 2236 static bool Dispose();
2237 2237
2238 2238
2239 /** 2239 /**
2240 * Optional notification that the embedder is idle. 2240 * Optional notification that the embedder is idle.
2241 * V8 uses the notification to reduce memory footprint. 2241 * V8 uses the notification to reduce memory footprint.
2242 * \param is_high_priority tells whether the embedder is high priority. 2242 * \param is_high_priority tells whether the embedder is high priority.
2243 */ 2243 */
2244 static void IdleNotification(bool is_high_priority); 2244 static void IdleNotification(bool is_high_priority);
2245 2245
2246 #if defined(ANDROID)
Mads Ager (chromium) 2009/08/19 17:24:23 I don't think we need to hide this under #if defin
Feng Qian 2009/08/20 00:06:08 Done.
2247 /**
2248 * Android systems sends the browser a notification when it is in low
2249 * memory condition. It is necessary to do a full compact GC to release
2250 * DOM objects and also uncommit pages.
2251 */
2252 static void LowMemoryNotification();
2253 #endif
2254
2246 private: 2255 private:
2247 V8(); 2256 V8();
2248 2257
2249 static void** GlobalizeReference(void** handle); 2258 static void** GlobalizeReference(void** handle);
2250 static void DisposeGlobal(void** global_handle); 2259 static void DisposeGlobal(void** global_handle);
2251 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback); 2260 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback);
2252 static void ClearWeak(void** global_handle); 2261 static void ClearWeak(void** global_handle);
2253 static bool IsGlobalNearDeath(void** global_handle); 2262 static bool IsGlobalNearDeath(void** global_handle);
2254 static bool IsGlobalWeak(void** global_handle); 2263 static bool IsGlobalWeak(void** global_handle);
2255 2264
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2728 2737
2729 } // namespace v8 2738 } // namespace v8
2730 2739
2731 2740
2732 #undef V8EXPORT 2741 #undef V8EXPORT
2733 #undef V8EXPORT_INLINE 2742 #undef V8EXPORT_INLINE
2734 #undef TYPE_CHECK 2743 #undef TYPE_CHECK
2735 2744
2736 2745
2737 #endif // V8_H_ 2746 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698