#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <iomanip>
#include "include/libplatform/libplatform.h"
#include "include/v8-initialization.h"
#include "src/base/platform/elapsed-timer.h"
#include "src/base/platform/platform.h"
#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 {
class SnapshotFileWriter { … };
std::unique_ptr<char[]> GetExtraCode(char* filename, const char* description) { … }
v8::StartupData CreateSnapshotDataBlob(v8::SnapshotCreator& snapshot_creator,
const char* embedded_source) { … }
v8::StartupData WarmUpSnapshotDataBlob(v8::StartupData cold_snapshot_blob,
const char* warmup_source) { … }
void WriteEmbeddedFile(i::EmbeddedFileWriter* writer) { … }
using CounterMap = std::map<std::string, int>;
CounterMap* counter_map_ = nullptr;
void MaybeSetCounterFunction(v8::Isolate* isolate) { … }
}
int main(int argc, char** argv) { … }