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
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;
}
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_;