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

Unified Diff: src/objects-debug.cc

Issue 10559032: Implementing weak referencing elements transition maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months 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/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index fc593d5aaa6caa3edf4c86ee140694942d42aa50..cefa3f8aa8bb251b23b4b739e92c9adf02bf51ee 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -922,6 +922,11 @@ static bool CheckOneBackPointer(Map* current_map, Object* target) {
bool DescriptorArray::IsConsistentWithBackPointers(Map* current_map) {
+ Map* elements_transition = elements_transition_map();
+ if (elements_transition != NULL &&
+ !CheckOneBackPointer(current_map, elements_transition)) {
+ return false;
+ }
for (int i = 0; i < number_of_descriptors(); ++i) {
switch (GetType(i)) {
case MAP_TRANSITION:
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698