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

Unified Diff: src/api.cc

Issue 1922303002: Create libsampler as V8 sampler library. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 7 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 | « include/v8.h ('k') | src/libsampler/v8-sampler.h » ('j') | src/v8.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 2695b3e0955677790388bd907b7e29a4f6e79717..f4b8b742675162b9ceaee644bbb3556db21504eb 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -7803,6 +7803,12 @@ void Isolate::VisitExternalResources(ExternalResourceVisitor* visitor) {
}
+bool Isolate::IsInUse() {
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
+ return isolate->IsInUse();
+}
+
+
class VisitorAdapter : public i::ObjectVisitor {
public:
explicit VisitorAdapter(PersistentHandleVisitor* visitor)
« no previous file with comments | « include/v8.h ('k') | src/libsampler/v8-sampler.h » ('j') | src/v8.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698