| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/heap/store-buffer.h" | 5 #include "src/heap/store-buffer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "src/counters.h" | 9 #include "src/counters.h" |
| 10 #include "src/heap/incremental-marking.h" | 10 #include "src/heap/incremental-marking.h" |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 obj_address + FixedTypedArrayBase::kBasePointerOffset, | 495 obj_address + FixedTypedArrayBase::kBasePointerOffset, |
| 496 obj_address + FixedTypedArrayBase::kHeaderSize, | 496 obj_address + FixedTypedArrayBase::kHeaderSize, |
| 497 slot_callback); | 497 slot_callback); |
| 498 } else if (heap_object->IsBytecodeArray()) { | 498 } else if (heap_object->IsBytecodeArray()) { |
| 499 FindPointersToNewSpaceInRegion( | 499 FindPointersToNewSpaceInRegion( |
| 500 obj_address + BytecodeArray::kConstantPoolOffset, | 500 obj_address + BytecodeArray::kConstantPoolOffset, |
| 501 obj_address + BytecodeArray::kHeaderSize, | 501 obj_address + BytecodeArray::kHeaderSize, |
| 502 slot_callback); | 502 slot_callback); |
| 503 } else if (heap_object->IsJSArrayBuffer()) { | 503 } else if (heap_object->IsJSArrayBuffer()) { |
| 504 FindPointersToNewSpaceInRegion( | 504 FindPointersToNewSpaceInRegion( |
| 505 obj_address + | 505 obj_address + JSArrayBuffer::kPropertiesOffset, |
| 506 JSArrayBuffer::BodyDescriptor::kStartOffset, | |
| 507 obj_address + JSArrayBuffer::kByteLengthOffset + | 506 obj_address + JSArrayBuffer::kByteLengthOffset + |
| 508 kPointerSize, | 507 kPointerSize, |
| 509 slot_callback); | 508 slot_callback); |
| 510 FindPointersToNewSpaceInRegion( | 509 FindPointersToNewSpaceInRegion( |
| 511 obj_address + JSArrayBuffer::kSize, | 510 obj_address + JSArrayBuffer::kSize, |
| 512 obj_address + JSArrayBuffer::kSizeWithInternalFields, | 511 obj_address + JSArrayBuffer::kSizeWithInternalFields, |
| 513 slot_callback); | 512 slot_callback); |
| 514 } else if (FLAG_unbox_double_fields) { | 513 } else if (FLAG_unbox_double_fields) { |
| 515 LayoutDescriptorHelper helper(heap_object->map()); | 514 LayoutDescriptorHelper helper(heap_object->map()); |
| 516 DCHECK(!helper.all_fields_tagged()); | 515 DCHECK(!helper.all_fields_tagged()); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 DCHECK(start_of_current_page_ != store_buffer_->Top()); | 640 DCHECK(start_of_current_page_ != store_buffer_->Top()); |
| 642 store_buffer_->SetTop(start_of_current_page_); | 641 store_buffer_->SetTop(start_of_current_page_); |
| 643 } | 642 } |
| 644 } else { | 643 } else { |
| 645 UNREACHABLE(); | 644 UNREACHABLE(); |
| 646 } | 645 } |
| 647 } | 646 } |
| 648 | 647 |
| 649 } // namespace internal | 648 } // namespace internal |
| 650 } // namespace v8 | 649 } // namespace v8 |
| OLD | NEW |