Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 06373d2d8a39f62c0f98db6fd4978270f486f350..9213a3200a85288c4a02268300125740102c4eb1 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1737,6 +1737,22 @@ Handle<JSDataView> Factory::NewJSDataView() { |
} |
+Handle<JSMap> Factory::NewJSMap() { |
+ Handle<Map> map(isolate()->native_context()->js_map_map()); |
+ Handle<JSMap> js_map = Handle<JSMap>::cast(NewJSObjectFromMap(map)); |
+ Runtime::JSMapInitialize(isolate(), js_map); |
+ return js_map; |
+} |
+ |
+ |
+Handle<JSSet> Factory::NewJSSet() { |
+ Handle<Map> map(isolate()->native_context()->js_set_map()); |
+ Handle<JSSet> js_set = Handle<JSSet>::cast(NewJSObjectFromMap(map)); |
+ Runtime::JSSetInitialize(isolate(), js_set); |
+ return js_set; |
+} |
+ |
+ |
Handle<JSMapIterator> Factory::NewJSMapIterator() { |
Handle<Map> map(isolate()->native_context()->map_iterator_map()); |
CALL_HEAP_FUNCTION(isolate(), |