From 75dc771098b60ddaac42ef5edf5b42a9aab4c3e6 Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Tue, 18 Oct 2011 14:41:45 +0000 Subject: [PATCH] Increase ARM/MIPS simulators stack safety margin to 512 bytes R=erik.corry@gmail.com BUG=v8:1773 Review URL: http://codereview.chromium.org/8337014 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9686 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/arm/simulator-arm.cc | 4 ++-- src/mips/simulator-mips.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc index 5704202622..542cc302d3 100644 --- a/src/arm/simulator-arm.cc +++ b/src/arm/simulator-arm.cc @@ -1268,9 +1268,9 @@ void Simulator::WriteDW(int32_t addr, int32_t value1, int32_t value2) { // Returns the limit of the stack area to enable checking for stack overflows. uintptr_t Simulator::StackLimit() const { - // Leave a safety margin of 256 bytes to prevent overrunning the stack when + // Leave a safety margin of 512 bytes to prevent overrunning the stack when // pushing values. - return reinterpret_cast(stack_) + 256; + return reinterpret_cast(stack_) + 512; } diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc index 17c18977c7..0ec3e283c6 100644 --- a/src/mips/simulator-mips.cc +++ b/src/mips/simulator-mips.cc @@ -1359,9 +1359,9 @@ void Simulator::WriteB(int32_t addr, int8_t value) { // Returns the limit of the stack area to enable checking for stack overflows. uintptr_t Simulator::StackLimit() const { - // Leave a safety margin of 256 bytes to prevent overrunning the stack when + // Leave a safety margin of 512 bytes to prevent overrunning the stack when // pushing values. - return reinterpret_cast(stack_) + 256; + return reinterpret_cast(stack_) + 512; }