Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 7d4ea166396175cf496e694978153abe8397e5e6..bbcbaaad3b805ac6d3606d3777febdf1a06ff7a1 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -25,9 +25,7 @@ |
#include "icu_util.h" |
#include "json-parser.h" |
#include "messages.h" |
-#ifdef COMPRESS_STARTUP_DATA_BZ2 |
#include "natives.h" |
-#endif |
#include "parser.h" |
#include "platform.h" |
#include "platform/time.h" |
@@ -349,6 +347,18 @@ void V8::SetDecompressedStartupData(StartupData* decompressed_data) { |
} |
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA |
jochen (gone - plz use gerrit)
2014/05/23 11:44:44
only #ifdef the function body (and maybe add an CH
vogelheim
2014/05/26 12:36:03
Done.
|
+void V8::SetNativesDataBlob(StartupData* natives_blob) { |
+ i::SetNativesFromFile(natives_blob); |
+} |
+ |
+ |
+void V8::SetSnapshotDataBlob(StartupData* snapshot_blob) { |
+ i::SetSnapshotFromFile(snapshot_blob); |
+} |
+#endif // V8_USE_EXTERNAL_STARTUP_DATA |
+ |
+ |
void V8::SetFatalErrorHandler(FatalErrorCallback that) { |
i::Isolate* isolate = i::Isolate::UncheckedCurrent(); |
isolate->set_exception_behavior(that); |