Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index 3eb95c644ca425ae6455014e531575a6d7ffe65f..38deb3e88e69f98c96814faea49f97e19dca5a17 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -68,6 +68,18 @@ namespace internal { |
// Determine whether the architecture uses an out-of-line constant pool. |
#define V8_OOL_CONSTANT_POOL 0 |
+#ifdef V8_TARGET_ARCH_ARM |
+// Set stack limit lower for ARM than for other architectures because |
+// stack allocating MacroAssembler takes 120K bytes. |
+// See issue crbug.com/405338 |
+#define V8_DEFAULT_STACK_SIZE_KB 864 |
+#else |
+// Slightly less than 1MB, since Windows' default stack size for |
+// the main execution thread is 1MB for both 32 and 64-bit. |
+#define V8_DEFAULT_STACK_SIZE_KB 984 |
+#endif |
+ |
+ |
// Support for alternative bool type. This is only enabled if the code is |
// compiled with USE_MYBOOL defined. This catches some nasty type bugs. |
// For instance, 'bool b = "false";' results in b == true! This is a hidden |