Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index 563f0a06d025fb247d987beb357a0bea6212f447..283c1b77a1f5f1297603f12df389fa46635af076 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -459,8 +459,6 @@ class SerializationAddressMapper { |
}; |
-class CodeAddressMap; |
- |
// There can be only one serializer per V8 process. |
class Serializer : public SerializerDeserializer { |
public: |
@@ -474,9 +472,14 @@ class Serializer : public SerializerDeserializer { |
return fullness_[space]; |
} |
- static void Enable(); |
- static void Disable(); |
+ static void Enable() { |
+ if (!serialization_enabled_) { |
+ ASSERT(!too_late_to_enable_now_); |
+ } |
+ serialization_enabled_ = true; |
+ } |
+ 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; } |
@@ -586,7 +589,6 @@ class Serializer : public SerializerDeserializer { |
friend class Deserializer; |
private: |
- static CodeAddressMap* code_address_map_; |
DISALLOW_COPY_AND_ASSIGN(Serializer); |
}; |