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 "src/isolate.h" | 5 #include "src/isolate.h" |
6 #include "src/snapshot/serialize.h" | 6 #include "src/snapshot/serialize.h" |
7 | 7 |
8 #ifndef V8_SNAPSHOT_H_ | 8 #ifndef V8_SNAPSHOT_SNAPSHOT_H_ |
9 #define V8_SNAPSHOT_H_ | 9 #define V8_SNAPSHOT_SNAPSHOT_H_ |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 class Snapshot : public AllStatic { | 14 class Snapshot : public AllStatic { |
15 public: | 15 public: |
16 class Metadata { | 16 class Metadata { |
17 public: | 17 public: |
18 explicit Metadata(uint32_t data = 0) : data_(data) {} | 18 explicit Metadata(uint32_t data = 0) : data_(data) {} |
19 bool embeds_script() { return EmbedsScriptBits::decode(data_); } | 19 bool embeds_script() { return EmbedsScriptBits::decode(data_); } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot); | 84 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot); |
85 }; | 85 }; |
86 | 86 |
87 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 87 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
88 void SetSnapshotFromFile(StartupData* snapshot_blob); | 88 void SetSnapshotFromFile(StartupData* snapshot_blob); |
89 #endif | 89 #endif |
90 | 90 |
91 } } // namespace v8::internal | 91 } } // namespace v8::internal |
92 | 92 |
93 #endif // V8_SNAPSHOT_H_ | 93 #endif // V8_SNAPSHOT_SNAPSHOT_H_ |
OLD | NEW |