Title: [184292] trunk/Source/_javascript_Core
- Revision
- 184292
- Author
- [email protected]
- Date
- 2015-05-13 11:51:46 -0700 (Wed, 13 May 2015)
Log Message
Avoid always running some debug code in type profiling
https://bugs.webkit.org/show_bug.cgi?id=144775
Reviewed by Daniel Bates.
* runtime/TypeProfilerLog.cpp:
(JSC::TypeProfilerLog::processLogEntries):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (184291 => 184292)
--- trunk/Source/_javascript_Core/ChangeLog 2015-05-13 18:51:44 UTC (rev 184291)
+++ trunk/Source/_javascript_Core/ChangeLog 2015-05-13 18:51:46 UTC (rev 184292)
@@ -1,5 +1,15 @@
2015-05-13 Joseph Pecoraro <[email protected]>
+ Avoid always running some debug code in type profiling
+ https://bugs.webkit.org/show_bug.cgi?id=144775
+
+ Reviewed by Daniel Bates.
+
+ * runtime/TypeProfilerLog.cpp:
+ (JSC::TypeProfilerLog::processLogEntries):
+
+2015-05-13 Joseph Pecoraro <[email protected]>
+
Pass String as reference in more places
https://bugs.webkit.org/show_bug.cgi?id=144769
Modified: trunk/Source/_javascript_Core/runtime/TypeProfilerLog.cpp (184291 => 184292)
--- trunk/Source/_javascript_Core/runtime/TypeProfilerLog.cpp 2015-05-13 18:51:44 UTC (rev 184291)
+++ trunk/Source/_javascript_Core/runtime/TypeProfilerLog.cpp 2015-05-13 18:51:46 UTC (rev 184292)
@@ -54,17 +54,19 @@
void TypeProfilerLog::processLogEntries(const String& reason)
{
- if (verbose)
+ double before = 0;
+ if (verbose) {
dataLog("Process caller:'", reason, "'");
+ before = currentTimeMS();
+ }
- double before = currentTimeMS();
LogEntry* entry = m_logStartPtr;
HashMap<Structure*, RefPtr<StructureShape>> seenShapes;
while (entry != m_currentLogEntryPtr) {
StructureID id = entry->structureID;
RefPtr<StructureShape> shape;
JSValue value = entry->value;
- Structure* structure = 0;
+ Structure* structure = nullptr;
if (id) {
structure = Heap::heap(value.asCell())->structureIDTable().get(id);
auto iter = seenShapes.find(structure);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes