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

Side by Side Diff: src/snapshot/mksnapshot.cc

Issue 1285183010: Remove grab-bag includes of v8.h from everywhere. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor stylistic issue. Created 5 years, 4 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
« no previous file with comments | « src/scopeinfo.cc ('k') | src/snapshot/serialize.cc » ('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 <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
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 }
OLDNEW
« no previous file with comments | « src/scopeinfo.cc ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698