comment
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7120 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
c6d2bb18aa
commit
47a5723704
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ class TokenEnumerator;
|
||||
V(CODE_CREATION, CodeCreateEventRecord) \
|
||||
V(CODE_MOVE, CodeMoveEventRecord) \
|
||||
V(CODE_DELETE, CodeDeleteEventRecord) \
|
||||
V(SHARED_FUNC_MOVE, SharedFunctionMoveEventRecord)
|
||||
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_);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user