Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index a7bf7d9b49ee68e8071e99525745ba62ffd6aacd..2003d9b9e64b4fffaac7cfb83d5ef4bbd5f71c1e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1279,9 +1279,11 @@ Handle<Context> Isolate::GetCallingGlobalContext() { |
char* Isolate::ArchiveThread(char* to) { |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
RuntimeProfiler::IsolateExitedJS(this); |
} |
+#endif |
memcpy(to, reinterpret_cast<char*>(thread_local_top()), |
sizeof(ThreadLocalTop)); |
InitializeThreadLocal(); |
@@ -1301,9 +1303,11 @@ char* Isolate::RestoreThread(char* from) { |
thread_local_top()->simulator_ = Simulator::current(this); |
#endif |
#endif |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
RuntimeProfiler::IsolateEnteredJS(this); |
} |
+#endif |
return from + sizeof(ThreadLocalTop); |
} |