| Index: test/cctest/test-serialize.cc
|
| diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc
|
| index 8973d5417884208d986be2dc94cb923ca73ef2ca..08c1375d3e62881e2fc9f80b19fae37e7ba3dd05 100644
|
| --- a/test/cctest/test-serialize.cc
|
| +++ b/test/cctest/test-serialize.cc
|
| @@ -195,7 +195,8 @@ class FileByteSink : public SnapshotByteSink {
|
| int data_space_used,
|
| int code_space_used,
|
| int map_space_used,
|
| - int cell_space_used);
|
| + int cell_space_used,
|
| + int property_cell_space_used);
|
|
|
| private:
|
| FILE* fp_;
|
| @@ -209,7 +210,8 @@ void FileByteSink::WriteSpaceUsed(
|
| int data_space_used,
|
| int code_space_used,
|
| int map_space_used,
|
| - int cell_space_used) {
|
| + int cell_space_used,
|
| + int property_cell_space_used) {
|
| int file_name_length = StrLength(file_name_) + 10;
|
| Vector<char> name = Vector<char>::New(file_name_length + 1);
|
| OS::SNPrintF(name, "%s.size", file_name_);
|
| @@ -221,6 +223,7 @@ void FileByteSink::WriteSpaceUsed(
|
| fprintf(fp, "code %d\n", code_space_used);
|
| fprintf(fp, "map %d\n", map_space_used);
|
| fprintf(fp, "cell %d\n", cell_space_used);
|
| + fprintf(fp, "property cell %d\n", property_cell_space_used);
|
| fclose(fp);
|
| }
|
|
|
| @@ -236,7 +239,8 @@ static bool WriteToFile(const char* snapshot_file) {
|
| ser.CurrentAllocationAddress(OLD_DATA_SPACE),
|
| ser.CurrentAllocationAddress(CODE_SPACE),
|
| ser.CurrentAllocationAddress(MAP_SPACE),
|
| - ser.CurrentAllocationAddress(CELL_SPACE));
|
| + ser.CurrentAllocationAddress(CELL_SPACE),
|
| + ser.CurrentAllocationAddress(PROPERTY_CELL_SPACE));
|
|
|
| return true;
|
| }
|
| @@ -425,7 +429,8 @@ TEST(PartialSerialization) {
|
| p_ser.CurrentAllocationAddress(OLD_DATA_SPACE),
|
| p_ser.CurrentAllocationAddress(CODE_SPACE),
|
| p_ser.CurrentAllocationAddress(MAP_SPACE),
|
| - p_ser.CurrentAllocationAddress(CELL_SPACE));
|
| + p_ser.CurrentAllocationAddress(CELL_SPACE),
|
| + p_ser.CurrentAllocationAddress(PROPERTY_CELL_SPACE));
|
|
|
| startup_sink.WriteSpaceUsed(
|
| startup_serializer.CurrentAllocationAddress(NEW_SPACE),
|
| @@ -433,7 +438,8 @@ TEST(PartialSerialization) {
|
| startup_serializer.CurrentAllocationAddress(OLD_DATA_SPACE),
|
| startup_serializer.CurrentAllocationAddress(CODE_SPACE),
|
| startup_serializer.CurrentAllocationAddress(MAP_SPACE),
|
| - startup_serializer.CurrentAllocationAddress(CELL_SPACE));
|
| + startup_serializer.CurrentAllocationAddress(CELL_SPACE),
|
| + startup_serializer.CurrentAllocationAddress(PROPERTY_CELL_SPACE));
|
| startup_name.Dispose();
|
| }
|
| }
|
| @@ -446,7 +452,8 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer,
|
| OS::SNPrintF(name, "%s.size", file_name);
|
| FILE* fp = OS::FOpen(name.start(), "r");
|
| name.Dispose();
|
| - int new_size, pointer_size, data_size, code_size, map_size, cell_size;
|
| + int new_size, pointer_size, data_size, code_size, map_size, cell_size,
|
| + property_cell_size;
|
| #ifdef _MSC_VER
|
| // Avoid warning about unsafe fscanf from MSVC.
|
| // Please note that this is only fine if %c and %s are not being used.
|
| @@ -458,6 +465,7 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer,
|
| CHECK_EQ(1, fscanf(fp, "code %d\n", &code_size));
|
| CHECK_EQ(1, fscanf(fp, "map %d\n", &map_size));
|
| CHECK_EQ(1, fscanf(fp, "cell %d\n", &cell_size));
|
| + CHECK_EQ(1, fscanf(fp, "property cell %d\n", &property_cell_size));
|
| #ifdef _MSC_VER
|
| #undef fscanf
|
| #endif
|
| @@ -468,6 +476,7 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer,
|
| deserializer->set_reservation(CODE_SPACE, code_size);
|
| deserializer->set_reservation(MAP_SPACE, map_size);
|
| deserializer->set_reservation(CELL_SPACE, cell_size);
|
| + deserializer->set_reservation(PROPERTY_CELL_SPACE, property_cell_size);
|
| }
|
|
|
|
|
| @@ -547,7 +556,7 @@ TEST(ContextSerialization) {
|
| v8::Local<v8::Context>::New(v8_isolate, env)->Exit();
|
| }
|
|
|
| - Object* raw_context = *(v8::Utils::OpenHandle(*env));
|
| + i::Object* raw_context = *v8::Utils::OpenPersistent(env);
|
|
|
| env.Dispose(v8_isolate);
|
|
|
| @@ -566,7 +575,8 @@ TEST(ContextSerialization) {
|
| p_ser.CurrentAllocationAddress(OLD_DATA_SPACE),
|
| p_ser.CurrentAllocationAddress(CODE_SPACE),
|
| p_ser.CurrentAllocationAddress(MAP_SPACE),
|
| - p_ser.CurrentAllocationAddress(CELL_SPACE));
|
| + p_ser.CurrentAllocationAddress(CELL_SPACE),
|
| + p_ser.CurrentAllocationAddress(PROPERTY_CELL_SPACE));
|
|
|
| startup_sink.WriteSpaceUsed(
|
| startup_serializer.CurrentAllocationAddress(NEW_SPACE),
|
| @@ -574,7 +584,8 @@ TEST(ContextSerialization) {
|
| startup_serializer.CurrentAllocationAddress(OLD_DATA_SPACE),
|
| startup_serializer.CurrentAllocationAddress(CODE_SPACE),
|
| startup_serializer.CurrentAllocationAddress(MAP_SPACE),
|
| - startup_serializer.CurrentAllocationAddress(CELL_SPACE));
|
| + startup_serializer.CurrentAllocationAddress(CELL_SPACE),
|
| + startup_serializer.CurrentAllocationAddress(PROPERTY_CELL_SPACE));
|
| startup_name.Dispose();
|
| }
|
| }
|
|
|