Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 3e864f471fde1946d2ddf75f6264255808984c98..89621cb3694ad63288f5b1f9556326da5e02dcc5 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -154,7 +154,8 @@ static void CopyObjectToObjectElements(FixedArrayBase* from_base, |
ElementsKind to_kind, |
uint32_t to_start, |
int raw_copy_size) { |
- ASSERT(to_base->map() != HEAP->fixed_cow_array_map()); |
+ ASSERT(to_base->map() != |
+ from_base->GetIsolate()->heap()->fixed_cow_array_map()); |
DisallowHeapAllocation no_allocation; |
int copy_size = raw_copy_size; |
if (raw_copy_size < 0) { |