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

Unified Diff: src/log-inl.h

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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 | « src/log.cc ('k') | src/log-utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log-inl.h
===================================================================
--- src/log-inl.h (revision 3427)
+++ src/log-inl.h (working copy)
@@ -69,8 +69,9 @@
if (state == EXTERNAL) state = OTHER;
#endif
state_ = state;
- previous_ = Logger::current_state_;
- Logger::current_state_ = this;
+ LoggerData& data = v8_context()->logger_data_;
+ previous_ = data.current_state_;
+ data.current_state_ = this;
if (FLAG_log_state_changes) {
LOG(UncheckedStringEvent("Entering", StateToString(state_)));
@@ -96,7 +97,7 @@
VMState::~VMState() {
if (disabled_) return;
- Logger::current_state_ = previous_;
+ v8_context()->logger_data_.current_state_ = previous_;
if (FLAG_log_state_changes) {
LOG(UncheckedStringEvent("Leaving", StateToString(state_)));
« no previous file with comments | « src/log.cc ('k') | src/log-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698