Title: [252756] trunk/Source/_javascript_Core
Revision
252756
Author
[email protected]
Date
2019-11-21 16:54:47 -0800 (Thu, 21 Nov 2019)

Log Message

Fix Win64 compile errors
https://bugs.webkit.org/show_bug.cgi?id=204471

Reviewed by Brent Fulgham.

Fix warnings being treated as errors.

* bytecode/AccessCase.cpp:
(JSC::AccessCase::requiresIdentifierNameMatch const):
(JSC::AccessCase::requiresInt32PropertyCheck const):
(JSC::AccessCase::needsScratchFPR const):
(JSC::AccessCase::doesCalls const):
(JSC::AccessCase::canReplace const):
* dfg/DFGOSRExit.cpp:
(JSC::DFG::OSRExit::executeOSRExit):
* jit/JITOperations.cpp:
(JSC::profiledAdd):
* jit/Repatch.cpp:
(JSC::appropriateOptimizingGetByFunction):
(JSC::appropriateGetByFunction):
* tools/JSDollarVM.cpp:
(JSC::functionCallWithStackSize):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (252755 => 252756)


--- trunk/Source/_javascript_Core/ChangeLog	2019-11-22 00:32:45 UTC (rev 252755)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-11-22 00:54:47 UTC (rev 252756)
@@ -1,3 +1,28 @@
+2019-11-21  Per Arne Vollan  <[email protected]>
+
+        Fix Win64 compile errors
+        https://bugs.webkit.org/show_bug.cgi?id=204471
+
+        Reviewed by Brent Fulgham.
+
+        Fix warnings being treated as errors.
+
+        * bytecode/AccessCase.cpp:
+        (JSC::AccessCase::requiresIdentifierNameMatch const):
+        (JSC::AccessCase::requiresInt32PropertyCheck const):
+        (JSC::AccessCase::needsScratchFPR const):
+        (JSC::AccessCase::doesCalls const):
+        (JSC::AccessCase::canReplace const):
+        * dfg/DFGOSRExit.cpp:
+        (JSC::DFG::OSRExit::executeOSRExit):
+        * jit/JITOperations.cpp:
+        (JSC::profiledAdd):
+        * jit/Repatch.cpp:
+        (JSC::appropriateOptimizingGetByFunction):
+        (JSC::appropriateGetByFunction):
+        * tools/JSDollarVM.cpp:
+        (JSC::functionCallWithStackSize):
+
 2019-11-21  Yusuke Suzuki  <[email protected]>
 
         Unreviewed, rolling in again, regression is not caused by it

Modified: trunk/Source/_javascript_Core/bytecode/AccessCase.cpp (252755 => 252756)


