| Index: src/api.cc
|
| ===================================================================
|
| --- src/api.cc (revision 2653)
|
| +++ src/api.cc (working copy)
|
| @@ -2589,9 +2589,12 @@
|
| i::Handle<i::Context> env;
|
| {
|
| ENTER_V8;
|
| +#if defined(ANDROID)
|
| + // On mobile devices, full GC is expensive.
|
| +#else
|
| // Give the heap a chance to cleanup if we've disposed contexts.
|
| i::Heap::CollectAllGarbageIfContextDisposed();
|
| -
|
| +#endif
|
| v8::Handle<ObjectTemplate> proxy_template = global_template;
|
| i::Handle<i::FunctionTemplateInfo> proxy_constructor;
|
| i::Handle<i::FunctionTemplateInfo> global_constructor;
|
|
|