| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 static bool enabled() { return serialization_enabled_; } | 148 static bool enabled() { return serialization_enabled_; } |
| 149 | 149 |
| 150 static void disable() { serialization_enabled_ = false; } | 150 static void disable() { serialization_enabled_ = false; } |
| 151 | 151 |
| 152 private: | 152 private: |
| 153 friend class ReferenceUpdater; | 153 friend class ReferenceUpdater; |
| 154 | 154 |
| 155 virtual void VisitPointers(Object** start, Object** end); | 155 virtual void VisitPointers(Object** start, Object** end); |
| 156 | 156 |
| 157 bool IsVisited(HeapObject *obj); | 157 bool IsVisited(HeapObject* obj); |
| 158 | 158 |
| 159 Address GetSavedAddress(HeapObject *obj); | 159 Address GetSavedAddress(HeapObject* obj); |
| 160 | 160 |
| 161 void SaveAddress(HeapObject* obj, Address addr); | 161 void SaveAddress(HeapObject* obj, Address addr); |
| 162 | 162 |
| 163 void PutEncodedAddress(Address addr); | 163 void PutEncodedAddress(Address addr); |
| 164 // Write the global flags into the file. | 164 // Write the global flags into the file. |
| 165 void PutFlags(); | 165 void PutFlags(); |
| 166 // Write global information into the header of the file. | 166 // Write global information into the header of the file. |
| 167 void PutHeader(); | 167 void PutHeader(); |
| 168 // Write the contents of the log into the file. | 168 // Write the contents of the log into the file. |
| 169 void PutLog(); | 169 void PutLog(); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 #ifdef DEBUG | 325 #ifdef DEBUG |
| 326 bool expect_debug_information_; | 326 bool expect_debug_information_; |
| 327 #endif | 327 #endif |
| 328 | 328 |
| 329 DISALLOW_COPY_AND_ASSIGN(Deserializer); | 329 DISALLOW_COPY_AND_ASSIGN(Deserializer); |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 } } // namespace v8::internal | 332 } } // namespace v8::internal |
| 333 | 333 |
| 334 #endif // V8_SERIALIZE_H_ | 334 #endif // V8_SERIALIZE_H_ |
| OLD | NEW |