Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index afb0df0f4774c8acecc3e59c2bff4a830f942cd1..d46b390ed3566b8febcf3267fe3aab3e92a6f0a1 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1403,8 +1403,6 @@ static Object* Runtime_RegExpCloneResult(Arguments args) { |
// Copy JSObject elements as copy-on-write. |
FixedArray* elements = FixedArray::cast(result->elements()); |
if (elements != Heap::empty_fixed_array()) { |
- ASSERT(!Heap::InNewSpace(Heap::fixed_cow_array_map())); |
- // No write barrier is necessary when writing old-space pointer. |
elements->set_map(Heap::fixed_cow_array_map()); |
} |
new_array->set_elements(elements); |