Version 3.16.11

Put making embedded maps in optimized code weak behind a flag. (Chromium issue 172488,172489)

Performance and stability improvements on all platforms.

git-svn-id: http://v8.googlecode.com/svn/trunk@13545 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h
index bc48160..fae68eb 100644
--- a/src/vm-state-inl.h
+++ b/src/vm-state-inl.h
@@ -67,8 +67,8 @@
     LOG(isolate, UncheckedStringEvent("From", StateToString(previous_tag_)));
   }
 
-  if (FLAG_log_timer_events) {
-    LOG(isolate, ExternalSwitch(previous_tag_, tag));
+  if (FLAG_log_timer_events && previous_tag_ != EXTERNAL && tag == EXTERNAL) {
+    LOG(isolate_, EnterExternal());
   }
 
   isolate_->SetCurrentVMState(tag);
@@ -84,8 +84,9 @@
         UncheckedStringEvent("To", StateToString(previous_tag_)));
   }
 
-  if (FLAG_log_timer_events) {
-    LOG(isolate_, ExternalSwitch(isolate_->current_vm_state(), previous_tag_));
+  if (FLAG_log_timer_events &&
+      previous_tag_ != EXTERNAL && isolate_->current_vm_state() == EXTERNAL) {
+    LOG(isolate_, LeaveExternal());
   }
 
   isolate_->SetCurrentVMState(previous_tag_);