[turbofan] Enable tail calls for %_CallRuntime.
authordanno <danno@chromium.org>
Thu, 2 Jul 2015 06:20:03 +0000 (23:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 2 Jul 2015 06:20:14 +0000 (06:20 +0000)
commit1fa4285e1ce16cfadf8c40a0993491ec4e2bbbe0
tree4b8c47cf285b2992f4dda6b1ff81c1cf1fc6149c
parent1297a51e3024352ddb16e976bf4401551fa16ad5
[turbofan] Enable tail calls for %_CallRuntime.

This involves:
- Enabling the tail call optimization reducer in all cases.
- Adding an addition flag to CallFunctionParameters to mark call sites
  that can be tail-called enabled.
- Only set the tail-call flag for %_CallFunction.

R=bmeurer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29436}
21 files changed:
src/compiler/arm/code-generator-arm.cc
src/compiler/arm/instruction-selector-arm.cc
src/compiler/arm64/code-generator-arm64.cc
src/compiler/arm64/instruction-selector-arm64.cc
src/compiler/ia32/code-generator-ia32.cc
src/compiler/ia32/instruction-selector-ia32.cc
src/compiler/js-generic-lowering.cc
src/compiler/js-intrinsic-lowering.cc
src/compiler/js-intrinsic-lowering.h
src/compiler/js-operator.cc
src/compiler/js-operator.h
src/compiler/linkage.cc
src/compiler/linkage.h
src/compiler/mips/code-generator-mips.cc
src/compiler/mips/instruction-selector-mips.cc
src/compiler/mips64/code-generator-mips64.cc
src/compiler/mips64/instruction-selector-mips64.cc
src/compiler/pipeline.cc
src/compiler/x64/code-generator-x64.cc
src/compiler/x64/instruction-selector-x64.cc
test/mjsunit/call-runtime-tail.js [new file with mode: 0644]