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

Unified Diff: src/handles.h

Issue 256303007: Don't add code dependencies on transitioning stores eagerly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index 017bfee3d02fe0ecfdf3afdf30e55bf91f80d8c2..5dc4a5ddda2c42be14287f69c58a135540dbebad 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -155,6 +155,13 @@ inline Handle<T> handle(T* t) {
}
+// Key comparison function for Map handles.
+inline bool operator<(const Handle<Map>& lhs, const Handle<Map>& rhs) {
+ // This is safe because maps don't move.
+ return *lhs < *rhs;
mvstanton 2014/05/02 06:34:16 Seems like I see MStarzinger cringe every time we
Benedikt Meurer 2014/05/02 06:39:15 Yeah... having some kind of ObjectTraits<T>::IsImm
+}
+
+
class DeferredHandles;
class HandleScopeImplementer;
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698