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

Unified Diff: src/profiler/heap-snapshot-generator-inl.h

Issue 1474353002: Remove easy to remove calls to Isolate::Current() from api.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update Created 5 years, 1 month 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
Index: src/profiler/heap-snapshot-generator-inl.h
diff --git a/src/profiler/heap-snapshot-generator-inl.h b/src/profiler/heap-snapshot-generator-inl.h
index fb1e891c94ef2aa10af9849b7965bafb13710f09..169ab569e82dc86ef8a4fe1009d9806e682ae370 100644
--- a/src/profiler/heap-snapshot-generator-inl.h
+++ b/src/profiler/heap-snapshot-generator-inl.h
@@ -16,6 +16,11 @@ HeapEntry* HeapGraphEdge::from() const {
}
+Isolate* HeapGraphEdge::isolate() const {
+ return snapshot()->profiler()->isolate();
+}
+
+
HeapSnapshot* HeapGraphEdge::snapshot() const {
return to_entry_->snapshot();
}
@@ -43,6 +48,8 @@ HeapGraphEdge** HeapEntry::children_arr() {
}
+Isolate* HeapEntry::isolate() const { return snapshot_->profiler()->isolate(); }
+
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698