Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index 65ca34e330b72796d2545dc40e05a570fb4bbd16..78be9d2e4a9f00b56d917efca15a447b77414c7a 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -252,6 +252,10 @@ class Deserializer: public SerializerDeserializer { |
void FlushICacheForNewCodeObjects(); |
+ // Call this to indicate that the serialized data represents user code. |
+ // There are some more wiring up required in this case. |
+ void ExpectSerializedCode() { deserialize_code_ = true; } |
+ |
private: |
virtual void VisitPointers(Object** start, Object** end); |
@@ -272,6 +276,8 @@ class Deserializer: public SerializerDeserializer { |
Object** start, Object** end, int space, Address object_address); |
void ReadObject(int space_number, Object** write_back); |
+ HeapObject* ProcessObjectFromSerializedCode(HeapObject* obj); |
+ |
// This routine both allocates a new object, and also keeps |
// track of where objects have been allocated so that we can |
// fix back references when deserializing. |
@@ -291,6 +297,7 @@ class Deserializer: public SerializerDeserializer { |
// Cached current isolate. |
Isolate* isolate_; |
+ bool deserialize_code_; |
SnapshotByteSource* source_; |
// This is the address of the next object that will be allocated in each |