Title: [226603] trunk/Source/WebCore
Revision
226603
Author
sbar...@apple.com
Date
2018-01-08 17:55:40 -0800 (Mon, 08 Jan 2018)

Log Message

Speculative build fix after r226600. We only use clflush on x86 and the `asm volatile` syntax is not available in the Windows build.

No new tests because this is a build fix.

* dom/Comment.cpp:
(WebCore::Comment::clflushReadLength):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (226602 => 226603)


--- trunk/Source/WebCore/ChangeLog	2018-01-09 01:53:29 UTC (rev 226602)
+++ trunk/Source/WebCore/ChangeLog	2018-01-09 01:55:40 UTC (rev 226603)
@@ -1,3 +1,12 @@
+2018-01-08  Saam Barati  <sbar...@apple.com>
+
+        Speculative build fix after r226600. We only use clflush on x86 and the `asm volatile` syntax is not available in the Windows build.
+
+        No new tests because this is a build fix.
+
+        * dom/Comment.cpp:
+        (WebCore::Comment::clflushReadLength):
+
 2018-01-08  Michael Saboff  <msab...@apple.com>
 
         Add a DOM gadget for Spectre testing

Modified: trunk/Source/WebCore/dom/Comment.cpp (226602 => 226603)


--- trunk/Source/WebCore/dom/Comment.cpp	2018-01-09 01:53:29 UTC (rev 226602)
+++ trunk/Source/WebCore/dom/Comment.cpp	2018-01-09 01:55:40 UTC (rev 226603)
@@ -86,6 +86,7 @@
 
 void Comment::clflushReadLength()
 {
+#if CPU(X86_64) && !OS(WINDOWS)
     auto clflush = [] (void* ptr) {
         char* ptrToFlush = static_cast<char*>(ptr);
         asm volatile ("clflush %0" :: "m"(*ptrToFlush) : "memory");
@@ -92,6 +93,7 @@
     };
 
     clflush(&m_readLength);
+#endif
 }
 
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to