Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index f076bdb481ff2348dcf49c586c9ef6c1dec13e1c..fc22929fd0ab392744025cea88b1dfbdd09f2330 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -28,9 +28,7 @@ |
#include "src/icu_util.h" |
#include "src/json-parser.h" |
#include "src/messages.h" |
-#ifdef COMPRESS_STARTUP_DATA_BZ2 |
#include "src/natives.h" |
-#endif |
#include "src/parser.h" |
#include "src/platform.h" |
#include "src/platform/time.h" |
@@ -353,6 +351,24 @@ void V8::SetDecompressedStartupData(StartupData* decompressed_data) { |
} |
+void V8::SetNativesDataBlob(StartupData* natives_blob) { |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
+ i::SetNativesFromFile(natives_blob); |
+#else |
+ CHECK(false); |
+#endif |
+} |
+ |
+ |
+void V8::SetSnapshotDataBlob(StartupData* snapshot_blob) { |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
+ i::SetSnapshotFromFile(snapshot_blob); |
+#else |
+ CHECK(false); |
+#endif |
+} |
+ |
+ |
void V8::SetFatalErrorHandler(FatalErrorCallback that) { |
i::Isolate* isolate = i::Isolate::UncheckedCurrent(); |
isolate->set_exception_behavior(that); |