Home | History | Annotate | Download | only in snapshot

Lines Matching refs:fp_

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