Index: src/ic-inl.h |
diff --git a/src/ic-inl.h b/src/ic-inl.h |
index 49b6ef9d0fe0a3b530e0d0455348088956ea59b1..77f409a1ef2e7f249bc7a2b8dcc32dabeb098e3a 100644 |
--- a/src/ic-inl.h |
+++ b/src/ic-inl.h |
@@ -43,7 +43,8 @@ Address IC::address() const { |
Address result = Assembler::target_address_from_return_address(pc()); |
#ifdef ENABLE_DEBUGGER_SUPPORT |
- Debug* debug = Isolate::Current()->debug(); |
+ ASSERT(Isolate::Current() == isolate()); |
+ Debug* debug = isolate()->debug(); |
// First check if any break points are active if not just return the address |
// of the call. |
if (!debug->has_break_points()) return result; |