[x86] Faster/shorter code for stack checks.
authorBenedikt Meurer <bmeurer@chromium.org>
Mon, 9 Mar 2015 11:06:30 +0000 (12:06 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Mon, 9 Mar 2015 11:06:45 +0000 (11:06 +0000)
commitd18bfa11308ec056ca5a4ad1a7bb63fa519e37b9
tree7f852922f2a1265c1d69184150efe5c4739b3cc7
parent82a28adf059a6b5205a292233c416bd307f4cf8e
[x86] Faster/shorter code for stack checks.

Avoid loading the stack pointer and the stack limit into allocatable
registers first, but generate a cmp rsp,[limit] instead.

R=dcarney@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#27065}
src/compiler/ia32/code-generator-ia32.cc
src/compiler/ia32/instruction-codes-ia32.h
src/compiler/ia32/instruction-selector-ia32.cc
src/compiler/instruction-selector.h
src/compiler/node-matchers.h
src/compiler/raw-machine-assembler.h
src/compiler/x64/code-generator-x64.cc
src/compiler/x64/instruction-codes-x64.h
src/compiler/x64/instruction-selector-x64.cc
test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc
test/unittests/compiler/x64/instruction-selector-x64-unittest.cc