--- trunk/Source/_javascript_Core/bytecode/AccessCase.cpp	2019-11-22 00:32:45 UTC (rev 252755)
+++ trunk/Source/_javascript_Core/bytecode/AccessCase.cpp	2019-11-22 00:54:47 UTC (rev 252756)
@@ -294,6 +294,7 @@
     case IndexedStringLoad:
         return false;
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 bool AccessCase::requiresInt32PropertyCheck() const
@@ -340,6 +341,7 @@
     case IndexedStringLoad:
         return true;
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 bool AccessCase::needsScratchFPR() const
@@ -386,6 +388,7 @@
     case IndexedTypedArrayUint32Load:
         return true;
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 template<typename Functor>
@@ -469,7 +472,7 @@
 
 bool AccessCase::doesCalls(Vector<JSCell*>* cellsToMarkIfDoesCalls) const
 {
-    bool doesCalls;
+    bool doesCalls = false;
     switch (type()) {
     case Transition:
         doesCalls = newStructure()->outOfLineCapacity() != structure()->outOfLineCapacity() && structure()->couldHaveIndexingHeader();
@@ -634,6 +637,7 @@
 
         return structure() == other.structure();
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 void AccessCase::dump(PrintStream& out) const

Modified: trunk/Source/_javascript_Core/dfg/DFGOSRExit.cpp (252755 => 252756)


--- trunk/Source/_javascript_Core/dfg/DFGOSRExit.cpp	2019-11-22 00:32:45 UTC (rev 252755)
+++ trunk/Source/_javascript_Core/dfg/DFGOSRExit.cpp	2019-11-22 00:54:47 UTC (rev 252756)
@@ -695,8 +695,8 @@
     saveCalleeSavesFor(context, baselineCodeBlock);
 
 #if USE(JSVALUE64)
-    cpu.gpr(GPRInfo::numberTagRegister) = JSValue::NumberTag;
-    cpu.gpr(GPRInfo::notCellMaskRegister) = JSValue::NotCellMask;
+    cpu.gpr(GPRInfo::numberTagRegister) = static_cast<JSC::UCPURegister>(JSValue::NumberTag);
+    cpu.gpr(GPRInfo::notCellMaskRegister) = static_cast<JSC::UCPURegister>(JSValue::NotCellMask);
 #endif
 
     if (exit.isExceptionHandler())

Modified: trunk/Source/_javascript_Core/jit/JITOperations.cpp (252755 => 252756)


--- trunk/Source/_javascript_Core/jit/JITOperations.cpp	2019-11-22 00:32:45 UTC (rev 252755)
+++ trunk/Source/_javascript_Core/jit/JITOperations.cpp	2019-11-22 00:54:47 UTC (rev 252756)
@@ -85,6 +85,14 @@
 
 namespace JSC {
 
+ALWAYS_INLINE JSValue profiledAdd(JSGlobalObject* globalObject, JSValue op1, JSValue op2, BinaryArithProfile& arithProfile)
+{
+    arithProfile.observeLHSAndRHS(op1, op2);
+    JSValue result = jsAdd(globalObject, op1, op2);
+    arithProfile.observeResult(result);
+    return result;
+}
+
 extern "C" {
 
 #if COMPILER(MSVC)
@@ -2550,14 +2558,6 @@
 #endif // COMPILER(GCC_COMPATIBLE)
 }
 
-ALWAYS_INLINE static JSValue profiledAdd(JSGlobalObject* globalObject, JSValue op1, JSValue op2, BinaryArithProfile& arithProfile)
-{
-    arithProfile.observeLHSAndRHS(op1, op2);
-    JSValue result = jsAdd(globalObject, op1, op2);
-    arithProfile.observeResult(result);
-    return result;
-}
-
 EncodedJSValue JIT_OPERATION operationValueAdd(JSGlobalObject* globalObject, EncodedJSValue encodedOp1, EncodedJSValue encodedOp2)
 {
     VM& vm = globalObject->vm();

Modified: trunk/Source/_javascript_Core/jit/Repatch.cpp (252755 => 252756)


--- trunk/Source/_javascript_Core/jit/Repatch.cpp	2019-11-22 00:32:45 UTC (rev 252755)
+++ trunk/Source/_javascript_Core/jit/Repatch.cpp	2019-11-22 00:54:47 UTC (rev 252756)
@@ -159,6 +159,7 @@
     case GetByKind::NormalByVal:
         return operationGetByValOptimize;
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 inline FunctionPtr<CFunctionPtrTag> appropriateGetByFunction(GetByKind kind)
@@ -175,6 +176,7 @@
     case GetByKind::NormalByVal:
         return operationGetByValGeneric;
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static InlineCacheAction tryCacheGetBy(JSGlobalObject* globalObject, CodeBlock* codeBlock, JSValue baseValue, const Identifier& propertyName, const PropertySlot& slot, StructureStubInfo& stubInfo, GetByKind kind)

Modified: trunk/Source/_javascript_Core/tools/JSDollarVM.cpp (252755 => 252756)


--- trunk/Source/_javascript_Core/tools/JSDollarVM.cpp	2019-11-22 00:32:45 UTC (rev 252755)
+++ trunk/Source/_javascript_Core/tools/JSDollarVM.cpp	2019-11-22 00:54:47 UTC (rev 252756)
@@ -2092,7 +2092,9 @@
     );
 #else
     UNUSED_PARAM(function);
+#if !COMPILER(MSVC)
     UNUSED_PARAM(callWithStackSizeProbeFunction);
+#endif
 #endif // OS(DARWIN) && CPU(X86_64)
 
     Options::maxPerThreadStackUsage() = originalMaxPerThreadStackUsage;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to