| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index a62196e3806df1a16cee82a702333f0ea8dcc5ae..51cdbe9657c89f8c693dbae1f7ba6849cc83dccd 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -27,11 +27,11 @@
|
|
|
| #include "v8.h"
|
|
|
| +#include "code-events.h"
|
| #include "code-stubs.h"
|
| #include "compilation-cache.h"
|
| #include "deoptimizer.h"
|
| #include "execution.h"
|
| -#include "gdb-jit.h"
|
| #include "global-handles.h"
|
| #include "heap-profiler.h"
|
| #include "ic-inl.h"
|
| @@ -2822,6 +2822,7 @@ void MarkCompactCollector::MigrateObject(Address dst,
|
| }
|
| } else if (dest == CODE_SPACE) {
|
| PROFILE(heap()->isolate(), CodeMoveEvent(src, dst));
|
| + JIT_CODE_EVENT(MoveCode(src, dst));
|
| heap()->MoveBlock(dst, src, size);
|
| SlotsBuffer::AddTo(&slots_buffer_allocator_,
|
| &migration_slots_buffer_,
|
| @@ -4129,13 +4130,9 @@ void MarkCompactCollector::EnableCodeFlushing(bool enable) {
|
| // code objects. We should either reenable it or change our tools.
|
| void MarkCompactCollector::ReportDeleteIfNeeded(HeapObject* obj,
|
| Isolate* isolate) {
|
| -#ifdef ENABLE_GDB_JIT_INTERFACE
|
| - if (obj->IsCode()) {
|
| - GDBJITInterface::RemoveCode(reinterpret_cast<Code*>(obj));
|
| - }
|
| -#endif
|
| if (obj->IsCode()) {
|
| PROFILE(isolate, CodeDeleteEvent(obj->address()));
|
| + JIT_CODE_EVENT(RemoveCode(reinterpret_cast<Code*>(obj)));
|
| }
|
| }
|
|
|
|
|