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

Unified Diff: src/heap.cc

Issue 8520006: Optimize the equality check case of ICCompare stubs. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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
Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 9957)
+++ src/heap.cc (working copy)
@@ -2368,6 +2368,14 @@
}
set_code_stubs(NumberDictionary::cast(obj));
+
+ // Allocate the known objects compare stub dictionary.
+ { MaybeObject* maybe_obj = NumberDictionary::Allocate(4);
+ if (!maybe_obj->ToObject(&obj)) return false;
+ }
+ set_compare_stubs_known_objects(NumberDictionary::cast(obj));
+
+
// Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size
// is set to avoid expanding the dictionary during bootstrapping.
{ MaybeObject* maybe_obj = NumberDictionary::Allocate(64);

Powered by Google App Engine
This is Rietveld 408576698