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

Unified Diff: src/objects-inl.h

Issue 545773003: Allocate a new empty number dictionary when resetting elements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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') | test/mjsunit/regress/regress-reset-dictionary-elements.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 2123fa6e128154631a9d83a407420fcea173d336..083d671d525c045e188891f8267d5ace655696e8 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2897,9 +2897,6 @@ FixedArrayBase* Map::GetInitialElements() {
GetHeap()->EmptyFixedTypedArrayForMap(this);
DCHECK(!GetHeap()->InNewSpace(empty_array));
return empty_array;
- } else if (has_dictionary_elements()) {
- DCHECK(!GetHeap()->InNewSpace(GetHeap()->empty_slow_element_dictionary()));
- return GetHeap()->empty_slow_element_dictionary();
} else {
UNREACHABLE();
}
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/regress/regress-reset-dictionary-elements.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698