| Index: src/spaces-inl.h
|
| diff --git a/src/spaces-inl.h b/src/spaces-inl.h
|
| index d5c114c5b051d9791452a929ef823f9e77e41ef5..87de29c4a5d8d74dcf65b0fcd1f62b00f3883af5 100644
|
| --- a/src/spaces-inl.h
|
| +++ b/src/spaces-inl.h
|
| @@ -274,18 +274,12 @@ HeapObject* PagedSpace::AllocateLinearly(int size_in_bytes) {
|
|
|
|
|
| // Raw allocation.
|
| -MaybeObject* PagedSpace::AllocateRaw(int size_in_bytes,
|
| - AllocationType event) {
|
| - HeapProfiler* profiler = heap()->isolate()->heap_profiler();
|
| -
|
| +MaybeObject* PagedSpace::AllocateRaw(int size_in_bytes) {
|
| HeapObject* object = AllocateLinearly(size_in_bytes);
|
| if (object != NULL) {
|
| if (identity() == CODE_SPACE) {
|
| SkipList::Update(object->address(), size_in_bytes);
|
| }
|
| - if (event == NEW_OBJECT && profiler->is_tracking_allocations()) {
|
| - profiler->NewObjectEvent(object->address(), size_in_bytes);
|
| - }
|
| return object;
|
| }
|
|
|
| @@ -298,9 +292,6 @@ MaybeObject* PagedSpace::AllocateRaw(int size_in_bytes,
|
| if (identity() == CODE_SPACE) {
|
| SkipList::Update(object->address(), size_in_bytes);
|
| }
|
| - if (event == NEW_OBJECT && profiler->is_tracking_allocations()) {
|
| - profiler->NewObjectEvent(object->address(), size_in_bytes);
|
| - }
|
| return object;
|
| }
|
|
|
| @@ -309,9 +300,6 @@ MaybeObject* PagedSpace::AllocateRaw(int size_in_bytes,
|
| if (identity() == CODE_SPACE) {
|
| SkipList::Update(object->address(), size_in_bytes);
|
| }
|
| - if (event == NEW_OBJECT && profiler->is_tracking_allocations()) {
|
| - profiler->NewObjectEvent(object->address(), size_in_bytes);
|
| - }
|
| return object;
|
| }
|
|
|
| @@ -349,11 +337,6 @@ MaybeObject* NewSpace::AllocateRaw(int size_in_bytes) {
|
| allocation_info_.set_top(allocation_info_.top() + size_in_bytes);
|
| ASSERT_SEMISPACE_ALLOCATION_INFO(allocation_info_, to_space_);
|
|
|
| - HeapProfiler* profiler = heap()->isolate()->heap_profiler();
|
| - if (profiler != NULL && profiler->is_tracking_allocations()) {
|
| - profiler->NewObjectEvent(obj->address(), size_in_bytes);
|
| - }
|
| -
|
| return obj;
|
| }
|
|
|
|
|