[turbofan] Add JSStackCheck into loop bodies.
authormstarzinger <mstarzinger@chromium.org>
Wed, 8 Apr 2015 12:54:56 +0000 (05:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 12:55:02 +0000 (12:55 +0000)
commit322cfb3589bc122e773fef041254ded514b31b8e
treebca9648d8ac5fd97bf43059d7ce1a112ff3b6a1f
parent87a27e42eaf7fc74c2a7b81e4d8261265b9ce326
[turbofan] Add JSStackCheck into loop bodies.

This allows loopy TurboFan code to be interrupted by placing a stack
check (i.e. JSStackCheck node) into each loop. Note that we currently
limit this to non-asm.js code. Also note that stack checks are actually
placed after loop headers and not at back-branches, which allows us to
reuse existing BailoutIds from Crankshaft.

R=titzer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#27666}
src/compiler.cc
src/compiler/ast-graph-builder.cc
test/cctest/test-api.cc
test/cctest/test-debug.cc
test/cctest/test-thread-termination.cc