[turbofan] Optimize loads from the global object in JSTypeFeedbackSpecializer.
authortitzer <titzer@chromium.org>
Mon, 27 Apr 2015 09:07:09 +0000 (02:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 09:06:41 +0000 (09:06 +0000)
commitaae4a62d07e839455b1d0ad4fa512cc5d48a1a68
treedfdfba8f240f6728e6f35f2a1d492c4f3a401c36
parentcaeb9004f0bfc2a916fc63e9d27100a3110016d4
[turbofan] Optimize loads from the global object in JSTypeFeedbackSpecializer.

Uses lazy deoptimization and code dependencies to introduce loads
from property cells and also to promote globals to constants.

R=mstarzinger@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#28057}
src/compiler.cc
src/compiler/access-builder.cc
src/compiler/access-builder.h
src/compiler/js-type-feedback.cc
src/compiler/js-type-feedback.h
src/compiler/pipeline.cc
test/cctest/compiler/test-run-jsexceptions.cc
test/mjsunit/compiler/global-delete.js [new file with mode: 0644]
test/mjsunit/compiler/global-var-delete.js [new file with mode: 0644]
test/unittests/compiler/js-type-feedback-unittest.cc [new file with mode: 0644]
test/unittests/unittests.gyp