Title: [159936] trunk/Source/_javascript_Core
Revision
159936
Author
commit-qu...@webkit.org
Date
2013-12-02 08:51:07 -0800 (Mon, 02 Dec 2013)

Log Message

Unused include files when building without JIT.
https://bugs.webkit.org/show_bug.cgi?id=125062

Patch by László Langó <la...@inf.u-szeged.hu> on 2013-12-02
Reviewed by Michael Saboff.

We should organize the includes, and guard JIT methods
in ValueRecovery.

* bytecode/ValueRecovery.cpp: Guard include files.
* bytecode/ValueRecovery.h: Guard JIT methods.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (159935 => 159936)


--- trunk/Source/_javascript_Core/ChangeLog	2013-12-02 16:41:33 UTC (rev 159935)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-12-02 16:51:07 UTC (rev 159936)
@@ -1,3 +1,16 @@
+2013-12-02  László Langó  <la...@inf.u-szeged.hu>
+
+        Unused include files when building without JIT.
+        https://bugs.webkit.org/show_bug.cgi?id=125062
+
+        Reviewed by Michael Saboff.
+
+        We should organize the includes, and guard JIT methods
+        in ValueRecovery.
+
+        * bytecode/ValueRecovery.cpp: Guard include files.
+        * bytecode/ValueRecovery.h: Guard JIT methods.
+
 2013-12-02  Balazs Kilvady  <kilva...@homejinni.com>
 
         [MIPS] Small stack frame causes regressions.

Modified: trunk/Source/_javascript_Core/bytecode/ValueRecovery.cpp (159935 => 159936)


--- trunk/Source/_javascript_Core/bytecode/ValueRecovery.cpp	2013-12-02 16:41:33 UTC (rev 159935)
+++ trunk/Source/_javascript_Core/bytecode/ValueRecovery.cpp	2013-12-02 16:51:07 UTC (rev 159936)
@@ -60,6 +60,8 @@
     }
 }
 
+#if ENABLE(JIT)
+
 void ValueRecovery::dumpInContext(PrintStream& out, DumpContext* context) const
 {
     switch (technique()) {
@@ -130,6 +132,7 @@
 {
     dumpInContext(out, 0);
 }
+#endif // ENABLE(JIT)
 
 } // namespace JSC
 

Modified: trunk/Source/_javascript_Core/bytecode/ValueRecovery.h (159935 => 159936)


--- trunk/Source/_javascript_Core/bytecode/ValueRecovery.h	2013-12-02 16:41:33 UTC (rev 159935)
+++ trunk/Source/_javascript_Core/bytecode/ValueRecovery.h	2013-12-02 16:51:07 UTC (rev 159936)
@@ -27,12 +27,13 @@
 #define ValueRecovery_h
 
 #include "DataFormat.h"
+#if ENABLE(JIT)
 #include "GPRInfo.h"
 #include "FPRInfo.h"
+#endif
 #include "JSCJSValue.h"
 #include "MacroAssembler.h"
 #include "VirtualRegister.h"
-#include <stdio.h>
 #include <wtf/Platform.h>
 
 namespace JSC {
@@ -246,8 +247,10 @@
     
     JSValue recover(ExecState*) const;
     
+#if ENABLE(JIT)
     void dumpInContext(PrintStream& out, DumpContext* context) const;
     void dump(PrintStream& out) const;
+#endif
 
 private:
     ValueRecoveryTechnique m_technique;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to