12012-08-01 Ulan Degenbaev <ulan@chromium.org>
2
3 [chromium] Improve garbage collector hint if page uses Canvas contexts
4 https://bugs.webkit.org/show_bug.cgi?id=92856
5
6 Reviewed by NOBODY (OOPS!).
7
8 Request GC by sending context disposed and idle notification to V8 instead
9 of sending low memory notification. It is faster as it causes one GC
10 instead of seven GCs caused by low memory notification.
11
12 * bindings/v8/V8Binding.cpp:
13 (WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
14 * bindings/v8/V8Binding.h:
15 (V8BindingPerIsolateData):
16 (WebCore::V8BindingPerIsolateData::setGarbageCollectionHint):
17 (WebCore::V8BindingPerIsolateData::clearGarbageCollectionHint):
18 (WebCore::V8BindingPerIsolateData::isGarbageCollectionHint):
19 * bindings/v8/V8Proxy.cpp:
20 (WebCore::V8Proxy::hintForGCIfNecessary):
21 * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
22 (WebCore::V8HTMLCanvasElement::getContextCallback):
23