Title: [204446] trunk/Source/_javascript_Core
Revision
204446
Author
[email protected]
Date
2016-08-13 10:17:37 -0700 (Sat, 13 Aug 2016)

Log Message

[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):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (204445 => 204446)


--- trunk/Source/_javascript_Core/ChangeLog	2016-08-13 15:32:43 UTC (rev 204445)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-08-13 17:17:37 UTC (rev 204446)
@@ -1,3 +1,17 @@
+2016-08-13  Per Arne Vollan  <[email protected]>
+
+        [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  <[email protected]>
 
         Remove always true JSC::Debugger::needPauseHandling virtual method

Modified: trunk/Source/_javascript_Core/jit/JIT.cpp (204445 => 204446)


--- trunk/Source/_javascript_Core/jit/JIT.cpp	2016-08-13 15:32:43 UTC (rev 204445)
+++ trunk/Source/_javascript_Core/jit/JIT.cpp	2016-08-13 17:17:37 UTC (rev 204446)
@@ -661,7 +661,7 @@
 
     m_linkBuffer = std::unique_ptr<LinkBuffer>(new LinkBuffer(*m_vm, *this, m_codeBlock, effort));
 
-    double after;
+    double after = 0;
     if (UNLIKELY(computeCompileTimes())) {
         after = monotonicallyIncreasingTimeMS();
 

Modified: trunk/Source/_javascript_Core/runtime/Error.cpp (204445 => 204446)


--- trunk/Source/_javascript_Core/runtime/Error.cpp	2016-08-13 15:32:43 UTC (rev 204445)
+++ trunk/Source/_javascript_Core/runtime/Error.cpp	2016-08-13 17:17:37 UTC (rev 204446)
@@ -143,7 +143,7 @@
 
         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())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to