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

Unified Diff: src/heap.cc

Issue 150168: Removed virtual behavior from Dictionaries. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/heap.h ('k') | src/ia32/ic-ia32.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 2321)
+++ src/heap.cc (working copy)
@@ -1392,14 +1392,14 @@
prototype_accessors_ = Proxy::cast(obj);
// Allocate the code_stubs dictionary.
- obj = Dictionary::Allocate(4);
+ obj = NumberDictionary::Allocate(4);
if (obj->IsFailure()) return false;
- code_stubs_ = Dictionary::cast(obj);
+ code_stubs_ = NumberDictionary::cast(obj);
// Allocate the non_monomorphic_cache used in stub-cache.cc
- obj = Dictionary::Allocate(4);
+ obj = NumberDictionary::Allocate(4);
if (obj->IsFailure()) return false;
- non_monomorphic_cache_ = Dictionary::cast(obj);
+ non_monomorphic_cache_ = NumberDictionary::cast(obj);
CreateFixedStubs();
@@ -2563,7 +2563,7 @@
Object* result = Heap::AllocateFixedArray(length);
if (result->IsFailure()) return result;
reinterpret_cast<Array*>(result)->set_map(hash_table_map());
- ASSERT(result->IsDictionary());
+ ASSERT(result->IsHashTable());
return result;
}
« no previous file with comments | « src/heap.h ('k') | src/ia32/ic-ia32.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698