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

Unified Diff: src/vm-state-inl.h

Issue 4888002: [Isolates] Pass isolate to VMState constructor. (Closed)
Patch Set: Created 10 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
« src/top.cc ('K') | « src/vm-state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm-state-inl.h
diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h
index 2e1ef195c28c2d7224f19a1f7c13645ddc1b1963..2e2e044600089bd9cff35be8ae8a7693fc7e484f 100644
--- a/src/vm-state-inl.h
+++ b/src/vm-state-inl.h
@@ -55,13 +55,16 @@ inline const char* StateToString(StateTag state) {
}
}
-VMState::VMState(StateTag state)
- : disabled_(true),
+VMState::VMState(Isolate* isolate, StateTag state)
+ : isolate_(isolate),
+ disabled_(true),
state_(OTHER),
- external_callback_(NULL),
- isolate_(Isolate::Current()) {
+ external_callback_(NULL) {
+ ASSERT(isolate == Isolate::Current());
+
#ifdef ENABLE_LOGGING_AND_PROFILING
- if (!LOGGER->is_logging() && !CpuProfiler::is_profiling()) {
+ if (!isolate_->logger()->is_logging() &&
+ !CpuProfiler::is_profiling(isolate_)) {
return;
}
#endif
« src/top.cc ('K') | « src/vm-state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698