diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h index eb0f9cb4f0..a7fffe007c 100644 --- a/src/cpu-profiler-inl.h +++ b/src/cpu-profiler-inl.h @@ -57,7 +57,7 @@ void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { } -void SharedFunctionMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { +void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { code_map->MoveCode(from, to); } diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc index 29b01182ed..ca16ad4ec6 100644 --- a/src/cpu-profiler.cc +++ b/src/cpu-profiler.cc @@ -149,9 +149,9 @@ void ProfilerEventsProcessor::CodeDeleteEvent(Address from) { } -void ProfilerEventsProcessor::SharedFunctionMoveEvent(Address from, Address to) { +void ProfilerEventsProcessor::SharedFunctionInfoMoveEvent(Address from, Address to) { CodeEventsContainer evt_rec; - SharedFunctionMoveEventRecord* rec = &evt_rec.SharedFunctionMoveEventRecord_; + SharedFunctionInfoMoveEventRecord* rec = &evt_rec.SharedFunctionInfoMoveEventRecord_; rec->type = CodeEventRecord::SHARED_FUNC_MOVE; rec->order = ++enqueue_order_; rec->from = from; @@ -403,8 +403,8 @@ void CpuProfiler::CodeDeleteEvent(Address from) { } -void CpuProfiler::SharedFunctionMoveEvent(Address from, Address to) { - singleton_->processor_->SharedFunctionMoveEvent(from, to); +void CpuProfiler::SharedFunctionInfoMoveEvent(Address from, Address to) { + singleton_->processor_->SharedFunctionInfoMoveEvent(from, to); } diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h index db5bfb15d3..fc4dfb73ec 100644 --- a/src/cpu-profiler.h +++ b/src/cpu-profiler.h @@ -46,11 +46,11 @@ class HashMap; class ProfileGenerator; class TokenEnumerator; -#define CODE_EVENTS_TYPE_LIST(V) \ - V(CODE_CREATION, CodeCreateEventRecord) \ - V(CODE_MOVE, CodeMoveEventRecord) \ - V(CODE_DELETE, CodeDeleteEventRecord) \ - V(SHARED_FUNC_MOVE, SharedFunctionMoveEventRecord) +#define CODE_EVENTS_TYPE_LIST(V) \ + V(CODE_CREATION, CodeCreateEventRecord) \ + V(CODE_MOVE, CodeMoveEventRecord) \ + V(CODE_DELETE, CodeDeleteEventRecord) \ + V(SHARED_FUNC_MOVE, SharedFunctionInfoMoveEventRecord) class CodeEventRecord { @@ -96,7 +96,7 @@ class CodeDeleteEventRecord : public CodeEventRecord { }; -class SharedFunctionMoveEventRecord : public CodeEventRecord { +class SharedFunctionInfoMoveEventRecord : public CodeEventRecord { public: Address from; Address to; @@ -158,7 +158,7 @@ class ProfilerEventsProcessor : public Thread { Address start, unsigned size); void CodeMoveEvent(Address from, Address to); void CodeDeleteEvent(Address from); - void SharedFunctionMoveEvent(Address from, Address to); + void SharedFunctionInfoMoveEvent(Address from, Address to); void RegExpCodeCreateEvent(Logger::LogEventsAndTags tag, const char* prefix, String* name, Address start, unsigned size); @@ -251,7 +251,7 @@ class CpuProfiler { static void GetterCallbackEvent(String* name, Address entry_point); static void RegExpCodeCreateEvent(Code* code, String* source); static void SetterCallbackEvent(String* name, Address entry_point); - static void SharedFunctionMoveEvent(Address from, Address to); + static void SharedFunctionInfoMoveEvent(Address from, Address to); static INLINE(bool is_profiling()) { return NoBarrier_Load(&is_profiling_); diff --git a/src/heap.cc b/src/heap.cc index 3d63529601..dfb5d5f1f5 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -1341,7 +1341,7 @@ class ScavengingVisitor : public StaticVisitorBase { #if defined(ENABLE_LOGGING_AND_PROFILING) if (Logger::is_logging() || CpuProfiler::is_profiling()) { if (target->IsSharedFunctionInfo()) { - PROFILE(SharedFunctionMoveEvent(source->address(), target->address())); + PROFILE(SharedFunctionInfoMoveEvent(source->address(), target->address())); } } #endif diff --git a/src/log.cc b/src/log.cc index a13ccea014..b43b685219 100644 --- a/src/log.cc +++ b/src/log.cc @@ -881,7 +881,7 @@ void Logger::SnapshotPositionEvent(Address addr, int pos) { } -void Logger::SharedFunctionMoveEvent(Address from, Address to) { +void Logger::SharedFunctionInfoMoveEvent(Address from, Address to) { #ifdef ENABLE_LOGGING_AND_PROFILING MoveEventInternal(SHARED_FUNC_MOVE_EVENT, from, to); #endif diff --git a/src/log.h b/src/log.h index 4483999034..6e1736d562 100644 --- a/src/log.h +++ b/src/log.h @@ -224,7 +224,7 @@ class Logger { // Emits a code delete event. static void CodeDeleteEvent(Address from); - static void SharedFunctionMoveEvent(Address from, Address to); + static void SharedFunctionInfoMoveEvent(Address from, Address to); static void SnapshotPositionEvent(Address addr, int pos); diff --git a/src/mark-compact.cc b/src/mark-compact.cc index a90a452594..9df9af1114 100644 --- a/src/mark-compact.cc +++ b/src/mark-compact.cc @@ -2827,7 +2827,7 @@ int MarkCompactCollector::RelocateOldNonCodeObject(HeapObject* obj, HeapObject* copied_to = HeapObject::FromAddress(new_addr); if (copied_to->IsSharedFunctionInfo()) { - PROFILE(SharedFunctionMoveEvent(old_addr, new_addr)); + PROFILE(SharedFunctionInfoMoveEvent(old_addr, new_addr)); } HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr)); @@ -2919,7 +2919,7 @@ int MarkCompactCollector::RelocateNewObject(HeapObject* obj) { HeapObject* copied_to = HeapObject::FromAddress(new_addr); if (copied_to->IsSharedFunctionInfo()) { - PROFILE(SharedFunctionMoveEvent(old_addr, new_addr)); + PROFILE(SharedFunctionInfoMoveEvent(old_addr, new_addr)); } HEAP_PROFILE(ObjectMoveEvent(old_addr, new_addr));