Ignore:
Timestamp:
Aug 11, 2009, 12:51:13 PM (16 years ago)
Author:
[email protected]
Message:

2009-08-11 Maxime Simon <Maxime Simon>

Reviewed by Eric Seidel.

Modifications on JavaScriptCore to allow Haiku port.
https://bugs.webkit.org/show_bug.cgi?id=28121

  • runtime/Collector.cpp: Haiku doesn't have sys/mman.h, using OS.h instead. (JSC::currentThreadStackBase): Haiku uses its own threading system.
  • wtf/Platform.h: Defining all Haiku platform values.
  • wtf/haiku/MainThreadHaiku.cpp: Adding a missing header (NotImplemented.h).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r47022 r47050  
    6060#include <windows.h>
    6161
     62#elif PLATFORM(HAIKU)
     63
     64#include <OS.h>
     65
    6266#elif PLATFORM(UNIX)
    6367
    6468#include <stdlib.h>
     69#if !PLATFORM(HAIKU)
    6570#include <sys/mman.h>
     71#endif
    6672#include <unistd.h>
    6773
     
    530536    }
    531537    return (void*)stackBase;
     538#elif PLATFORM(HAIKU)
     539    thread_info threadInfo;
     540    get_thread_info(find_thread(NULL), &threadInfo);
     541    return threadInfo.stack_end;
    532542#elif PLATFORM(UNIX)
    533543    static void* stackBase = 0;
Note: See TracChangeset for help on using the changeset viewer.