A64: Restore the stack limit protection to 1KB.

R=ulan@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20131 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
alexandre.rames@arm.com 2014-03-20 15:25:27 +00:00
parent c9d391d87f
commit bd69f65394
2 changed files with 1 additions and 7 deletions

View File

@ -359,12 +359,7 @@ uintptr_t Simulator::PopAddress() {
uintptr_t Simulator::StackLimit() const {
// Leave a safety margin of 1024 bytes to prevent overrunning the stack when
// pushing values.
// TODO(all): Increase the stack limit protection.
// The margin was decreased to 256 bytes, because we are intensively using
// the stack. The stack usage should decrease when our code improves. Then
// we can set it to 1024 again.
return reinterpret_cast<uintptr_t>(stack_limit_) + 256;
return reinterpret_cast<uintptr_t>(stack_limit_) + 1024;
}

View File

@ -833,7 +833,6 @@ class Simulator : public DecoderVisitor {
static const intptr_t stack_protection_size_ = KB;
intptr_t stack_size_;
byte* stack_limit_;
// TODO(aleram): protect the stack.
Decoder<DispatchingDecoderVisitor>* decoder_;
Decoder<DispatchingDecoderVisitor>* disassembler_decoder_;