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

Unified Diff: src/heap/store-buffer.cc

Issue 699613004: Revert "In-object double fields unboxing (for 64-bit only)." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/store-buffer.cc
diff --git a/src/heap/store-buffer.cc b/src/heap/store-buffer.cc
index 4b94a95761774a05d3b44affed0b510caec4bbcd..278e9f2f6ee11a6835d93e6b942e26ab5e16b98d 100644
--- a/src/heap/store-buffer.cc
+++ b/src/heap/store-buffer.cc
@@ -507,33 +507,11 @@ void StoreBuffer::IteratePointersToNewSpace(ObjectSlotCallback slot_callback,
for (HeapObject* heap_object = iterator.Next(); heap_object != NULL;
heap_object = iterator.Next()) {
// We iterate over objects that contain new space pointers only.
- bool may_contain_raw_values = heap_object->MayContainRawValues();
- if (!may_contain_raw_values) {
- Address obj_address = heap_object->address();
- Address start_address = obj_address + HeapObject::kHeaderSize;
- Address end_address = obj_address + heap_object->Size();
-#if V8_DOUBLE_FIELDS_UNBOXING
- InobjectPropertiesHelper helper(heap_object->map());
- bool has_only_tagged_fields = helper.all_fields_tagged();
-
- if (!has_only_tagged_fields) {
- for (Address slot = start_address; slot < end_address;
- slot += kPointerSize) {
- if (helper.IsTagged(slot - obj_address)) {
- // TODO(ishell): call this once for contiguous region
- // of tagged fields.
- FindPointersToNewSpaceInRegion(slot, slot + kPointerSize,
- slot_callback, clear_maps);
- }
- }
- } else {
-#endif
- // Object has only tagged fields.
- FindPointersToNewSpaceInRegion(start_address, end_address,
- slot_callback, clear_maps);
-#if V8_DOUBLE_FIELDS_UNBOXING
- }
-#endif
+ if (!heap_object->MayContainRawValues()) {
+ FindPointersToNewSpaceInRegion(
+ heap_object->address() + HeapObject::kHeaderSize,
+ heap_object->address() + heap_object->Size(), slot_callback,
+ clear_maps);
}
}
}
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698