X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..refs/heads/master:/tools/CodeProfile.h diff --git a/tools/CodeProfile.h b/tools/CodeProfile.h index 6b0a306..42f6de5 100644 --- a/tools/CodeProfile.h +++ b/tools/CodeProfile.h @@ -37,11 +37,11 @@ class CodeProfile { public: CodeProfile(const SourceCode& source, CodeProfile* parent) : m_file(source.provider()->url().utf8()) - , m_lineNo(source.firstLine()) + , m_lineNumber(source.firstLine()) , m_parent(parent) { if (parent) - parent->addChild(this); + parent->addChild(std::unique_ptr(this)); } void sample(void* pc, void** framePointer); @@ -52,9 +52,9 @@ public: return m_parent; } - void addChild(CodeProfile* child) + void addChild(std::unique_ptr child) { - m_children.append(adoptPtr(child)); + m_children.append(WTF::move(child)); } private: @@ -80,9 +80,9 @@ private: }; CString m_file; - unsigned m_lineNo; + unsigned m_lineNumber; CodeProfile* m_parent; - Vector< OwnPtr> m_children; + Vector> m_children; TieredMMapArray m_samples; static const char* s_codeTypeNames[NumberOfCodeTypes];