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

Unified Diff: src/lithium.h

Issue 1214573004: [crankshaft] Remove adventurous operator< for Handle<Map>. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/handles.h ('k') | src/lithium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium.h
diff --git a/src/lithium.h b/src/lithium.h
index c972cbd6b398c86dafc5e96eeabbc5e18c38544b..046de19fd07c3c5d6cdff3490060dc3bfd41ae7f 100644
--- a/src/lithium.h
+++ b/src/lithium.h
@@ -665,14 +665,14 @@ class LChunk : public ZoneObject {
DCHECK(!map->is_deprecated());
if (!map->CanBeDeprecated()) return;
DCHECK(!info_->IsStub());
- deprecation_dependencies_.insert(map);
+ deprecation_dependencies_.Add(map, zone());
}
void AddStabilityDependency(Handle<Map> map) {
DCHECK(map->is_stable());
if (!map->CanTransition()) return;
DCHECK(!info_->IsStub());
- stability_dependencies_.insert(map);
+ stability_dependencies_.Add(map, zone());
}
Zone* zone() const { return info_->zone(); }
@@ -690,10 +690,6 @@ class LChunk : public ZoneObject {
int spill_slot_count_;
private:
- typedef std::less<Handle<Map> > MapLess;
- typedef zone_allocator<Handle<Map> > MapAllocator;
- typedef std::set<Handle<Map>, MapLess, MapAllocator> MapSet;
-
void RegisterWeakObjectsInOptimizedCode(Handle<Code> code) const;
void CommitDependencies(Handle<Code> code) const;
@@ -703,8 +699,8 @@ class LChunk : public ZoneObject {
ZoneList<LInstruction*> instructions_;
ZoneList<LPointerMap*> pointer_maps_;
ZoneList<Handle<SharedFunctionInfo>> inlined_functions_;
- MapSet deprecation_dependencies_;
- MapSet stability_dependencies_;
+ ZoneList<Handle<Map>> deprecation_dependencies_;
+ ZoneList<Handle<Map>> stability_dependencies_;
};
« no previous file with comments | « src/handles.h ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698