Stack Limit as an Argument Purpose (#372)

* Initial approach.

* Move stack_limit check before opening the frame

* Account for GPRs and frame pointer in stack check

* Check stack_limit example.

* Remove stack_limit attribute code.

Amends #359

* fmt
This commit is contained in:
Sergey Pepyakin
2018-08-04 16:16:21 +03:00
committed by Dan Gohman
parent 217786e969
commit 9dbfbbde10
10 changed files with 91 additions and 75 deletions

View File

@@ -136,11 +136,6 @@ fn write_preamble(
writeln!(w, " {} = {}", jt, jt_data)?;
}
if let Some(stack_limit) = func.stack_limit {
any = true;
writeln!(w, " stack_limit = {}", stack_limit)?;
}
Ok(any)
}