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

Side by Side Diff: src/heap/mark-compact.cc

Issue 751863002: Revert of Enable inobject double fields unboxing for 64-bit archs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/globals.h ('k') | src/heap/store-buffer.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2757 InobjectPropertiesHelper helper(src->map()); 2757 InobjectPropertiesHelper helper(src->map());
2758 bool has_only_tagged_fields = helper.all_fields_tagged(); 2758 bool has_only_tagged_fields = helper.all_fields_tagged();
2759 #endif 2759 #endif
2760 for (int remaining = size / kPointerSize; remaining > 0; remaining--) { 2760 for (int remaining = size / kPointerSize; remaining > 0; remaining--) {
2761 Object* value = Memory::Object_at(src_slot); 2761 Object* value = Memory::Object_at(src_slot);
2762 2762
2763 Memory::Object_at(dst_slot) = value; 2763 Memory::Object_at(dst_slot) = value;
2764 2764
2765 #if V8_DOUBLE_FIELDS_UNBOXING 2765 #if V8_DOUBLE_FIELDS_UNBOXING
2766 if (!may_contain_raw_values && 2766 if (!may_contain_raw_values &&
2767 (has_only_tagged_fields || 2767 (has_only_tagged_fields || helper.IsTagged(src_slot - src_addr)))
2768 helper.IsTagged(static_cast<int>(src_slot - src_addr))))
2769 #else 2768 #else
2770 if (!may_contain_raw_values) 2769 if (!may_contain_raw_values)
2771 #endif 2770 #endif
2772 { 2771 {
2773 RecordMigratedSlot(value, dst_slot); 2772 RecordMigratedSlot(value, dst_slot);
2774 } 2773 }
2775 2774
2776 src_slot += kPointerSize; 2775 src_slot += kPointerSize;
2777 dst_slot += kPointerSize; 2776 dst_slot += kPointerSize;
2778 } 2777 }
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
4411 SlotsBuffer* buffer = *buffer_address; 4410 SlotsBuffer* buffer = *buffer_address;
4412 while (buffer != NULL) { 4411 while (buffer != NULL) {
4413 SlotsBuffer* next_buffer = buffer->next(); 4412 SlotsBuffer* next_buffer = buffer->next();
4414 DeallocateBuffer(buffer); 4413 DeallocateBuffer(buffer);
4415 buffer = next_buffer; 4414 buffer = next_buffer;
4416 } 4415 }
4417 *buffer_address = NULL; 4416 *buffer_address = NULL;
4418 } 4417 }
4419 } 4418 }
4420 } // namespace v8::internal 4419 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap/store-buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698