| Index: src/heap-profiler.cc
|
| diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc
|
| index 6b159a98a338c7b2704ed924a59bc401f8425663..464c1da58d717a436601538f66abaeb585fdd76c 100644
|
| --- a/src/heap-profiler.cc
|
| +++ b/src/heap-profiler.cc
|
| @@ -171,10 +171,13 @@ void HeapProfiler::StopHeapAllocationsRecording() {
|
| }
|
|
|
|
|
| -void HeapProfiler::RecordObjectAllocationFromMasm(Isolate* isolate,
|
| - Address obj,
|
| - int size) {
|
| - isolate->heap_profiler()->NewObjectEvent(obj, size);
|
| +RUNTIME_FUNCTION(MaybeObject*, HeapProfiler_RecordObjectAllocation) {
|
| + ASSERT(args.length() == 2);
|
| + Address address = reinterpret_cast<Address>(
|
| + reinterpret_cast<intptr_t>(args[0]) & ~kHeapObjectTagMask);
|
| + int size = args.at<Smi>(1)->value();
|
| + isolate->heap_profiler()->NewObjectEvent(address, size);
|
| + return isolate->heap()->undefined_value();
|
| }
|
|
|
|
|
|
|