[turbofan] Fix bogus materialization from frame with OSR.
authormstarzinger <mstarzinger@chromium.org>
Mon, 6 Jul 2015 03:40:22 +0000 (20:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 6 Jul 2015 03:40:29 +0000 (03:40 +0000)
commitb8ecd94c7212e1d2ff7b85e2d02d5c8c0aed4161
tree4105e796fa78fc408041f5a181ba4eaba25c2028
parent21d330c89610d1ecd1419566f5cfcce1d7eee5fa
[turbofan] Fix bogus materialization from frame with OSR.

The context constant cannot be materialized from the frame when we are
compiling for OSR, because the context spill slot contains the current
instead of the outermost context in full-codegen.

R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29472}
src/compiler/code-generator.cc
test/mjsunit/regress/regress-osr-context.js [new file with mode: 0644]