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 // Used for building with external snapshots. | 5 // Used for building with external snapshots. |
6 | 6 |
7 #include "src/snapshot.h" | 7 #include "src/snapshot.h" |
8 | 8 |
9 #include "src/v8.h" // for V8::Initialize | |
10 #include "src/serialize.h" | 9 #include "src/serialize.h" |
11 #include "src/snapshot-source-sink.h" | 10 #include "src/snapshot-source-sink.h" |
| 11 #include "src/v8.h" // for V8::Initialize |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 | 16 |
17 struct SnapshotImpl { | 17 struct SnapshotImpl { |
18 public: | 18 public: |
19 const byte* data; | 19 const byte* data; |
20 int size; | 20 int size; |
21 int new_space_used; | 21 int new_space_used; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 snapshot_impl_->context_data_space_used = source.GetInt(); | 131 snapshot_impl_->context_data_space_used = source.GetInt(); |
132 snapshot_impl_->context_code_space_used = source.GetInt(); | 132 snapshot_impl_->context_code_space_used = source.GetInt(); |
133 snapshot_impl_->context_map_space_used = source.GetInt(); | 133 snapshot_impl_->context_map_space_used = source.GetInt(); |
134 snapshot_impl_->context_cell_space_used = source.GetInt(); | 134 snapshot_impl_->context_cell_space_used = source.GetInt(); |
135 snapshot_impl_->context_property_cell_space_used = source.GetInt(); | 135 snapshot_impl_->context_property_cell_space_used = source.GetInt(); |
136 | 136 |
137 ASSERT(success); | 137 ASSERT(success); |
138 } | 138 } |
139 | 139 |
140 } } // namespace v8::internal | 140 } } // namespace v8::internal |
OLD | NEW |