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

Side by Side Diff: src/snapshot/snapshot-empty.cc

Issue 1287113010: Make snapshot.h usable without objects-inl.h header. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/snapshot/snapshot-common.cc ('k') | src/snapshot/snapshot-external.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 // Used for building without snapshots. 5 // Used for building without snapshots.
6 6
7 #include "src/snapshot/snapshot.h" 7 #include "src/snapshot/snapshot.h"
8 8
9 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
10
11 namespace v8 { 9 namespace v8 {
12 namespace internal { 10 namespace internal {
13 11
14 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 12 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
15 // Dummy implementations of Set*FromFile(..) APIs. 13 // Dummy implementations of Set*FromFile(..) APIs.
16 // 14 //
17 // These are meant for use with snapshot-external.cc. Should this file 15 // These are meant for use with snapshot-external.cc. Should this file
18 // be compiled with those options we just supply these dummy implementations 16 // be compiled with those options we just supply these dummy implementations
19 // below. This happens when compiling the mksnapshot utility. 17 // below. This happens when compiling the mksnapshot utility.
20 void SetNativesFromFile(StartupData* data) { CHECK(false); } 18 void SetNativesFromFile(StartupData* data) { CHECK(false); }
21 void SetSnapshotFromFile(StartupData* data) { CHECK(false); } 19 void SetSnapshotFromFile(StartupData* data) { CHECK(false); }
22 void ReadNatives() {} 20 void ReadNatives() {}
23 void DisposeNatives() {} 21 void DisposeNatives() {}
24 #endif // V8_USE_EXTERNAL_STARTUP_DATA 22 #endif // V8_USE_EXTERNAL_STARTUP_DATA
25 23
26 24
27 const v8::StartupData* Snapshot::DefaultSnapshotBlob() { return NULL; } 25 const v8::StartupData* Snapshot::DefaultSnapshotBlob() { return NULL; }
28 } // namespace internal 26 } // namespace internal
29 } // namespace v8 27 } // namespace v8
OLDNEW
« no previous file with comments | « src/snapshot/snapshot-common.cc ('k') | src/snapshot/snapshot-external.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698