Changeset 163291 in webkit for trunk/Source/JavaScriptCore/tools


Ignore:
Timestamp:
Feb 3, 2014, 12:17:33 AM (11 years ago)
Author:
[email protected]
Message:

Stop using PLATFORM(MAC) in JavaScriptCore except where it means “OS X but not iOS”
https://bugs.webkit.org/show_bug.cgi?id=128098

Reviewed by Darin Adler.

  • API/JSValueRef.cpp:

(JSValueUnprotect): Added an explicit !PLATFORM(IOS) in guards for the Evernote workaround,
which is only needed on OS X.

  • API/tests/testapi.c:
(main): Changed PLATFORM(MAC)
PLATFORM(IOS) guards to OS(DARWIN), because they were

surrounding tests for code that is itself guarded by OS(DARWIN).

  • runtime/Watchdog.h: Changed PLATFORM(MAC) to OS(DARWIN).
  • tools/CodeProfiling.cpp:

(JSC::CodeProfiling::begin): Changed PLATFORM(MAC) to
OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK).
(JSC::CodeProfiling::end): Ditto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/tools/CodeProfiling.cpp

    r111618 r163291  
    4949#endif
    5050
    51 #if (PLATFORM(MAC) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))
     51#if (OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))
    5252// Helper function to start & stop the timer.
    5353// Presently we're using the wall-clock timer, since this seems to give the best results.
     
    6767#endif
    6868
    69 #if PLATFORM(MAC) && CPU(X86_64)
     69#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) && CPU(X86_64)
    7070static void profilingTimer(int, siginfo_t*, void* uap)
    7171{
     
    144144        return;
    145145
    146 #if (PLATFORM(MAC) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))
     146#if (OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))
    147147    // Regsiter a signal handler & itimer.
    148148    struct sigaction action;
     
    168168        return;
    169169
    170 #if (PLATFORM(MAC) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))
     170#if (OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))
    171171    // Stop profiling
    172172    setProfileTimer(0);
Note: See TracChangeset for help on using the changeset viewer.