summaryrefslogtreecommitdiff
path: root/deps/v8/src/snapshot/mksnapshot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/snapshot/mksnapshot.cc')
-rw-r--r--deps/v8/src/snapshot/mksnapshot.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/deps/v8/src/snapshot/mksnapshot.cc b/deps/v8/src/snapshot/mksnapshot.cc
index dd67969694..bea5b64d86 100644
--- a/deps/v8/src/snapshot/mksnapshot.cc
+++ b/deps/v8/src/snapshot/mksnapshot.cc
@@ -15,9 +15,11 @@
#include "src/base/platform/wrappers.h"
#include "src/base/vector.h"
#include "src/codegen/cpu-features.h"
+#include "src/common/globals.h"
#include "src/flags/flags.h"
#include "src/snapshot/embedded/embedded-file-writer.h"
#include "src/snapshot/snapshot.h"
+#include "src/snapshot/static-roots-gen.h"
namespace {
@@ -230,7 +232,7 @@ int main(int argc, char** argv) {
std::string usage = "Usage: " + std::string(argv[0]) +
" [--startup-src=file]" + " [--startup-blob=file]" +
" [--embedded-src=file]" + " [--embedded-variant=label]" +
- " [--target-arch=arch]" +
+ " [--static-roots-src=file]" + " [--target-arch=arch]" +
" [--target-os=os] [extras]\n\n";
int result = i::FlagList::SetFlagsFromCommandLine(
&argc, argv, true, HelpOptions(HelpOptions::kExit, usage.c_str()));
@@ -289,6 +291,10 @@ int main(int argc, char** argv) {
// is still alive (we called DisableEmbeddedBlobRefcounting above).
// That's fine as far as the embedded file writer is concerned.
WriteEmbeddedFile(&embedded_writer);
+
+ if (i::v8_flags.static_roots_src) {
+ i::StaticRootsTableGen::write(i_isolate, i::v8_flags.static_roots_src);
+ }
}
if (warmup_script) {