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

Unified Diff: src/snapshot/snapshot.h

Issue 2278653003: Reland of "[heap] Switch to 500k pages" (Closed)
Patch Set: Rebase Created 4 years, 4 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/objects.h ('k') | src/snapshot/snapshot-common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/snapshot.h
diff --git a/src/snapshot/snapshot.h b/src/snapshot/snapshot.h
index a541592feeea8061670ce21e1964a2244f49c7d0..49a60926dcbfc4f90d114c6104888f9dea74f674 100644
--- a/src/snapshot/snapshot.h
+++ b/src/snapshot/snapshot.h
@@ -67,9 +67,6 @@ class Snapshot : public AllStatic {
static bool EmbedsScript(Isolate* isolate);
- static uint32_t SizeOfFirstPage(Isolate* isolate, AllocationSpace space);
-
-
// To be implemented by the snapshot source.
static const v8::StartupData* DefaultSnapshotBlob();
@@ -88,21 +85,16 @@ class Snapshot : public AllStatic {
int index);
// Snapshot blob layout:
- // [0 - 5] pre-calculated first page sizes for paged spaces
- // [6] number of contexts N
- // [7] offset to context 0
- // [8] offset to context 1
+ // [0] number of contexts N
+ // [1] offset to context 0
+ // [2] offset to context 1
// ...
// ... offset to context N - 1
// ... startup snapshot data
// ... context 0 snapshot data
// ... context 1 snapshot data
- static const int kNumPagedSpaces = LAST_PAGED_SPACE - FIRST_PAGED_SPACE + 1;
-
- static const int kFirstPageSizesOffset = 0;
- static const int kNumberOfContextsOffset =
- kFirstPageSizesOffset + kNumPagedSpaces * kInt32Size;
+ static const int kNumberOfContextsOffset = 0;
static const int kFirstContextOffsetOffset =
kNumberOfContextsOffset + kInt32Size;
« no previous file with comments | « src/objects.h ('k') | src/snapshot/snapshot-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698