Title: [230388] trunk/Source/_javascript_Core
- Revision
- 230388
- Author
- utatane....@gmail.com
- Date
- 2018-04-08 21:55:23 -0700 (Sun, 08 Apr 2018)
Log Message
Unreviewed, build fix for Windows by suppressing padding warning for JIT
https://bugs.webkit.org/show_bug.cgi?id=183508
* jit/JIT.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (230387 => 230388)
--- trunk/Source/_javascript_Core/ChangeLog 2018-04-09 04:41:17 UTC (rev 230387)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-04-09 04:55:23 UTC (rev 230388)
@@ -1,5 +1,12 @@
2018-04-08 Yusuke Suzuki <utatane....@gmail.com>
+ Unreviewed, build fix for Windows by suppressing padding warning for JIT
+ https://bugs.webkit.org/show_bug.cgi?id=183508
+
+ * jit/JIT.h:
+
+2018-04-08 Yusuke Suzuki <utatane....@gmail.com>
+
Use alignas instead of compiler-specific attributes
https://bugs.webkit.org/show_bug.cgi?id=183508
Modified: trunk/Source/_javascript_Core/jit/JIT.h (230387 => 230388)
--- trunk/Source/_javascript_Core/jit/JIT.h 2018-04-09 04:41:17 UTC (rev 230387)
+++ trunk/Source/_javascript_Core/jit/JIT.h 2018-04-09 04:55:23 UTC (rev 230388)
@@ -170,6 +170,10 @@
// We've run into some problems where changing the size of the class JIT leads to
// performance fluctuations. Try forcing alignment in an attempt to stabilize this.
+#if COMPILER(MSVC)
+#pragma warning(push)
+#pragma warning(disable: 4324) // Disable "structure was padded due to alignment specifier" warning
+#endif
class alignas(32) JIT : private JSInterfaceJIT {
friend class JITSlowPathCall;
friend class JITStubCall;
@@ -943,6 +947,9 @@
bool m_shouldUseIndexMasking;
unsigned m_loopOSREntryBytecodeOffset { 0 };
};
+#if COMPILER(MSVC)
+#pragma warning(pop)
+#endif
} // namespace JSC
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes