[x86] Improve code generation for context materialization.
authorBenedikt Meurer <bmeurer@chromium.org>
Mon, 2 Mar 2015 09:09:33 +0000 (10:09 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Mon, 2 Mar 2015 09:09:42 +0000 (09:09 +0000)
commit502898ef60f011e3d4150cac8815c001928d6a26
treef426d2954f9792d2b91c40f6bda8c5cc0a397a46
parent155278d6f26f97631c3cf42caaf73927d007bf47
[x86] Improve code generation for context materialization.

On Intel targets, it is cheaper to load the context from the frame
instead of loading the context as a constant (which usually involves a
PropertyCell because the context is in new space when we compile the
function).

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#26935}
src/compiler/ia32/code-generator-ia32.cc
src/compiler/x64/code-generator-x64.cc