Chromium Code Reviews

Unified Diff: src/assembler.cc

Issue 22852024: Track JS allocations as they arrive with no affection on performance when tracking is switched off (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/assembler.cc
diff --git a/src/assembler.cc b/src/assembler.cc
index ae8a0b58ba87939a2adf6eb2298826082843cb27..4c0062e17e647cf26a1a29eb2e4d77d0cd17fb32 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -1316,6 +1316,21 @@ ExternalReference ExternalReference::address_of_the_hole_nan() {
}
+ExternalReference ExternalReference::is_tracking_allocations_address(
+ Isolate* isolate) {
+ return ExternalReference(
+ isolate->heap_profiler()->is_tracking_allocations_address());
+}
+
+
+ExternalReference ExternalReference::record_object_allocation_function(
+ Isolate* isolate) {
+ return ExternalReference(
+ Redirect(isolate,
+ FUNCTION_ADDR(HeapProfiler::RecordObjectAllocationFromMasm)));
+}
+
+
#ifndef V8_INTERPRETED_REGEXP
ExternalReference ExternalReference::re_check_stack_guard_state(
« no previous file with comments | « src/assembler.h ('k') | src/builtins.cc » ('j') | src/heap-snapshot-generator.cc » ('J')

Powered by Google App Engine