Revert my previous change r2654.
It has a similar impact on page cycler performance because now GC is randomly counted in page load time. http://code.google.com/p/v8/source/detail?r=2654 Review URL: http://codereview.chromium.org/164407 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2670 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
896f875d76
commit
de8c403f1c
@ -2589,12 +2589,8 @@ Persistent<Context> v8::Context::New(
|
|||||||
i::Handle<i::Context> env;
|
i::Handle<i::Context> env;
|
||||||
{
|
{
|
||||||
ENTER_V8;
|
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.
|
// Give the heap a chance to cleanup if we've disposed contexts.
|
||||||
i::Heap::CollectAllGarbageIfContextDisposed();
|
i::Heap::CollectAllGarbageIfContextDisposed();
|
||||||
#endif
|
|
||||||
v8::Handle<ObjectTemplate> proxy_template = global_template;
|
v8::Handle<ObjectTemplate> proxy_template = global_template;
|
||||||
i::Handle<i::FunctionTemplateInfo> proxy_constructor;
|
i::Handle<i::FunctionTemplateInfo> proxy_constructor;
|
||||||
i::Handle<i::FunctionTemplateInfo> global_constructor;
|
i::Handle<i::FunctionTemplateInfo> global_constructor;
|
||||||
|
Loading…
Reference in New Issue
Block a user