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

Side by Side Diff: src/snapshot/snapshot.h

Issue 2013713003: [heap] Switch to 500k pages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix ReleaseOverReservedPages for no snapshot builds 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 unified diff | Download patch
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_SNAPSHOT_SNAPSHOT_H_ 5 #ifndef V8_SNAPSHOT_SNAPSHOT_H_
6 #define V8_SNAPSHOT_SNAPSHOT_H_ 6 #define V8_SNAPSHOT_SNAPSHOT_H_
7 7
8 #include "src/snapshot/partial-serializer.h" 8 #include "src/snapshot/partial-serializer.h"
9 #include "src/snapshot/startup-serializer.h" 9 #include "src/snapshot/startup-serializer.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 static MaybeHandle<Context> NewContextFromSnapshot( 60 static MaybeHandle<Context> NewContextFromSnapshot(
61 Isolate* isolate, Handle<JSGlobalProxy> global_proxy, 61 Isolate* isolate, Handle<JSGlobalProxy> global_proxy,
62 size_t context_index); 62 size_t context_index);
63 63
64 static bool HaveASnapshotToStartFrom(Isolate* isolate); 64 static bool HaveASnapshotToStartFrom(Isolate* isolate);
65 65
66 static bool HasContextSnapshot(Isolate* isolate, size_t index); 66 static bool HasContextSnapshot(Isolate* isolate, size_t index);
67 67
68 static bool EmbedsScript(Isolate* isolate); 68 static bool EmbedsScript(Isolate* isolate);
69 69
70 static uint32_t SizeOfFirstPage(Isolate* isolate, AllocationSpace space); 70 static uint32_t SizeOfSnapshot(Isolate* isolate, AllocationSpace space);
71
72 71
73 // To be implemented by the snapshot source. 72 // To be implemented by the snapshot source.
74 static const v8::StartupData* DefaultSnapshotBlob(); 73 static const v8::StartupData* DefaultSnapshotBlob();
75 74
76 static v8::StartupData CreateSnapshotBlob( 75 static v8::StartupData CreateSnapshotBlob(
77 const SnapshotData* startup_snapshot, 76 const SnapshotData* startup_snapshot,
78 const List<SnapshotData*>* context_snapshots); 77 const List<SnapshotData*>* context_snapshots);
79 78
80 #ifdef DEBUG 79 #ifdef DEBUG
81 static bool SnapshotIsValid(v8::StartupData* snapshot_blob); 80 static bool SnapshotIsValid(v8::StartupData* snapshot_blob);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 }; 117 };
119 118
120 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 119 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
121 void SetSnapshotFromFile(StartupData* snapshot_blob); 120 void SetSnapshotFromFile(StartupData* snapshot_blob);
122 #endif 121 #endif
123 122
124 } // namespace internal 123 } // namespace internal
125 } // namespace v8 124 } // namespace v8
126 125
127 #endif // V8_SNAPSHOT_SNAPSHOT_H_ 126 #endif // V8_SNAPSHOT_SNAPSHOT_H_
OLDNEW
« src/heap/spaces.cc ('K') | « src/objects.h ('k') | src/snapshot/snapshot-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698