Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index c9ce20e681963c98ea866d7732730a3530a4d1b9..ab32fbee15126afc589f971fba88a333190d0694 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15127,6 +15127,32 @@ template void |
OrderedHashTableIterator<JSMapIterator, OrderedHashMap>::Transition(); |
+void JSSet::Initialize(Handle<JSSet> set, Isolate* isolate) { |
+ Handle<OrderedHashSet> table = isolate->factory()->NewOrderedHashSet(); |
+ set->set_table(*table); |
+} |
+ |
+ |
+void JSSet::Clear(Handle<JSSet> set) { |
+ Handle<OrderedHashSet> table(OrderedHashSet::cast(set->table())); |
+ table = OrderedHashSet::Clear(table); |
+ set->set_table(*table); |
+} |
+ |
+ |
+void JSMap::Initialize(Handle<JSMap> map, Isolate* isolate) { |
+ Handle<OrderedHashMap> table = isolate->factory()->NewOrderedHashMap(); |
+ map->set_table(*table); |
+} |
+ |
+ |
+void JSMap::Clear(Handle<JSMap> map) { |
+ Handle<OrderedHashMap> table(OrderedHashMap::cast(map->table())); |
+ table = OrderedHashMap::Clear(table); |
+ map->set_table(*table); |
+} |
+ |
+ |
// Check if there is a break point at this code position. |
bool DebugInfo::HasBreakPoint(int code_position) { |
// Get the break point info object for this code position. |