[Win] Warning fixes.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Aug 2016 17:17:37 +0000 (17:17 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Aug 2016 17:17:37 +0000 (17:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=160803

Reviewed by Brent Fulgham.

Initialize local variables.

* jit/JIT.cpp:
(JSC::JIT::compileWithoutLinking):
* runtime/Error.cpp:
(JSC::addErrorInfoAndGetBytecodeOffset):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204446 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/JIT.cpp
Source/JavaScriptCore/runtime/Error.cpp

index 70d4b91..ee0a072 100644 (file)
@@ -1,3 +1,17 @@
+2016-08-13  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win] Warning fixes.
+        https://bugs.webkit.org/show_bug.cgi?id=160803
+
+        Reviewed by Brent Fulgham.
+
+        Initialize local variables.
+
+        * jit/JIT.cpp:
+        (JSC::JIT::compileWithoutLinking):
+        * runtime/Error.cpp:
+        (JSC::addErrorInfoAndGetBytecodeOffset):
+
 2016-08-12  Joseph Pecoraro  <pecoraro@apple.com>
 
         Remove always true JSC::Debugger::needPauseHandling virtual method
index 60e5d8e..b00dfac 100644 (file)
@@ -661,7 +661,7 @@ void JIT::compileWithoutLinking(JITCompilationEffort effort)
 
     m_linkBuffer = std::unique_ptr<LinkBuffer>(new LinkBuffer(*m_vm, *this, m_codeBlock, effort));
 
-    double after;
+    double after = 0;
     if (UNLIKELY(computeCompileTimes())) {
         after = monotonicallyIncreasingTimeMS();
 
index 6f8a8ff..6836951 100644 (file)
@@ -143,7 +143,7 @@ bool addErrorInfoAndGetBytecodeOffset(ExecState* exec, VM& vm, JSObject* obj, bo
 
         ASSERT(exec == vm.topCallFrame || exec == exec->lexicalGlobalObject()->globalExec() || exec == exec->vmEntryGlobalObject()->globalExec());
 
-        StackFrame* firstNonNativeFrame;
+        StackFrame* firstNonNativeFrame = nullptr;
         for (unsigned i = 0 ; i < stackTrace.size(); ++i) {
             firstNonNativeFrame = &stackTrace.at(i);
             if (!firstNonNativeFrame->isNative())