Refactor overloaded methods grouping
Refactor overloaded methods grouping

Refactoring, no changes to generated code.
This is a technical CL;
the key point is to separate grouping of overloaded methods
from computation of resolution.
(To implement the overload resolution algorithm, we need to first
 have the set of all methods with the same name.)

This also lets us simplify the code;
also factored out some utility functions,
so now main grouping function is quite simple.

R=haraken
BUG=293561

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

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

jtg-gg/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,ondra-novak/blink,jtg-gg/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,nwjs/blink,ondra-novak/blink,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,XiaosongWei/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,modulexcite/blink,modulexcite/blink,jtg-gg/blink,nwjs/blink,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,nwjs/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,ondra-novak/blink,smishenk/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,smishenk/blink-crosswalk,nwjs/blink,ondra-novak/blink,jtg-gg/blink,jtg-gg/blink,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,jtg-gg/blink,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,modulexcite/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,ondra-novak/blink,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,ondra-novak/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,modulexcite/blink,nwjs/blink,ondra-novak/blink,jtg-gg/blink,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk