• Home
  • Raw
  • Download

Lines Matching refs:fp_

22   SnapshotWriter() : fp_(NULL), startup_blob_file_(NULL) {}  in SnapshotWriter()
25 if (fp_) fclose(fp_); in ~SnapshotWriter()
30 if (snapshot_file != NULL) fp_ = GetFileDescriptorOrDie(snapshot_file); in SetSnapshotFile()
57 if (!fp_) return; in MaybeWriteSnapshotFile()
65 fprintf(fp_, "// Autogenerated snapshot file. Do not edit.\n\n"); in WriteFilePrefix()
66 fprintf(fp_, "#include \"src/v8.h\"\n"); in WriteFilePrefix()
67 fprintf(fp_, "#include \"src/base/platform/platform.h\"\n\n"); in WriteFilePrefix()
68 fprintf(fp_, "#include \"src/snapshot/snapshot.h\"\n\n"); in WriteFilePrefix()
69 fprintf(fp_, "namespace v8 {\n"); in WriteFilePrefix()
70 fprintf(fp_, "namespace internal {\n\n"); in WriteFilePrefix()
74 fprintf(fp_, "const v8::StartupData* Snapshot::DefaultSnapshotBlob() {\n"); in WriteFileSuffix()
75 fprintf(fp_, " return &blob;\n"); in WriteFileSuffix()
76 fprintf(fp_, "}\n\n"); in WriteFileSuffix()
77 fprintf(fp_, "} // namespace internal\n"); in WriteFileSuffix()
78 fprintf(fp_, "} // namespace v8\n"); in WriteFileSuffix()
82 fprintf(fp_, "static const byte blob_data[] = {\n"); in WriteData()
84 fprintf(fp_, "};\n"); in WriteData()
85 fprintf(fp_, "static const int blob_size = %d;\n", blob.length()); in WriteData()
86 fprintf(fp_, "static const v8::StartupData blob =\n"); in WriteData()
87 fprintf(fp_, "{ (const char*) blob_data, blob_size };\n"); in WriteData()
92 if ((i & 0x1f) == 0x1f) fprintf(fp_, "\n"); in WriteSnapshotData()
93 if (i > 0) fprintf(fp_, ","); in WriteSnapshotData()
94 fprintf(fp_, "%u", static_cast<unsigned char>(blob.at(i))); in WriteSnapshotData()
96 fprintf(fp_, "\n"); in WriteSnapshotData()
108 FILE* fp_; member in SnapshotWriter