Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 582ce53b98121f96a013d71971695a9a9cea10a7..d5d57a01ecdf043ce0134fbb215dd39272701e9f 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -24,15 +24,28 @@ RUNTIME_FUNCTION(Runtime_CheckIsBootstrapping) { |
} |
-RUNTIME_FUNCTION(Runtime_ExportPrivateSymbols) { |
+RUNTIME_FUNCTION(Runtime_ExportFromRuntime) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(JSObject, container, 0); |
RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
JSObject::NormalizeProperties(container, KEEP_INOBJECT_PROPERTIES, 10, |
- "ExportPrivateSymbols"); |
- Bootstrapper::ExportPrivateSymbols(isolate, container); |
- JSObject::MigrateSlowToFast(container, 0, "ExportPrivateSymbols"); |
+ "ExportFromRuntime"); |
+ Bootstrapper::ExportFromRuntime(isolate, container); |
+ JSObject::MigrateSlowToFast(container, 0, "ExportFromRuntime"); |
+ return *container; |
+} |
+ |
+ |
+RUNTIME_FUNCTION(Runtime_ExportExperimentalFromRuntime) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, container, 0); |
+ RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
+ JSObject::NormalizeProperties(container, KEEP_INOBJECT_PROPERTIES, 10, |
+ "ExportExperimentalFromRuntime"); |
+ Bootstrapper::ExportExperimentalFromRuntime(isolate, container); |
+ JSObject::MigrateSlowToFast(container, 0, "ExportExperimentalFromRuntime"); |
return *container; |
} |