X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/bytecode/SamplingTool.h diff --git a/bytecode/SamplingTool.h b/bytecode/SamplingTool.h index 678af85..7d9c54f 100644 --- a/bytecode/SamplingTool.h +++ b/bytecode/SamplingTool.h @@ -271,7 +271,7 @@ namespace JSC { , m_sampleCount(0) , m_opcodeSampleCount(0) #if ENABLE(CODEBLOCK_SAMPLING) - , m_scopeSampleMap(adoptPtr(new ScriptSampleRecordMap)) + , m_scopeSampleMap(std::make_unique) #endif { memset(m_opcodeSamples, 0, sizeof(m_opcodeSamples)); @@ -338,7 +338,7 @@ namespace JSC { #if ENABLE(CODEBLOCK_SAMPLING) Mutex m_scriptSampleMapMutex; - OwnPtr m_scopeSampleMap; + std::unique_ptr m_scopeSampleMap; #endif };