[turbofan] Load immortal heap objects from the heap roots.
authorbmeurer <bmeurer@chromium.org>
Tue, 14 Apr 2015 12:50:43 +0000 (05:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Apr 2015 12:50:37 +0000 (12:50 +0000)
commit5d2de78a771b8ff1ac59fbdf634bffd01709b554
treefd7ccf27276e1ad2797e24498f0f44f5540b593c
parent2ebb794b4fd65f4f1744a3be0e4aba933c1c1fc1
[turbofan] Load immortal heap objects from the heap roots.

It's cheaper to materialize heap constants by loading from the roots
array instead of embedding the constant into the instruction stream, at
least on x64, arm and arm64.

Drive-by-fix: Also cleanup the materialize constant from frame
optimization.

R=dcarney@chromium.org

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

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