Omit stack overflow checks on leaf functions
commiteffe6d71f3f4c17f4bf80924e70182d2dc1f266c
authorJordan DeLong <jdelong@fb.com>
Tue, 30 Apr 2013 01:38:31 +0000 (29 18:38 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 2 May 2013 04:00:48 +0000 (1 21:00 -0700)
tree0ea02c863af755f68691bb42f838bba2c9feab28
parent9a804f646332ccb73c4697e2670f502fbed28a6c
Omit stack overflow checks on leaf functions

I did an experiment turning off all stack checks, and it
looks like it does cost something.  This seemed like an easy way to
turn it off some of the time, but maybe we should resurrect the SEGV
handler.
14 files changed:
hphp/compiler/analysis/emitter.cpp
hphp/compiler/analysis/emitter.h
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/bytecode.h
hphp/runtime/vm/class.cpp
hphp/runtime/vm/core_types.h
hphp/runtime/vm/func.cpp
hphp/runtime/vm/func.h
hphp/runtime/vm/translator/hopt/irtranslator.cpp
hphp/runtime/vm/translator/translator-x64.cpp
hphp/test/quick/exceptions2.php.expectf
hphp/test/quick/exceptions3.php.expectf
hphp/test/quick/exceptions5.php.expectf
hphp/test/quick/exceptions6.php.expectf