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

Unified Diff: src/serialize.h

Issue 387343002: Fix up internalized strings after deserializing user code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove TODO Created 6 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
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
« no previous file with comments | « src/objects.cc ('k') | src/serialize.cc » ('j') | test/cctest/test-serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698