Oilpan: Clear HTMLDocumentParser::m_token when the HTMLDocumentParser is detached
Oilpan: Clear HTMLDocumentParser::m_token when the HTMLDocumentParser is detached

This CL improves tiny-innerHTML by 50%.

non-oilpan: 4.2 runs/sec
oilpan (before this CL): 3.3 runs/sec
oilpan (after this CL): 5.0 runs/sec

In non-oilpan builds, backing memory of HTMLToken::m_data (which is Vector<UChar, 256>) is reused for each innerHTML setter and thus the memory locality is good. On the other hand, in oilpan builds without this CL, the backing memory of HTMLToken::m_data is not reused until HTMLDocumentParser objects are collected by a next GC. Thus the memory locality is bad.

This CL resolves the locality problem by explicitly clearing HTMLDocumentParser::m_token when the HTMLDocumentParser gets detached.

BUG=420515

Review URL: https://codereview.chromium.org/677933002

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@184510 bbb929c8-8fbe-4397-9dbb-9b2b20218538

jtg-gg/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,nwjs/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,nwjs/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,nwjs/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,modulexcite/blink,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,jtg-gg/blink,jtg-gg/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,nwjs/blink,nwjs/blink,jtg-gg/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,modulexcite/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,nwjs/blink,smishenk/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,nwjs/blink,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk