Title: [192326] trunk/Source/_javascript_Core
- Revision
- 192326
- Author
- mark....@apple.com
- Date
- 2015-11-11 14:31:18 -0800 (Wed, 11 Nov 2015)
Log Message
Add convenience utility to support dataLogging opcodeIDs.
https://bugs.webkit.org/show_bug.cgi?id=151117
Reviewed by Saam Barati.
* bytecode/Opcode.cpp:
(WTF::printInternal):
* bytecode/Opcode.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (192325 => 192326)
--- trunk/Source/_javascript_Core/ChangeLog 2015-11-11 22:20:19 UTC (rev 192325)
+++ trunk/Source/_javascript_Core/ChangeLog 2015-11-11 22:31:18 UTC (rev 192326)
@@ -1,3 +1,14 @@
+2015-11-11 Mark Lam <mark....@apple.com>
+
+ Add convenience utility to support dataLogging opcodeIDs.
+ https://bugs.webkit.org/show_bug.cgi?id=151117
+
+ Reviewed by Saam Barati.
+
+ * bytecode/Opcode.cpp:
+ (WTF::printInternal):
+ * bytecode/Opcode.h:
+
2015-11-10 Keith Miller <keith_mil...@apple.com>
Regression(r191815): 5.3% regression on Dromaeo JS Library Benchmark
Modified: trunk/Source/_javascript_Core/bytecode/Opcode.cpp (192325 => 192326)
--- trunk/Source/_javascript_Core/bytecode/Opcode.cpp 2015-11-11 22:20:19 UTC (rev 192325)
+++ trunk/Source/_javascript_Core/bytecode/Opcode.cpp 2015-11-11 22:31:18 UTC (rev 192326)
@@ -30,6 +30,8 @@
#include "config.h"
#include "Opcode.h"
+#include <wtf/PrintStream.h>
+
#if ENABLE(OPCODE_STATS)
#include <array>
#include <wtf/DataLog.h>
@@ -185,3 +187,14 @@
#endif
} // namespace JSC
+
+namespace WTF {
+
+using namespace JSC;
+
+void printInternal(PrintStream& out, OpcodeID opcode)
+{
+ out.print(opcodeNames[opcode]);
+}
+
+} // namespace WTF
Modified: trunk/Source/_javascript_Core/bytecode/Opcode.h (192325 => 192326)
--- trunk/Source/_javascript_Core/bytecode/Opcode.h 2015-11-11 22:20:19 UTC (rev 192325)
+++ trunk/Source/_javascript_Core/bytecode/Opcode.h 2015-11-11 22:31:18 UTC (rev 192326)
@@ -128,4 +128,12 @@
} // namespace JSC
+namespace WTF {
+
+class PrintStream;
+
+void printInternal(PrintStream&, JSC::OpcodeID);
+
+} // namespace WTF
+
#endif // Opcode_h
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes