Version 3.20.2
Remove deprecated heap profiler methods from V8 public API
Mark i18n functions as native and set proper names (issue 2745)
Correctly report stack trace when current function is FunctionApply builtin (Chromium issue 252097)
Enable GDBJIT interface for standalone by default.
Fix debuggersupport=off build. (issue 2754)
Introduce -m64 flag for making x64 when the default gcc compiler is for X32
Performance and stability improvements on all platforms.
git-svn-id: http://v8.googlecode.com/svn/trunk@15498 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
index 00f7de4..bd02a69 100644
--- a/src/runtime-profiler.cc
+++ b/src/runtime-profiler.cc
@@ -227,6 +227,8 @@
void RuntimeProfiler::OptimizeNow() {
HandleScope scope(isolate_);
+ if (isolate_->DebuggerHasBreakPoints()) return;
+
if (FLAG_parallel_recompilation) {
// Take this as opportunity to process the optimizing compiler thread's
// output queue so that it does not unnecessarily keep objects alive.