Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: src/heap/store-buffer.cc

Issue 1440243002: Object's body descriptors refactoring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@new-visitor-base
Patch Set: New files added to the lists Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/scavenger.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/heap/scavenger.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698