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

Unified Diff: src/snapshot.h

Issue 9179012: Reduce boot-up memory use of V8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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/serialize.cc ('k') | src/spaces.h » ('j') | src/spaces.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot.h
===================================================================
--- src/snapshot.h (revision 10407)
+++ src/snapshot.h (working copy)
@@ -26,6 +26,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "isolate.h"
+#include "spaces.h"
#ifndef V8_SNAPSHOT_H_
#define V8_SNAPSHOT_H_
@@ -86,6 +87,21 @@
DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot);
};
+
+// These are the sizes of the spaces that are needed in order to unpack the
+// VM boot snapshot.
+const int kMinimumSpaceSizes[LAST_SPACE + 1] = {
+ 0, // New space.
+ 512 * 1024, // Old pointer space.
+ 128 * 1024, // Old data space.
+ 256 * 1024, // Code space.
+ 64 * 1024, // Map space.
+ 64 * 1024, // Cell space.
+ 0 // Large object space.
+};
+
+
+
} } // namespace v8::internal
#endif // V8_SNAPSHOT_H_
« no previous file with comments | « src/serialize.cc ('k') | src/spaces.h » ('j') | src/spaces.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698