Ignore:
Timestamp:
Jan 27, 2010, 4:41:29 AM (15 years ago)
Author:
[email protected]
Message:

2010-01-27 Kwang Yul Seo <[email protected]>

Reviewed by Oliver Hunt.

[BREWMP] Add MarkStack fastMalloc implementation for platforms without VirtualAlloc or mmap.
https://bugs.webkit.org/show_bug.cgi?id=33582

Use fastMalloc and fastFree to implement MarkStack::allocateStack and
MarkStack::releaseStack for platforms without page level allocation.

  • runtime/MarkStack.h: (JSC::MarkStack::MarkStackArray::shrinkAllocation):
  • runtime/MarkStackNone.cpp: Added. (JSC::MarkStack::initializePagesize): (JSC::MarkStack::allocateStack): (JSC::MarkStack::releaseStack):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/MarkStack.h

    r52791 r53922  
    154154                if (size == m_allocated)
    155155                    return;
    156 #if OS(WINDOWS) || OS(SYMBIAN)
     156#if OS(WINDOWS) || OS(SYMBIAN) || PLATFORM(BREWMP)
    157157                // We cannot release a part of a region with VirtualFree.  To get around this,
    158158                // we'll release the entire region and reallocate the size that we want.
Note: See TracChangeset for help on using the changeset viewer.