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

Side by Side Diff: src/snapshot/partial-serializer.h

Issue 1805903002: [serializer] Add API to warm up startup snapshot with an additional script. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix comment Created 4 years, 9 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
« no previous file with comments | « src/snapshot/mksnapshot.cc ('k') | src/snapshot/partial-serializer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_PARTIAL_SERIALIZER_H_ 5 #ifndef V8_SNAPSHOT_PARTIAL_SERIALIZER_H_
6 #define V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ 6 #define V8_SNAPSHOT_PARTIAL_SERIALIZER_H_
7 7
8 #include "src/address-map.h" 8 #include "src/address-map.h"
9 #include "src/snapshot/serializer.h" 9 #include "src/snapshot/serializer.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 void SerializeObject(HeapObject* o, HowToCode how_to_code, 46 void SerializeObject(HeapObject* o, HowToCode how_to_code,
47 WhereToPoint where_to_point, int skip) override; 47 WhereToPoint where_to_point, int skip) override;
48 48
49 int PartialSnapshotCacheIndex(HeapObject* o); 49 int PartialSnapshotCacheIndex(HeapObject* o);
50 bool ShouldBeInThePartialSnapshotCache(HeapObject* o); 50 bool ShouldBeInThePartialSnapshotCache(HeapObject* o);
51 51
52 Serializer* startup_serializer_; 52 Serializer* startup_serializer_;
53 Object* global_object_; 53 Object* global_object_;
54 PartialCacheIndexMap partial_cache_index_map_; 54 PartialCacheIndexMap partial_cache_index_map_;
55 int next_partial_cache_index_;
55 DISALLOW_COPY_AND_ASSIGN(PartialSerializer); 56 DISALLOW_COPY_AND_ASSIGN(PartialSerializer);
56 }; 57 };
57 58
58 } // namespace internal 59 } // namespace internal
59 } // namespace v8 60 } // namespace v8
60 61
61 #endif // V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ 62 #endif // V8_SNAPSHOT_PARTIAL_SERIALIZER_H_
OLDNEW
« no previous file with comments | « src/snapshot/mksnapshot.cc ('k') | src/snapshot/partial-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698