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 "src/v8.h" | |
10 | |
11 #include "include/libplatform/libplatform.h" | 9 #include "include/libplatform/libplatform.h" |
12 #include "src/assembler.h" | 10 #include "src/assembler.h" |
13 #include "src/base/platform/platform.h" | 11 #include "src/base/platform/platform.h" |
14 #include "src/bootstrapper.h" | 12 #include "src/bootstrapper.h" |
15 #include "src/flags.h" | 13 #include "src/flags.h" |
16 #include "src/list.h" | 14 #include "src/list.h" |
| 15 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! |
17 #include "src/snapshot/natives.h" | 16 #include "src/snapshot/natives.h" |
18 #include "src/snapshot/serialize.h" | 17 #include "src/snapshot/serialize.h" |
19 | 18 |
20 | 19 |
21 using namespace v8; | 20 using namespace v8; |
22 | 21 |
23 class SnapshotWriter { | 22 class SnapshotWriter { |
24 public: | 23 public: |
25 explicit SnapshotWriter(const char* snapshot_file) | 24 explicit SnapshotWriter(const char* snapshot_file) |
26 : fp_(GetFileDescriptorOrDie(snapshot_file)), | 25 : fp_(GetFileDescriptorOrDie(snapshot_file)), |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 writer.WriteSnapshot(blob); | 163 writer.WriteSnapshot(blob); |
165 delete[] extra_code; | 164 delete[] extra_code; |
166 delete[] blob.data; | 165 delete[] blob.data; |
167 } | 166 } |
168 | 167 |
169 V8::Dispose(); | 168 V8::Dispose(); |
170 V8::ShutdownPlatform(); | 169 V8::ShutdownPlatform(); |
171 delete platform; | 170 delete platform; |
172 return 0; | 171 return 0; |
173 } | 172 } |
OLD | NEW |