Fix the ENABLE(B3_JIT) build on Linux
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Nov 2015 15:50:37 +0000 (15:50 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Nov 2015 15:50:37 +0000 (15:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150794

Reviewed by Darin Adler.

* CMakeLists.txt:
* b3/B3HeapRange.h:
* b3/B3IndexSet.h:
(JSC::B3::IndexSet::Iterable::iterator::operator++):
* b3/B3Type.h:
(JSC::B3::sizeofType):
* b3/air/AirArg.cpp:
(JSC::B3::Air::Arg::dump):
* b3/air/AirArg.h:
(JSC::B3::Air::Arg::isUse):
(JSC::B3::Air::Arg::isDef):
(JSC::B3::Air::Arg::isGP):
(JSC::B3::Air::Arg::isFP):
(JSC::B3::Air::Arg::isType):
* b3/air/AirCode.h:
(JSC::B3::Air::Code::newTmp):
(JSC::B3::Air::Code::numTmps):
* b3/air/AirSpecial.cpp:

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

Source/JavaScriptCore/CMakeLists.txt
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/B3HeapRange.h
Source/JavaScriptCore/b3/B3IndexSet.h
Source/JavaScriptCore/b3/B3Type.h
Source/JavaScriptCore/b3/air/AirArg.cpp
Source/JavaScriptCore/b3/air/AirArg.h
Source/JavaScriptCore/b3/air/AirCode.h
Source/JavaScriptCore/b3/air/AirSpecial.cpp

index e171cc18958186a13a22e3c235e2dca3bad23979..9642d69756ba4a2df756ebf9a4e14fa6d57f511c 100644 (file)
@@ -73,6 +73,7 @@ set(JavaScriptCore_SOURCES
     b3/air/AirBasicBlock.cpp
     b3/air/AirCCallSpecial.cpp
     b3/air/AirCode.cpp
+    b3/air/AirEliminateDeadCode.cpp
     b3/air/AirGenerate.cpp
     b3/air/AirGenerated.cpp
     b3/air/AirHandleCalleeSaves.cpp
@@ -80,6 +81,7 @@ set(JavaScriptCore_SOURCES
     b3/air/AirInst.cpp
     b3/air/AirPhaseScope.cpp
     b3/air/AirRegisterPriority.cpp
+    b3/air/AirReportUsedRegisters.cpp
     b3/air/AirSpecial.cpp
     b3/air/AirSpillEverything.cpp
     b3/air/AirStackSlot.cpp
@@ -116,6 +118,7 @@ set(JavaScriptCore_SOURCES
     b3/B3StackSlotValue.cpp
     b3/B3SwitchCase.cpp
     b3/B3SwitchValue.cpp
+    b3/B3TimingScope.cpp
     b3/B3Type.cpp
     b3/B3UpsilonValue.cpp
     b3/B3UseCounts.cpp
index 5a1050dc12b358372cab6f0f3176b5b665e8d65f..916cb38630bac0a0427f89efebdabef32bdc81a0 100644 (file)
@@ -1,3 +1,29 @@
+2015-11-03  Csaba Osztrogon√°c  <ossy@webkit.org>
+
+        Fix the ENABLE(B3_JIT) build on Linux
+        https://bugs.webkit.org/show_bug.cgi?id=150794
+
+        Reviewed by Darin Adler.
+
+        * CMakeLists.txt:
+        * b3/B3HeapRange.h:
+        * b3/B3IndexSet.h:
+        (JSC::B3::IndexSet::Iterable::iterator::operator++):
+        * b3/B3Type.h:
+        (JSC::B3::sizeofType):
+        * b3/air/AirArg.cpp:
+        (JSC::B3::Air::Arg::dump):
+        * b3/air/AirArg.h:
+        (JSC::B3::Air::Arg::isUse):
+        (JSC::B3::Air::Arg::isDef):
+        (JSC::B3::Air::Arg::isGP):
+        (JSC::B3::Air::Arg::isFP):
+        (JSC::B3::Air::Arg::isType):
+        * b3/air/AirCode.h:
+        (JSC::B3::Air::Code::newTmp):
+        (JSC::B3::Air::Code::numTmps):
+        * b3/air/AirSpecial.cpp:
+
 2015-11-03  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         Clean up ENABLE(ES6_ARROWFUNCTION_SYNTAX) ifdefs and keep minimal set of them
index 1001ecc59c31a9a1315360067445961539d12cb2..51ef15daf649eddcd2d2e4754a4740c2596391ba 100644 (file)
@@ -28,6 +28,7 @@
 
 #if ENABLE(B3_JIT)
 
+#include <limits.h>
 #include <wtf/MathExtras.h>
 #include <wtf/PrintStream.h>
 
index 41d71d8ee6311206bcd7804f882b37ae1d0fddb3..772c51176959c707650496b43d25631d655a2fb4 100644 (file)
@@ -84,7 +84,7 @@ public:
 
             iterator& operator++()
             {
-                m_iter++;
+                ++m_iter;
                 return *this;
             }
 
index cf4a560557558bf757e4cc2cd6d5bf784c7a8163..a91460153c2f57b58e087a53dc5be2be70df1827 100644 (file)
@@ -68,6 +68,8 @@ inline size_t sizeofType(Type type)
     case Double:
         return 8;
     }
+    RELEASE_ASSERT_NOT_REACHED();
+    return 0;
 }
 
 } } // namespace JSC::B3
index 58a307db36b34bcd79022e7bff5579e5b3ead598..7ae87f3316cec15d93fd45f8cf4c7585c44bafce 100644 (file)
@@ -46,7 +46,7 @@ void Arg::dump(PrintStream& out) const
         out.print("$", m_offset);
         return;
     case Imm64:
-        out.printf("$0x%llx", m_offset);
+        out.printf("$0x%llx", static_cast<long long unsigned>(m_offset));
         return;
     case Addr:
         if (offset())
index 6b9fca5109694eeb7f922483802a52c9634a1dab..99c473b64c4ad6ea3fa0ea4a8dce2452d706e341 100644 (file)
@@ -122,6 +122,8 @@ public:
         case UseAddr:
             return false;
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return false;
     }
 
     // Returns true if the Role implies that the Inst will Def the Arg.
