Blame webkitgtk-2.5.2-commit_align.patch

912a25
diff -up webkitgtk-2.5.2/Source/JavaScriptCore/heap/CopiedBlock.h.ppc64_align webkitgtk-2.5.2/Source/JavaScriptCore/heap/CopiedBlock.h
912a25
--- webkitgtk-2.5.2/Source/JavaScriptCore/heap/CopiedBlock.h.ppc64_align	2014-07-08 06:17:14.000000000 -0600
912a25
+++ webkitgtk-2.5.2/Source/JavaScriptCore/heap/CopiedBlock.h	2014-08-12 05:38:47.752283561 -0600
912a25
@@ -81,7 +81,7 @@ public:
912a25
     size_t size();
912a25
     size_t capacity();
912a25
 
912a25
-    static const size_t blockSize = 32 * KB;
912a25
+    static const size_t blockSize = 64 * KB;
912a25
 
912a25
     bool hasWorkList();
912a25
     CopyWorkList& workList();
912a25
diff -up webkitgtk-2.5.2/Source/JavaScriptCore/interpreter/JSStack.cpp.ppc64_align webkitgtk-2.5.2/Source/JavaScriptCore/interpreter/JSStack.cpp
912a25
--- webkitgtk-2.5.2/Source/JavaScriptCore/interpreter/JSStack.cpp.ppc64_align	2014-08-12 06:27:12.101177790 -0600
912a25
+++ webkitgtk-2.5.2/Source/JavaScriptCore/interpreter/JSStack.cpp	2014-08-12 06:32:01.252063281 -0600
912a25
@@ -58,7 +58,8 @@ JSStack::JSStack(VM& vm)
912a25
     size_t capacity = Options::maxPerThreadStackUsage();
912a25
     ASSERT(capacity && isPageAligned(capacity));
912a25
 
912a25
-    m_reservation = PageReservation::reserve(WTF::roundUpToMultipleOf(commitSize, capacity), OSAllocator::JSVMStackPages);
912a25
+    size_t commitsize = pageSize();
912a25
+    m_reservation = PageReservation::reserve(WTF::roundUpToMultipleOf(commitsize, capacity), OSAllocator::JSVMStackPages);
912a25
     setStackLimit(highAddress());
912a25
     m_commitTop = highAddress();
912a25
     
912a25
@@ -92,7 +93,8 @@ bool JSStack::growSlowCase(Register* new
912a25
     // have it is still within our budget. If not, we'll fail to grow and
912a25
     // return false.
912a25
     ptrdiff_t delta = reinterpret_cast<char*>(m_commitTop) - reinterpret_cast<char*>(newTopOfStackWithReservedZone);
912a25
-    delta = WTF::roundUpToMultipleOf(commitSize, delta);
912a25
+    size_t commitsize = pageSize();
912a25
+    delta = WTF::roundUpToMultipleOf(commitsize, delta);
912a25
     Register* newCommitTop = m_commitTop - (delta / sizeof(Register));
912a25
     if (newCommitTop < reservationTop())
912a25
         return false;