Title: [106796] trunk/Source/_javascript_Core
Revision
106796
Author
[email protected]
Date
2012-02-06 04:33:47 -0800 (Mon, 06 Feb 2012)

Log Message

Unreviewed WinCE build fix after r106197.

* tools/CodeProfiling.cpp:
(JSC::CodeProfiling::notifyAllocator): getenv() isn't supported by WinCE. Don't call it.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (106795 => 106796)


--- trunk/Source/_javascript_Core/ChangeLog	2012-02-06 11:18:00 UTC (rev 106795)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-02-06 12:33:47 UTC (rev 106796)
@@ -1,3 +1,10 @@
+2012-02-06  Patrick Gansterer  <[email protected]>
+
+        Unreviewed WinCE build fix after r106197.
+
+        * tools/CodeProfiling.cpp:
+        (JSC::CodeProfiling::notifyAllocator): getenv() isn't supported by WinCE. Don't call it.
+
 2012-02-05  Gavin Barraclough  <[email protected]>
 
         Remove JSObject defineGetter/defineSetter lookupGetter/lookupSetter

Modified: trunk/Source/_javascript_Core/tools/CodeProfiling.cpp (106795 => 106796)


--- trunk/Source/_javascript_Core/tools/CodeProfiling.cpp	2012-02-06 11:18:00 UTC (rev 106795)
+++ trunk/Source/_javascript_Core/tools/CodeProfiling.cpp	2012-02-06 12:33:47 UTC (rev 106796)
@@ -28,8 +28,11 @@
 
 #include "CodeProfile.h"
 #include "MetaAllocator.h"
-#include "signal.h"
 
+#if HAVE(SIGNAL_H)
+#include <signal.h>
+#endif
+
 namespace JSC {
 
 volatile CodeProfile* CodeProfiling::s_profileStack = 0;
@@ -78,6 +81,7 @@
 
 void CodeProfiling::notifyAllocator(WTF::MetaAllocator* allocator)
 {
+#if !OS(WINCE)
     // Check for JSC_CODE_PROFILING.
     const char* codeProfilingMode = getenv("JSC_CODE_PROFILING");
     if (!codeProfilingMode)
@@ -104,6 +108,7 @@
     ASSERT(!s_tracker);
     s_tracker = new WTF::MetaAllocatorTracker();
     allocator->trackAllocations(s_tracker);
+#endif
 }
 
 void* CodeProfiling::getOwnerUIDForPC(void* address)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to