Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index cf0a23944334bf6d21ae938568ce41b54d9a777d..6b3fd130bbc679b69071426b4ddd6bb8d5ac208f 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -7,6 +7,7 @@ |
#include "src/arguments.h" |
#include "src/deoptimizer.h" |
#include "src/full-codegen.h" |
+#include "src/natives.h" |
#include "src/runtime/runtime-utils.h" |
namespace v8 { |
@@ -293,6 +294,12 @@ RUNTIME_FUNCTION(Runtime_AbortJS) { |
} |
+RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { |
+ DCHECK(args.length() == 0); |
+ return Smi::FromInt(Natives::GetBuiltinsCount()); |
+} |
+ |
+ |
// Returns V8 version as a string. |
RUNTIME_FUNCTION(Runtime_GetV8Version) { |
HandleScope scope(isolate); |