Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f39b760402e1f05a937dbaac7d278aa277ca2855..fbbf3e1d694933c8f9dfdb0394fce8a519398361 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10360,7 +10360,7 @@ Map* Code::FindFirstMap() { |
void Code::ReplaceNthObject(int n, |
Map* match_map, |
Object* replace_with) { |
- ASSERT(is_inline_cache_stub()); |
+ ASSERT(is_inline_cache_stub() || is_handler()); |
DisallowHeapAllocation no_allocation; |
int mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
for (RelocIterator it(this, mask); !it.done(); it.next()) { |