diff options
Diffstat (limited to 'deps/v8/src/mksnapshot.cc')
-rw-r--r-- | deps/v8/src/mksnapshot.cc | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/deps/v8/src/mksnapshot.cc b/deps/v8/src/mksnapshot.cc index 978ea217bd..a8d9b35f3b 100644 --- a/deps/v8/src/mksnapshot.cc +++ b/deps/v8/src/mksnapshot.cc @@ -172,7 +172,8 @@ class CppByteSink : public PartialSnapshotSink { 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) { fprintf(fp_, "const int Snapshot::%snew_space_used_ = %d;\n", prefix, @@ -197,6 +198,10 @@ class CppByteSink : public PartialSnapshotSink { "const int Snapshot::%scell_space_used_ = %d;\n", prefix, cell_space_used); + fprintf(fp_, + "const int Snapshot::%sproperty_cell_space_used_ = %d;\n", + prefix, + property_cell_space_used); } void WritePartialSnapshot() { @@ -307,6 +312,9 @@ int main(int argc, char** argv) { // By default, log code create information in the snapshot. i::FLAG_log_code = true; + // Disable the i18n extension, as it doesn't support being snapshotted yet. + i::FLAG_enable_i18n = false; + // Print the usage if an error occurs when parsing the command line // flags or if the help flag is set. int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); @@ -387,7 +395,7 @@ int main(int argc, char** argv) { // If we don't do this then we end up with a stray root pointing at the // context even after we have disposed of the context. HEAP->CollectAllGarbage(i::Heap::kNoGCFlags, "mksnapshot"); - i::Object* raw_context = *(v8::Utils::OpenHandle(*context)); + i::Object* raw_context = *v8::Utils::OpenPersistent(context); context.Dispose(isolate); CppByteSink sink(argv[1]); // This results in a somewhat smaller snapshot, probably because it gets rid @@ -417,7 +425,8 @@ int main(int argc, char** argv) { partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), partial_ser.CurrentAllocationAddress(i::CODE_SPACE), partial_ser.CurrentAllocationAddress(i::MAP_SPACE), - partial_ser.CurrentAllocationAddress(i::CELL_SPACE)); + partial_ser.CurrentAllocationAddress(i::CELL_SPACE), + partial_ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); sink.WriteSpaceUsed( "", ser.CurrentAllocationAddress(i::NEW_SPACE), @@ -425,6 +434,7 @@ int main(int argc, char** argv) { ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), ser.CurrentAllocationAddress(i::CODE_SPACE), ser.CurrentAllocationAddress(i::MAP_SPACE), - ser.CurrentAllocationAddress(i::CELL_SPACE)); + ser.CurrentAllocationAddress(i::CELL_SPACE), + ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); return 0; } |