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 <signal.h> | 6 #include <signal.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "include/libplatform/libplatform.h" | 9 #include "include/libplatform/libplatform.h" |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
11 #include "src/base/platform/platform.h" | 11 #include "src/base/platform/platform.h" |
12 #include "src/bootstrapper.h" | |
13 #include "src/flags.h" | 12 #include "src/flags.h" |
14 #include "src/list.h" | 13 #include "src/list.h" |
15 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! | |
16 #include "src/snapshot/natives.h" | 14 #include "src/snapshot/natives.h" |
17 #include "src/snapshot/serialize.h" | 15 #include "src/snapshot/serialize.h" |
18 | 16 |
19 | 17 |
20 using namespace v8; | 18 using namespace v8; |
21 | 19 |
22 class SnapshotWriter { | 20 class SnapshotWriter { |
23 public: | 21 public: |
24 SnapshotWriter() : fp_(NULL), startup_blob_file_(NULL) {} | 22 SnapshotWriter() : fp_(NULL), startup_blob_file_(NULL) {} |
25 | 23 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 writer.WriteSnapshot(blob); | 167 writer.WriteSnapshot(blob); |
170 delete[] extra_code; | 168 delete[] extra_code; |
171 delete[] blob.data; | 169 delete[] blob.data; |
172 } | 170 } |
173 | 171 |
174 V8::Dispose(); | 172 V8::Dispose(); |
175 V8::ShutdownPlatform(); | 173 V8::ShutdownPlatform(); |
176 delete platform; | 174 delete platform; |
177 return 0; | 175 return 0; |
178 } | 176 } |
OLD | NEW |