Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: src/serialize.h

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698