Update and extend context specialization.
authorsigurds@chromium.org <sigurds@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 8 Aug 2014 11:05:31 +0000 (11:05 +0000)
committersigurds@chromium.org <sigurds@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 8 Aug 2014 11:05:31 +0000 (11:05 +0000)
commit055fe8c3e9954793f1216302163b16795139069c
treeba83f9703ed8c25d26b77ef19a0cad84025f27e7
parent49e6abb9e34571d5233cd45d94ab06bbcc9b2c91
Update and extend context specialization.

* Add store-chain folding to context specialization.
* Replace all uses of context with constant and then use
  a visitor to find the places to optimize.

BUG=
R=mstarzinger@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22993 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler/js-context-specialization.cc
src/compiler/js-context-specialization.h
test/cctest/compiler/test-js-context-specialization.cc