Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 86654c9a8ba5b02e13cf66fa5e9ada17d9344b3e..fc5af36a9f80633aa78c1ca1bd5bcff894d9324c 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1795,14 +1795,8 @@ void SetupArrayBufferView(i::Isolate* isolate, |
obj->set_buffer(*buffer); |
- Heap* heap = isolate->heap(); |
- if (heap->InNewSpace(*obj)) { |
- obj->set_weak_next(heap->new_array_buffer_views_list()); |
- heap->set_new_array_buffer_views_list(*obj); |
- } else { |
- obj->set_weak_next(buffer->weak_first_view()); |
- buffer->set_weak_first_view(*obj); |
- } |
+ obj->set_weak_next(buffer->weak_first_view()); |
+ buffer->set_weak_first_view(*obj); |
i::Handle<i::Object> byte_offset_object = |
isolate->factory()->NewNumberFromSize(byte_offset); |