[turbofan] Context specialization should only specialize loads/stores.
authorbmeurer <bmeurer@chromium.org>
Mon, 13 Jul 2015 12:30:51 +0000 (05:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Jul 2015 12:31:00 +0000 (12:31 +0000)
commit443b071abe7e8480cb76c7a00346bc553dec5d5c
treeae67b04286fc99a3cd236c655b52569d7cee87d5
parent080d8f6566f160968531e57c7fafb17c50e66a6a
[turbofan] Context specialization should only specialize loads/stores.

The JSContextSpecialization should only care about loads from the
context and stores to the context, where the context is either a
HeapConstant or the special context Parameter (and a context for the
outer most function is provided). This way we don't eagerly embed
arbitrary context constants for no benefit, but we still specialize the
loads and store which we actually care about.

R=mstarzinger@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29602}
src/compiler/js-context-specialization.cc
src/compiler/js-context-specialization.h
src/compiler/pipeline.cc