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

Unified Diff: src/heap/mark-compact.cc

Issue 1483003002: Revert of Introduce instance type for transition arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/heap/object-stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index d1e233a36a780433ded4f259d3d68a30236b22d9..8d4921f8d15e39d33d803866ee9d6d827176d2c6 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -831,7 +831,6 @@
ClearMarkbits();
AbortWeakCollections();
AbortWeakCells();
- AbortTransitionArrays();
AbortCompaction();
was_marked_incrementally_ = false;
}
@@ -2330,15 +2329,14 @@
ClearNonLiveReferences();
ClearWeakCollections();
+
+ heap_->set_encountered_weak_cells(Smi::FromInt(0));
}
void MarkCompactCollector::ClearNonLiveReferences() {
GCTracer::Scope gc_scope(heap()->tracer(),
GCTracer::Scope::MC_NONLIVEREFERENCES);
-
- ProcessAndClearTransitionArrays();
-
// Iterate over the map space, setting map transitions that go from
// a marked map to an unmarked map to null transitions. This action
// is carried out only on maps of JSObjects and related subtypes.
@@ -2654,31 +2652,6 @@
weak_cell->clear_next(heap());
}
heap()->set_encountered_weak_cells(Smi::FromInt(0));
-}
-
-
-void MarkCompactCollector::ProcessAndClearTransitionArrays() {
- HeapObject* undefined = heap()->undefined_value();
- Object* obj = heap()->encountered_transition_arrays();
- while (obj != Smi::FromInt(0)) {
- TransitionArray* array = TransitionArray::cast(obj);
- // TODO(ulan): move logic from ClearMapTransitions here.
- obj = array->next_link();
- array->set_next_link(undefined, SKIP_WRITE_BARRIER);
- }
- heap()->set_encountered_transition_arrays(Smi::FromInt(0));
-}
-
-
-void MarkCompactCollector::AbortTransitionArrays() {
- HeapObject* undefined = heap()->undefined_value();
- Object* obj = heap()->encountered_transition_arrays();
- while (obj != Smi::FromInt(0)) {
- TransitionArray* array = TransitionArray::cast(obj);
- obj = array->next_link();
- array->set_next_link(undefined, SKIP_WRITE_BARRIER);
- }
- heap()->set_encountered_transition_arrays(Smi::FromInt(0));
}
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/heap/object-stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698