git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7121 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mikhail.naganov@gmail.com 2011-03-10 11:49:17 +00:00
parent 47a5723704
commit ae38aedae4
2 changed files with 6 additions and 3 deletions

View File

@ -149,9 +149,11 @@ void ProfilerEventsProcessor::CodeDeleteEvent(Address from) {
} }
void ProfilerEventsProcessor::SharedFunctionInfoMoveEvent(Address from, Address to) { void ProfilerEventsProcessor::SharedFunctionInfoMoveEvent(Address from,
Address to) {
CodeEventsContainer evt_rec; CodeEventsContainer evt_rec;
SharedFunctionInfoMoveEventRecord* rec = &evt_rec.SharedFunctionInfoMoveEventRecord_; SharedFunctionInfoMoveEventRecord* rec =
&evt_rec.SharedFunctionInfoMoveEventRecord_;
rec->type = CodeEventRecord::SHARED_FUNC_MOVE; rec->type = CodeEventRecord::SHARED_FUNC_MOVE;
rec->order = ++enqueue_order_; rec->order = ++enqueue_order_;
rec->from = from; rec->from = from;

View File

@ -1341,7 +1341,8 @@ class ScavengingVisitor : public StaticVisitorBase {
#if defined(ENABLE_LOGGING_AND_PROFILING) #if defined(ENABLE_LOGGING_AND_PROFILING)
if (Logger::is_logging() || CpuProfiler::is_profiling()) { if (Logger::is_logging() || CpuProfiler::is_profiling()) {
if (target->IsSharedFunctionInfo()) { if (target->IsSharedFunctionInfo()) {
PROFILE(SharedFunctionInfoMoveEvent(source->address(), target->address())); PROFILE(SharedFunctionInfoMoveEvent(
source->address(), target->address()));
} }
} }
#endif #endif