Chromium Code Reviews| Index: src/api.cc |
| =================================================================== |
| --- src/api.cc (revision 2709) |
| +++ src/api.cc (working copy) |
| @@ -2599,10 +2599,18 @@ |
| } |
| -void v8::V8::IdleNotification(bool is_high_priority) { |
| +void v8::V8::IdleNotification(bool is_high_priority) { |
| i::V8::IdleNotification(is_high_priority); |
| } |
| + |
| +#if defined(ANDROID) |
| +void v8::V8::LowMemoryNotification() { |
| + i::Heap::CollectAllGarbage(true); |
| +} |
| +#endif |
|
Kasper Lund
2009/08/20 06:54:56
Would it make sense to always do a Heap::UncommitF
|
| + |
| + |
| const char* v8::V8::GetVersion() { |
| static v8::internal::EmbeddedVector<char, 128> buffer; |
| v8::internal::Version::GetString(buffer); |