Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: src/heap-profiler.cc

Issue 40153003: AllocationProfiler: Inital version of RecordObjectAllocation for hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips, ia32 and arm platforms were added Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap-profiler.h ('k') | src/hydrogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/heap-profiler.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698