[CachedAccessor] allows V8 to access simple DOM attribute getters without leaving JIT code. We should use [CachedAccessor] on more DOM attributes.
https://groups.google.com/a/chromium.org/forum/#!topic/Blink-dev/OhIFnre7ytQ
However, the problem of the current implementation of [CachedAccessor] is that we cannot install a cached accessor lazily. For example, if we want to use a cached accessor for window.foo, we must install the cached accessor when the window's wrapper gets instantiated. Not only does this slow down the wrapper instantiation but also increase memory footprints unnecessarily (because we need to eagerly create the cache entry). Ideally the cached accessor should be installed at the first time when window.foo is accessed.
With that change, we can increase the usage of [CachedAccessor]. And we should.
Comment 1 by haraken@chromium.org
, Nov 21 2016