summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/jit/JITDisassembler.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/jit/JITDisassembler.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/jit/JITDisassembler.h')
-rw-r--r--Source/JavaScriptCore/jit/JITDisassembler.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/Source/JavaScriptCore/jit/JITDisassembler.h b/Source/JavaScriptCore/jit/JITDisassembler.h
index 6655de893..7ea13f47d 100644
--- a/Source/JavaScriptCore/jit/JITDisassembler.h
+++ b/Source/JavaScriptCore/jit/JITDisassembler.h
@@ -26,20 +26,20 @@
#ifndef JITDisassembler_h
#define JITDisassembler_h
+#include <wtf/Platform.h>
+
#if ENABLE(JIT)
+#include "LinkBuffer.h"
#include "MacroAssembler.h"
+#include "ProfilerDatabase.h"
#include <wtf/Vector.h>
-#include <wtf/text/CString.h>
namespace JSC {
class CodeBlock;
-class LinkBuffer;
-namespace Profiler {
-class Compilation;
-}
+#if ENABLE(DISASSEMBLER)
class JITDisassembler {
WTF_MAKE_FAST_ALLOCATED;
@@ -86,6 +86,25 @@ private:
MacroAssembler::Label m_endOfCode;
};
+#else // ENABLE(DISASSEMBLER)
+
+class JITDisassembler {
+ WTF_MAKE_FAST_ALLOCATED;
+public:
+ JITDisassembler(CodeBlock*) { }
+
+ void setStartOfCode(MacroAssembler::Label) { }
+ void setForBytecodeMainPath(unsigned, MacroAssembler::Label) { }
+ void setForBytecodeSlowPath(unsigned, MacroAssembler::Label) { }
+ void setEndOfSlowPath(MacroAssembler::Label) { }
+ void setEndOfCode(MacroAssembler::Label) { }
+
+ void dump(LinkBuffer&) { }
+ void reportToProfiler(Profiler::Compilation*, LinkBuffer&) { }
+};
+
+#endif // ENABLE(DISASSEMBLER)
+
} // namespace JSC
#endif // ENABLE(JIT)