OLD | NEW |
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 "src/v8.h" | 12 #include "src/v8.h" |
13 | 13 |
14 #include "src/assembler.h" | 14 #include "src/assembler.h" |
15 #include "src/bootstrapper.h" | 15 #include "src/bootstrapper.h" |
16 #include "src/flags.h" | 16 #include "src/flags.h" |
| 17 #include "src/list.h" |
17 #include "src/natives.h" | 18 #include "src/natives.h" |
18 #include "src/platform.h" | 19 #include "src/platform.h" |
19 #include "src/serialize.h" | 20 #include "src/serialize.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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |