Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 1e8d52279432c9cf51794059c34f6b91e2644380..fa9ac008965efd918c8ed571281f71cbc58a0ccb 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -24,6 +24,26 @@ RUNTIME_FUNCTION(Runtime_CheckIsBootstrapping) { |
} |
+RUNTIME_FUNCTION(Runtime_ImportToRuntime) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, container, 0); |
+ RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
+ Bootstrapper::ImportNatives(isolate, container); |
+ return isolate->heap()->undefined_value(); |
+} |
+ |
+ |
+RUNTIME_FUNCTION(Runtime_ImportExperimentalToRuntime) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, container, 0); |
+ RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
+ Bootstrapper::ImportExperimentalNatives(isolate, container); |
+ return isolate->heap()->undefined_value(); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_Throw) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |