Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index 283c1b77a1f5f1297603f12df389fa46635af076..563f0a06d025fb247d987beb357a0bea6212f447 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -459,6 +459,8 @@ class SerializationAddressMapper { |
}; |
+class CodeAddressMap; |
+ |
// There can be only one serializer per V8 process. |
class Serializer : public SerializerDeserializer { |
public: |
@@ -472,14 +474,9 @@ class Serializer : public SerializerDeserializer { |
return fullness_[space]; |
} |
- static void Enable() { |
- if (!serialization_enabled_) { |
- ASSERT(!too_late_to_enable_now_); |
- } |
- serialization_enabled_ = true; |
- } |
+ static void Enable(); |
+ static void Disable(); |
- static void Disable() { serialization_enabled_ = false; } |
// Call this when you have made use of the fact that there is no serialization |
// going on. |
static void TooLateToEnableNow() { too_late_to_enable_now_ = true; } |
@@ -589,6 +586,7 @@ class Serializer : public SerializerDeserializer { |
friend class Deserializer; |
private: |
+ static CodeAddressMap* code_address_map_; |
DISALLOW_COPY_AND_ASSIGN(Serializer); |
}; |