Changeset 47050 in webkit


Ignore:
Timestamp:
Aug 11, 2009 12:51:13 PM (15 years ago)
Author:
eric@webkit.org
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).
Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r47037 r47050  
     12009-08-11  Maxime Simon  <simon.maxime@gmail.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Modifications on JavaScriptCore to allow Haiku port.
     6        https://bugs.webkit.org/show_bug.cgi?id=28121
     7
     8        * runtime/Collector.cpp: Haiku doesn't have sys/mman.h, using OS.h instead.
     9        (JSC::currentThreadStackBase): Haiku uses its own threading system.
     10        * wtf/Platform.h: Defining all Haiku platform values.
     11        * wtf/haiku/MainThreadHaiku.cpp: Adding a missing header (NotImplemented.h).
     12
    1132009-08-11  Jessie Berlin  <jberlin@apple.com>
    214
  • 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;
  • trunk/JavaScriptCore/wtf/Platform.h

    r46911 r47050  
    119119   || defined(__unix)      \
    120120   || defined(__unix__)    \
    121    || defined(_AIX)
     121   || defined(_AIX)        \
     122   || defined(__HAIKU__)
    122123#define WTF_PLATFORM_UNIX 1
    123124#endif
     
    144145#elif defined(BUILDING_GTK__)
    145146#define WTF_PLATFORM_GTK 1
     147#elif defined(BUILDING_HAIKU__)
     148#define WTF_PLATFORM_HAIKU 1
    146149#elif PLATFORM(DARWIN)
    147150#define WTF_PLATFORM_MAC 1
     
    190193/* Makes PLATFORM(WIN) default to PLATFORM(CAIRO) */
    191194/* FIXME: This should be changed from a blacklist to a whitelist */
    192 #if !PLATFORM(MAC) && !PLATFORM(QT) && !PLATFORM(WX) && !PLATFORM(CHROMIUM) && !PLATFORM(WINCE)
     195#if !PLATFORM(MAC) && !PLATFORM(QT) && !PLATFORM(WX) && !PLATFORM(CHROMIUM) && !PLATFORM(WINCE) && !PLATFORM(HAIKU)
    193196#define WTF_PLATFORM_CAIRO 1
    194197#endif
     
    428431#endif
    429432
     433#if PLATFORM(HAIKU)
     434#define HAVE_POSIX_MEMALIGN 1
     435#define WTF_USE_CURL 1
     436#define WTF_USE_PTHREADS 1
     437#define USE_SYSTEM_MALLOC 1
     438#define ENABLE_NETSCAPE_PLUGIN_API 0
     439#endif
     440
    430441#if !defined(HAVE_ACCESSIBILITY)
    431442#if PLATFORM(IPHONE) || PLATFORM(MAC) || PLATFORM(WIN) || PLATFORM(GTK) || PLATFORM(CHROMIUM)
     
    438449#endif
    439450
    440 #if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS) && !PLATFORM(SYMBIAN) && !COMPILER(RVCT)
     451#if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS) && !PLATFORM(SYMBIAN) && !PLATFORM(HAIKU) && !COMPILER(RVCT)
    441452#define HAVE_TM_GMTOFF 1
    442453#define HAVE_TM_ZONE 1
     
    493504
    494505#define HAVE_ERRNO_H 1
     506/* As long as Haiku doesn't have a complete support of locale this will be disabled. */
     507#if !PLATFORM(HAIKU)
    495508#define HAVE_LANGINFO_H 1
     509#endif
    496510#define HAVE_MMAP 1
    497511#define HAVE_SBRK 1
  • trunk/JavaScriptCore/wtf/haiku/MainThreadHaiku.cpp

    r46018 r47050  
    3131#include "MainThread.h"
    3232
     33#include "NotImplemented.h"
    3334
    3435namespace WTF {
Note: See TracChangeset for help on using the changeset viewer.