Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index a710385bfa73851e3c6f7d74bbe56bf0987e6c48..d0bec935d43b991049fe6b28e57e9573da5aa562 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1240,6 +1240,7 @@ TEST(TestCodeFlushingIncrementalAbort) { |
// code flushing candidate. |
SimulateIncrementalMarking(); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
// Enable the debugger and add a breakpoint while incremental marking |
// is running so that incremental marking aborts and code flushing is |
// disabled. |
@@ -1247,6 +1248,7 @@ TEST(TestCodeFlushingIncrementalAbort) { |
Handle<Object> breakpoint_object(Smi::FromInt(0), isolate); |
isolate->debug()->SetBreakPoint(function, breakpoint_object, &position); |
isolate->debug()->ClearAllBreakPoints(); |
+#endif // ENABLE_DEBUGGER_SUPPORT |
// Force optimization now that code flushing is disabled. |
{ v8::HandleScope scope(env->GetIsolate()); |
@@ -3010,8 +3012,10 @@ TEST(Regress173458) { |
// explicitly enqueued. |
SimulateIncrementalMarking(); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
// Now enable the debugger which in turn will disable code flushing. |
CHECK(isolate->debug()->Load()); |
+#endif // ENABLE_DEBUGGER_SUPPORT |
// This cycle will bust the heap and subsequent cycles will go ballistic. |
heap->CollectAllGarbage(Heap::kNoGCFlags); |