[turbofan] Use reference equal to zero instead of a smi check.
authorbmeurer <bmeurer@chromium.org>
Wed, 3 Jun 2015 05:10:44 +0000 (22:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Jun 2015 05:10:55 +0000 (05:10 +0000)
commite0fa8758584e9aaedebe22fd1ee3c82b3867c14a
tree74685c014fbe927984732a1888f1cb8a10b4a1b5
parentca806a38184f40cfac3bacaabfefe2e325726df9
[turbofan] Use reference equal to zero instead of a smi check.

In typed lowering we can use the ReferenceEqual simplified operator
instead of ObjectIsSmi to check for context extensions. This generates
the desired code.

R=mstarzinger@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#28776}
src/compiler/js-typed-lowering.cc
test/unittests/compiler/js-typed-lowering-unittest.cc