Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index c8c80b266205caa09a076b96f5f41277ac7829e3..42a103a82071f10f4f4d430ee3d3fc8d9ec21aa3 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -412,13 +412,10 @@ void CheckDebuggerUnloaded(bool check_functions) { |
if (check_functions) { |
if (obj->IsJSFunction()) { |
JSFunction* fun = JSFunction::cast(obj); |
- for (RelocIterator it(fun->shared()->code()); !it.done(); it.next()) { |
- RelocInfo::Mode rmode = it.rinfo()->rmode(); |
- if (RelocInfo::IsCodeTarget(rmode)) { |
- CHECK(!Debug::IsDebugBreak(it.rinfo()->target_address())); |
- } else if (RelocInfo::IsJSReturn(rmode)) { |
- CHECK(!it.rinfo()->IsPatchedReturnSequence()); |
- } |
+ for (RelocIterator it(fun->shared()->code(), |
+ RelocInfo::kDebugBreakSlotMask); |
+ !it.done(); it.next()) { |
+ CHECK(!it.rinfo()->IsPatchedDebugBreakSlotSequence()); |
} |
} |
} |