@@ -135,6 +137,8 @@ public:
         case UseDef:
             return true;
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return false;
     }
 
     static Type typeForB3Type(B3::Type type)
@@ -468,6 +472,8 @@ public:
         case Invalid:
             return false;
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return false;
     }
 
     // Tells us if this Arg can be used in a position that requires a FP value.
@@ -490,6 +496,8 @@ public:
         case Tmp:
             return isFPTmp();
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return false;
     }
 
     bool hasType() const
@@ -518,6 +526,8 @@ public:
         case FP:
             return isFP();
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return false;
     }
 
     bool isGPR() const
index e7774eed38778180cd09a313b040416d0619faf1..96e286bec50cfe5123d005c37fb9d8ee320dc6e5 100644 (file)
@@ -71,6 +71,8 @@ public:
         case Arg::FP:
             return Tmp::fpTmpForIndex(m_numFPTmps++);
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return { };
     }
 
     unsigned numTmps(Arg::Type type)
@@ -81,6 +83,8 @@ public:
         case Arg::FP:
             return m_numFPTmps;
         }
+        RELEASE_ASSERT_NOT_REACHED();
+        return 0;
     }
 
     unsigned callArgAreaSize() const { return m_callArgAreaSize; }
index 627076be4d0b1324781b72e1ccc41b0e71aadbf6..3995d26060e0a11e3d8daa1fe89169ad9ae84244 100644 (file)
@@ -28,6 +28,7 @@
 
 #if ENABLE(B3_JIT)
 
+#include <limits.h>
 #include <wtf/StringPrintStream.h>
 
 namespace JSC { namespace B3 { namespace Air {