Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 39c4ba4db50a8c7b34f7f23e55303d64a45e8794..b26a857e1920fa691b2eceb244fd0272da285f58 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2539,7 +2539,6 @@ void ConstantPoolArray::set(int index, Address value) { |
void ConstantPoolArray::set(int index, Object* value) { |
ASSERT(map() == GetHeap()->constant_pool_array_map()); |
- ASSERT(!GetHeap()->InNewSpace(value)); |
ASSERT(get_type(index) == HEAP_PTR); |
WRITE_FIELD(this, OffsetOfElementAt(index), value); |
WRITE_BARRIER(GetHeap(), this, OffsetOfElementAt(index), value); |
@@ -2584,7 +2583,6 @@ void ConstantPoolArray::set_at_offset(int offset, Address value) { |
void ConstantPoolArray::set_at_offset(int offset, Object* value) { |
ASSERT(map() == GetHeap()->constant_pool_array_map()); |
- ASSERT(!GetHeap()->InNewSpace(value)); |
ASSERT(offset_is_type(offset, HEAP_PTR)); |
WRITE_FIELD(this, offset, value); |
WRITE_BARRIER(GetHeap(), this, offset, value); |