Unreviewed, fix cloop build after r199754.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Apr 2016 05:49:31 +0000 (05:49 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Apr 2016 05:49:31 +0000 (05:49 +0000)
* jsc.cpp:
(jscmain):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jsc.cpp

index 06d199a..f707806 100644 (file)
@@ -1,3 +1,10 @@
+2016-04-19  Saam barati  <sbarati@apple.com>
+
+        Unreviewed, fix cloop build after r199754.
+
+        * jsc.cpp:
+        (jscmain):
+
 2016-04-19  Michael Saboff  <msaboff@apple.com>
 
         iTunes crashing JavaScriptCore.dll
index 12f018e..908ac59 100644 (file)
@@ -2274,8 +2274,12 @@ int jscmain(int argc, char** argv)
     }
 
     if (options.m_dumpSamplingProfilerData) {
+#if ENABLE(SAMPLING_PROFILER)
         vm->samplingProfiler()->reportTopFunctions();
         vm->samplingProfiler()->reportTopBytecodes();
+#else
+        dataLog("Sampling profiler is not enabled on this platform\n");
+#endif
     }
 
     printSuperSamplerState();