mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1705727 - Disable tail call tests in TestStackWalk for code-coverage builds. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D112689
This commit is contained in:
parent
44819cf83e
commit
e1c4d88b46
@ -24,11 +24,13 @@ struct CallInfo {
|
||||
bool mTailCall;
|
||||
|
||||
bool TailCall() {
|
||||
#ifdef __i386__
|
||||
#if defined(__i386__) || defined(MOZ_CODE_COVERAGE)
|
||||
// We can't make tail calls happen on i386 because all arguments to
|
||||
// functions are on the stack, so the stack pointer needs to be updated
|
||||
// before the call and restored after the call, so tail call optimization
|
||||
// never happens.
|
||||
// Similarly, code-coverage flags don't guarantee that tail call
|
||||
// optimization will happen.
|
||||
return false;
|
||||
#else
|
||||
return mTailCall;
|
||||
|
Loading…
Reference in New Issue
Block a user