Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/mksnapshot.cc

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/misc-intrinsics.h ('k') | src/msan.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #ifdef COMPRESS_STARTUP_DATA_BZ2 7 #ifdef COMPRESS_STARTUP_DATA_BZ2
8 #include <bzlib.h> 8 #include <bzlib.h>
9 #endif 9 #endif
10 #include <signal.h> 10 #include <signal.h>
11 11
12 #include "v8.h" 12 #include "src/v8.h"
13 13
14 #include "assembler.h" 14 #include "src/assembler.h"
15 #include "bootstrapper.h" 15 #include "src/bootstrapper.h"
16 #include "flags.h" 16 #include "src/flags.h"
17 #include "natives.h" 17 #include "src/natives.h"
18 #include "platform.h" 18 #include "src/platform.h"
19 #include "serialize.h" 19 #include "src/serialize.h"
20 #include "list.h" 20 #include "src/list.h"
21 21
22 22
23 using namespace v8; 23 using namespace v8;
24 24
25 25
26 class Compressor { 26 class Compressor {
27 public: 27 public:
28 virtual ~Compressor() {} 28 virtual ~Compressor() {}
29 virtual bool Compress(i::Vector<char> input) = 0; 29 virtual bool Compress(i::Vector<char> input) = 0;
30 virtual i::Vector<char>* output() = 0; 30 virtual i::Vector<char>* output() = 0;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 WriteData("", snapshot_data, raw_file_); 79 WriteData("", snapshot_data, raw_file_);
80 WriteData("context_", context_snapshot_data, raw_context_file_); 80 WriteData("context_", context_snapshot_data, raw_context_file_);
81 WriteMeta("context_", context_serializer); 81 WriteMeta("context_", context_serializer);
82 WriteMeta("", serializer); 82 WriteMeta("", serializer);
83 WriteFileSuffix(); 83 WriteFileSuffix();
84 } 84 }
85 85
86 private: 86 private:
87 void WriteFilePrefix() const { 87 void WriteFilePrefix() const {
88 fprintf(fp_, "// Autogenerated snapshot file. Do not edit.\n\n"); 88 fprintf(fp_, "// Autogenerated snapshot file. Do not edit.\n\n");
89 fprintf(fp_, "#include \"v8.h\"\n"); 89 fprintf(fp_, "#include \"src/v8.h\"\n");
90 fprintf(fp_, "#include \"platform.h\"\n\n"); 90 fprintf(fp_, "#include \"src/platform.h\"\n\n");
91 fprintf(fp_, "#include \"snapshot.h\"\n\n"); 91 fprintf(fp_, "#include \"src/snapshot.h\"\n\n");
92 fprintf(fp_, "namespace v8 {\n"); 92 fprintf(fp_, "namespace v8 {\n");
93 fprintf(fp_, "namespace internal {\n\n"); 93 fprintf(fp_, "namespace internal {\n\n");
94 } 94 }
95 95
96 void WriteFileSuffix() const { 96 void WriteFileSuffix() const {
97 fprintf(fp_, "} // namespace internal\n"); 97 fprintf(fp_, "} // namespace internal\n");
98 fprintf(fp_, "} // namespace v8\n"); 98 fprintf(fp_, "} // namespace v8\n");
99 } 99 }
100 100
101 void WriteData(const char* prefix, 101 void WriteData(const char* prefix,
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 writer.SetCompressor(&bzip2); 389 writer.SetCompressor(&bzip2);
390 #endif 390 #endif
391 writer.WriteSnapshot(snapshot_data, ser, context_data, context_ser); 391 writer.WriteSnapshot(snapshot_data, ser, context_data, context_ser);
392 } 392 }
393 } 393 }
394 394
395 isolate->Dispose(); 395 isolate->Dispose();
396 V8::Dispose(); 396 V8::Dispose();
397 return 0; 397 return 0;
398 } 398 }
OLDNEW
« no previous file with comments | « src/misc-intrinsics.h ('k') | src/msan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698