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

Unified Diff: src/objects.h

Issue 2809923002: Unify implementations of Map handles vectors and lists (Closed)
Patch Set: Format Created 3 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
« src/ic/ic.cc ('K') | « src/ic/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 1a5f09c7155b2e31baf549e49eba3a438df75576..5cbd04b052c5928231849204d4d19200301a687c 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4438,6 +4438,7 @@ class DependentCode: public FixedArray {
class PrototypeInfo;
+typedef std::vector<Handle<Map>> MapHandles;
// All heap objects have a Map that describes their structure.
// A Map contains information about:
@@ -4960,7 +4961,7 @@ class Map: public HeapObject {
// Returns the transitioned map for this map with the most generic
// elements_kind that's found in |candidates|, or |nullptr| if no match is
// found at all.
- Map* FindElementsKindTransitionedMap(MapHandleList* candidates);
+ Map* FindElementsKindTransitionedMap(MapHandles const& candidates);
inline bool CanTransition();
« src/ic/ic.cc ('K') | « src/ic/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698