summaryrefslogtreecommitdiff
path: root/deps/v8/src/vm-state-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/vm-state-inl.h')
-rw-r--r--deps/v8/src/vm-state-inl.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/deps/v8/src/vm-state-inl.h b/deps/v8/src/vm-state-inl.h
index 384940dfa5..fae68ebeea 100644
--- a/deps/v8/src/vm-state-inl.h
+++ b/deps/v8/src/vm-state-inl.h
@@ -47,8 +47,8 @@ inline const char* StateToString(StateTag state) {
return "GC";
case COMPILER:
return "COMPILER";
- case PARALLEL_COMPILER_PROLOGUE:
- return "PARALLEL_COMPILER_PROLOGUE";
+ case PARALLEL_COMPILER:
+ return "PARALLEL_COMPILER";
case OTHER:
return "OTHER";
case EXTERNAL:
@@ -67,6 +67,10 @@ VMState::VMState(Isolate* isolate, StateTag tag)
LOG(isolate, UncheckedStringEvent("From", StateToString(previous_tag_)));
}
+ if (FLAG_log_timer_events && previous_tag_ != EXTERNAL && tag == EXTERNAL) {
+ LOG(isolate_, EnterExternal());
+ }
+
isolate_->SetCurrentVMState(tag);
}
@@ -80,6 +84,11 @@ VMState::~VMState() {
UncheckedStringEvent("To", StateToString(previous_tag_)));
}
+ if (FLAG_log_timer_events &&
+ previous_tag_ != EXTERNAL && isolate_->current_vm_state() == EXTERNAL) {
+ LOG(isolate_, LeaveExternal());
+ }
+
isolate_->SetCurrentVMState(previous_tag_);
}