Changeset 163291 in webkit
- Timestamp:
- Feb 3, 2014, 12:17:33 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/JavaScriptCore/API/JSValueRef.cpp ¶
r162784 r163291 45 45 #include <algorithm> // for std::min 46 46 47 #if PLATFORM(MAC) 47 #if PLATFORM(MAC) && !PLATFORM(IOS) 48 48 #include <mach-o/dyld.h> 49 49 #endif … … 51 51 using namespace JSC; 52 52 53 #if PLATFORM(MAC) 53 #if PLATFORM(MAC) && !PLATFORM(IOS) 54 54 static bool evernoteHackNeeded() 55 55 { … … 444 444 void JSValueUnprotect(JSContextRef ctx, JSValueRef value) 445 445 { 446 #if PLATFORM(MAC) 446 #if PLATFORM(MAC) && !PLATFORM(IOS) 447 447 if ((!value || !ctx) && evernoteHackNeeded()) 448 448 return; -
TabularUnified trunk/Source/JavaScriptCore/API/tests/testapi.c ¶
r162918 r163291 34 34 #include <wtf/Assertions.h> 35 35 36 #if PLATFORM(MAC) || PLATFORM(IOS)36 #if OS(DARWIN) 37 37 #include <mach/mach.h> 38 38 #include <mach/mach_time.h> … … 1104 1104 } 1105 1105 1106 #if PLATFORM(MAC) || PLATFORM(IOS)1106 #if OS(DARWIN) 1107 1107 static double currentCPUTime() 1108 1108 { … … 1163 1163 return true; 1164 1164 } 1165 #endif /* PLATFORM(MAC) || PLATFORM(IOS) */1165 #endif /* OS(DARWIN) */ 1166 1166 1167 1167 … … 1854 1854 } 1855 1855 1856 #if PLATFORM(MAC) || PLATFORM(IOS)1856 #if OS(DARWIN) 1857 1857 JSStringRef currentCPUTimeStr = JSStringCreateWithUTF8CString("currentCPUTime"); 1858 1858 JSObjectRef currentCPUTimeFunction = JSObjectMakeFunctionWithCallback(context, currentCPUTimeStr, currentCPUTime_callAsFunction); … … 2005 2005 } 2006 2006 } 2007 #endif /* PLATFORM(MAC) || PLATFORM(IOS) */2007 #endif /* OS(DARWIN) */ 2008 2008 2009 2009 // Clear out local variables pointing at JSObjectRefs to allow their values to be collected -
TabularUnified trunk/Source/JavaScriptCore/ChangeLog ¶
r163274 r163291 1 2014-02-03 Dan Bernstein <mitz@apple.com> 2 3 Stop using PLATFORM(MAC) in JavaScriptCore except where it means “OS X but not iOS” 4 https://bugs.webkit.org/show_bug.cgi?id=128098 5 6 Reviewed by Darin Adler. 7 8 * API/JSValueRef.cpp: 9 (JSValueUnprotect): Added an explicit !PLATFORM(IOS) in guards for the Evernote workaround, 10 which is only needed on OS X. 11 12 * API/tests/testapi.c: 13 (main): Changed PLATFORM(MAC) || PLATFORM(IOS) guards to OS(DARWIN), because they were 14 surrounding tests for code that is itself guarded by OS(DARWIN). 15 16 * runtime/Watchdog.h: Changed PLATFORM(MAC) to OS(DARWIN). 17 18 * tools/CodeProfiling.cpp: 19 (JSC::CodeProfiling::begin): Changed PLATFORM(MAC) to 20 OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK). 21 (JSC::CodeProfiling::end): Ditto. 22 1 23 2014-02-02 Mark Lam <mark.lam@apple.com> 2 24 -
TabularUnified trunk/Source/JavaScriptCore/runtime/Watchdog.h ¶
r156169 r163291 27 27 #define Watchdog_h 28 28 29 #if PLATFORM(MAC) || PLATFORM(IOS)29 #if OS(DARWIN) 30 30 #include <dispatch/dispatch.h> 31 31 #endif … … 94 94 void* m_callbackData2; 95 95 96 #if PLATFORM(MAC) || PLATFORM(IOS)96 #if OS(DARWIN) 97 97 dispatch_queue_t m_queue; 98 98 dispatch_source_t m_timer; -
TabularUnified trunk/Source/JavaScriptCore/tools/CodeProfiling.cpp ¶
r111618 r163291 49 49 #endif 50 50 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)) 52 52 // Helper function to start & stop the timer. 53 53 // Presently we're using the wall-clock timer, since this seems to give the best results. … … 67 67 #endif 68 68 69 #if PLATFORM(MAC) && CPU(X86_64)69 #if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) && CPU(X86_64) 70 70 static void profilingTimer(int, siginfo_t*, void* uap) 71 71 { … … 144 144 return; 145 145 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)) 147 147 // Regsiter a signal handler & itimer. 148 148 struct sigaction action; … … 168 168 return; 169 169 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)) 171 171 // Stop profiling 172 172 setProfileTimer(0);
Note:
See TracChangeset
for help on using the changeset viewer.