Title: [204066] trunk/Source/_javascript_Core
- Revision
- 204066
- Author
- benja...@webkit.org
- Date
- 2016-08-02 22:33:48 -0700 (Tue, 02 Aug 2016)
Log Message
[JSC] Fix 32bits jsc after r204065
Default constructed JSValue() are not equal to zero in 32bits.
* dfg/DFGAbstractValue.h:
(JSC::DFG::AbstractValue::AbstractValue):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (204065 => 204066)
--- trunk/Source/_javascript_Core/ChangeLog 2016-08-03 03:45:07 UTC (rev 204065)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-08-03 05:33:48 UTC (rev 204066)
@@ -1,5 +1,14 @@
2016-08-02 Benjamin Poulain <benja...@webkit.org>
+ [JSC] Fix 32bits jsc after r204065
+
+ Default constructed JSValue() are not equal to zero in 32bits.
+
+ * dfg/DFGAbstractValue.h:
+ (JSC::DFG::AbstractValue::AbstractValue):
+
+2016-08-02 Benjamin Poulain <benja...@webkit.org>
+
[JSC] Simplify the initialization of AbstractValue in the AbstractInterpreter
https://bugs.webkit.org/show_bug.cgi?id=160370
Modified: trunk/Source/_javascript_Core/dfg/DFGAbstractValue.h (204065 => 204066)
--- trunk/Source/_javascript_Core/dfg/DFGAbstractValue.h 2016-08-03 03:45:07 UTC (rev 204065)
+++ trunk/Source/_javascript_Core/dfg/DFGAbstractValue.h 2016-08-03 05:33:48 UTC (rev 204066)
@@ -55,7 +55,7 @@
: m_type(SpecNone)
, m_arrayModes(0)
{
-#ifndef NDEBUG
+#if USE(JSVALUE64) && !defined(NDEBUG)
// The WTF Traits for AbstractValue allow the initialization of values with bzero().
// We verify the correctness of this assumption here.
static bool needsDefaultConstructorCheck = true;
@@ -467,6 +467,7 @@
} } // namespace JSC::DFG
+#if USE(JSVALUE64)
namespace WTF {
template <>
struct VectorTraits<JSC::DFG::AbstractValue> : VectorTraitsBase<false, JSC::DFG::AbstractValue> {
@@ -478,6 +479,7 @@
static const bool emptyValueIsZero = true;
};
};
+#endif // USE(JSVALUE64)
#endif // ENABLE(DFG_JIT)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes