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

Unified Diff: src/factory.cc

Issue 1312413002: Move runtime helper for JSSet and JSMap onto objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/api.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 34dfb2925ec47b9d99095d0ebf1e4dc3719b3edf..c73c9676e6398f18aceba570ea28da40ceb4251a 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1633,7 +1633,7 @@ 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);
+ JSMap::Initialize(js_map, isolate());
return js_map;
}
@@ -1641,7 +1641,7 @@ Handle<JSMap> Factory::NewJSMap() {
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);
+ JSSet::Initialize(js_set, isolate());
return js_set;
}
« no previous file with comments | « src/api.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698