Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d1fe1c7c1675377ead4e8d7bdc8d7717630abe07..e894bf242cbb5b0a298910226d234e842646c2e8 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -32,6 +32,7 @@ |
#include "accessors.h" |
#include "api.h" |
#include "arguments.h" |
+#include "bootstrapper.h" |
#include "codegen.h" |
#include "compilation-cache.h" |
#include "compiler.h" |
@@ -2153,6 +2154,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsBuiltin) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
+ RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
@@ -8256,6 +8258,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CompileForOnStackReplacement) { |
} |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_CheckIsBootstrapping) { |
+ RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
+ return isolate->heap()->undefined_value(); |
+} |
+ |
+ |
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFunctionDelegate) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 1); |