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 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 SnapshotWriter* writer_; | 191 SnapshotWriter* writer_; |
192 bool root_; // serializing a root? | 192 bool root_; // serializing a root? |
193 int roots_; // number of roots visited | 193 int roots_; // number of roots visited |
194 int objects_; // number of objects serialized | 194 int objects_; // number of objects serialized |
195 | 195 |
196 static bool serialization_enabled_; | 196 static bool serialization_enabled_; |
197 | 197 |
198 int flags_end_; // The position right after the flags. | 198 int flags_end_; // The position right after the flags. |
199 | 199 |
200 // An array of per-space SimulatedHeapSpacees used as memory allocators. | 200 // An array of per-space SimulatedHeapSpaces used as memory allocators. |
201 SimulatedHeapSpace* allocator_[LAST_SPACE+1]; | 201 SimulatedHeapSpace* allocator_[LAST_SPACE+1]; |
202 // A list of global handles at serialization time. | 202 // A list of global handles at serialization time. |
203 List<Object**> global_handles_; | 203 List<Object**> global_handles_; |
204 | 204 |
205 ExternalReferenceEncoder* reference_encoder_; | 205 ExternalReferenceEncoder* reference_encoder_; |
206 | 206 |
207 HashMap saved_addresses_; | 207 HashMap saved_addresses_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(Serializer); | 209 DISALLOW_COPY_AND_ASSIGN(Serializer); |
210 }; | 210 }; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 #ifdef DEBUG | 334 #ifdef DEBUG |
335 bool expect_debug_information_; | 335 bool expect_debug_information_; |
336 #endif | 336 #endif |
337 | 337 |
338 DISALLOW_COPY_AND_ASSIGN(Deserializer); | 338 DISALLOW_COPY_AND_ASSIGN(Deserializer); |
339 }; | 339 }; |
340 | 340 |
341 } } // namespace v8::internal | 341 } } // namespace v8::internal |
342 | 342 |
343 #endif // V8_SERIALIZE_H_ | 343 #endif // V8_SERIALIZE_H_ |
OLD | NEW |