Title: [88821] trunk/Source/_javascript_Core
- Revision
- 88821
- Author
- wei...@apple.com
- Date
- 2011-06-14 10:41:02 -0700 (Tue, 14 Jun 2011)
Log Message
Fix dumping of constants to have the correct constant number.
Reviewed by Geoffrey Garen.
* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::dump):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (88820 => 88821)
--- trunk/Source/_javascript_Core/ChangeLog 2011-06-14 17:40:01 UTC (rev 88820)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-06-14 17:41:02 UTC (rev 88821)
@@ -1,3 +1,12 @@
+2011-06-14 Sam Weinig <s...@webkit.org>
+
+ Reviewed by Geoffrey Garen.
+
+ Fix dumping of constants to have the correct constant number.
+
+ * bytecode/CodeBlock.cpp:
+ (JSC::CodeBlock::dump):
+
2011-06-14 Benjamin Poulain <benja...@webkit.org>
Reviewed by Eric Seidel.
Modified: trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp (88820 => 88821)
--- trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp 2011-06-14 17:40:01 UTC (rev 88820)
+++ trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp 2011-06-14 17:41:02 UTC (rev 88821)
@@ -358,12 +358,10 @@
if (!m_constantRegisters.isEmpty()) {
printf("\nConstants:\n");
- unsigned registerIndex = m_numVars;
size_t i = 0;
do {
- printf(" k%u = %s\n", registerIndex, valueToSourceString(exec, m_constantRegisters[i].get()).utf8().data());
+ printf(" k%u = %s\n", static_cast<unsigned>(i), valueToSourceString(exec, m_constantRegisters[i].get()).utf8().data());
++i;
- ++registerIndex;
} while (i < m_constantRegisters.size());
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes