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

Unified Diff: src/heap.h

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.h
===================================================================
--- src/heap.h (revision 9957)
+++ src/heap.h (working copy)
@@ -136,6 +136,7 @@
V(JSObject, message_listeners, MessageListeners) \
V(Foreign, prototype_accessors, PrototypeAccessors) \
V(NumberDictionary, code_stubs, CodeStubs) \
+ V(NumberDictionary, compare_stubs_known_objects, CompareStubsKnown) \
V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \
V(Code, js_entry_code, JsEntryCode) \
@@ -1127,6 +1128,12 @@
roots_[kCodeStubsRootIndex] = value;
}
+ // Sets the compare_stubs_known_objects (only used when expanding
+ // the dictionary).
+ void public_set_compare_stubs_known_objects(NumberDictionary* value) {
+ roots_[kCompareStubsKnownRootIndex] = value;
+ }
+
// Support for computing object sizes for old objects during GCs. Returns
// a function that is guaranteed to be safe for computing object sizes in
// the current GC phase.

Powered by Google App Engine
This is Rietveld 408576698