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

Unified Diff: src/vm-state.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/top.cc ('k') | src/vm-state-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm-state.h
diff --git a/src/vm-state.h b/src/vm-state.h
index 7ff9d9a318ed948215c2e6801bf6dcc61c12c393..b7ecbf8e58b73be55df7f58db1f786a56f26231f 100644
--- a/src/vm-state.h
+++ b/src/vm-state.h
@@ -36,7 +36,7 @@ namespace internal {
class VMState BASE_EMBEDDED {
#ifdef ENABLE_VMSTATE_TRACKING
public:
- inline VMState(StateTag state);
+ inline VMState(Isolate* isolate, StateTag state);
inline ~VMState();
StateTag state() { return state_; }
@@ -60,15 +60,15 @@ class VMState BASE_EMBEDDED {
}
private:
+ Isolate* isolate_;
bool disabled_;
StateTag state_;
VMState* previous_;
Address external_callback_;
- Isolate* isolate_;
#else
public:
- explicit VMState(StateTag state) {}
+ VMState(Isolate* isolate, StateTag state) {}
#endif
};
« src/top.cc ('K') | « src/top.cc ('k') | src/vm-state-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698