|
| | SharedHeapSerializer (Isolate *isolate, Snapshot::SerializerFlags flags) |
| |
| | ~SharedHeapSerializer () override |
| |
| | SharedHeapSerializer (const SharedHeapSerializer &)=delete |
| |
| SharedHeapSerializer & | operator= (const SharedHeapSerializer &)=delete |
| |
| void | FinalizeSerialization () |
| |
| bool | SerializeUsingSharedHeapObjectCache (SnapshotByteSink *sink, Handle< HeapObject > obj) |
| |
| | RootsSerializer (Isolate *isolate, Snapshot::SerializerFlags flags, RootIndex first_root_to_be_serialized) |
| |
| | RootsSerializer (const RootsSerializer &)=delete |
| |
| RootsSerializer & | operator= (const RootsSerializer &)=delete |
| |
| bool | can_be_rehashed () const |
| |
| bool | root_has_been_serialized (RootIndex root_index) const |
| |
| bool | IsRootAndHasBeenSerialized (Tagged< HeapObject > obj) const |
| |
| | Serializer (Isolate *isolate, Snapshot::SerializerFlags flags) |
| |
| | ~Serializer () override |
| |
| | Serializer (const Serializer &)=delete |
| |
| Serializer & | operator= (const Serializer &)=delete |
| |
| const std::vector< uint8_t > * | Payload () const |
| |
| bool | ReferenceMapContains (DirectHandle< HeapObject > o) |
| |
| Isolate * | isolate () const |
| |
| PtrComprCageBase | cage_base () const |
| |
| int | TotalAllocationSize () const |
| |
| virtual | ~RootVisitor ()=default |
| |
| virtual void | VisitRootPointer (Root root, const char *description, FullObjectSlot p) |
| |
| virtual void | VisitRootPointers (Root root, const char *description, OffHeapObjectSlot start, OffHeapObjectSlot end) |
| |
| virtual void | VisitRunningCode (FullObjectSlot code_slot, FullObjectSlot istream_or_smi_zero_slot) |
| |
| virtual GarbageCollector | collector () const |
| |
|
| using | PendingObjectReferences = std::vector<int>* |
| |
| enum class | SlotType { kAnySlot
, kMapSlot
} |
| |
| enum | Bytecode : uint8_t {
kNewObject = 0x00
, kBackref = 0x04
, kReadOnlyHeapRef
, kStartupObjectCache
,
kRootArray
, kAttachedReference
, kSharedHeapObjectCache
, kNop
,
kSynchronize
, kVariableRepeatRoot
, kOffHeapBackingStore
, kOffHeapResizableBackingStore
,
kEmbedderFieldsData
, kApiWrapperFieldsData
, kVariableRawData
, kApiReference
,
kExternalReference
, kSandboxedApiReference
, kSandboxedExternalReference
, kSandboxedRawExternalReference
,
kClearedWeakReference
, kWeakPrefix
, kRegisterPendingForwardRef
, kResolvePendingForwardRef
,
kNewContextlessMetaMap
, kNewContextfulMetaMap
, kIndirectPointerPrefix
, kInitializeSelfIndirectPointer
,
kAllocateJSDispatchEntry
, kJSDispatchEntry
, kProtectedPointerPrefix
, kRootArrayConstants = 0x40
,
kFixedRawData = 0x60
, kFixedRepeatRoot = 0x80
, kHotObject = 0x90
} |
| |
| template<Bytecode bytecode> |
| using | SpaceEncoder |
| |
| using | NewObject = SpaceEncoder<kNewObject> |
| |
| using | FixedRawDataWithSize |
| |
| using | FixedRepeatRootWithCount |
| |
| using | RootArrayConstant |
| |
| using | HotObject = BytecodeValueEncoder<kHotObject, 0, kHotObjectCount - 1> |
| |
| void | CheckRehashability (Tagged< HeapObject > obj) |
| |
| int | SerializeInObjectCache (Handle< HeapObject > object) |
| |
| bool | object_cache_empty () |
| |
| V8_INLINE bool | IsNotMappedSymbol (Tagged< HeapObject > obj) const |
| |
| void | SerializeDeferredObjects () |
| |
| void | SerializeObject (Handle< HeapObject > o, SlotType slot_type) |
| |
| virtual void | SerializeObjectImpl (Handle< HeapObject > o, SlotType slot_type)=0 |
| |
| virtual bool | MustBeDeferred (Tagged< HeapObject > object) |
| |
| void | VisitRootPointers (Root root, const char *description, FullObjectSlot start, FullObjectSlot end) override |
| |
| void | SerializeRootObject (FullObjectSlot slot) |
| |
| void | PutRoot (RootIndex root_index) |
| |
| void | PutSmiRoot (FullObjectSlot slot) |
| |
| void | PutBackReference (Tagged< HeapObject > object, SerializerReference reference) |
| |
| void | PutAttachedReference (SerializerReference reference) |
| |
| void | PutNextChunk (SnapshotSpace space) |
| |
| void | PutRepeatRoot (int repeat_count, RootIndex root_index) |
| |
| void | PutPendingForwardReference (PendingObjectReferences &ref) |
| |
| void | ResolvePendingForwardReference (int obj) |
| |
| bool | SerializeRoot (Tagged< HeapObject > obj) |
| |
| bool | SerializeHotObject (Tagged< HeapObject > obj) |
| |
| bool | SerializeBackReference (Tagged< HeapObject > obj) |
| |
| bool | SerializePendingObject (Tagged< HeapObject > obj) |
| |
| bool | ObjectIsBytecodeHandler (Tagged< HeapObject > obj) const |
| |
| ExternalReferenceEncoder::Value | EncodeExternalReference (Address addr) |
| |
| Maybe< ExternalReferenceEncoder::Value > | TryEncodeExternalReference (Address addr) |
| |
| bool | SerializeReadOnlyObjectReference (Tagged< HeapObject > obj, SnapshotByteSink *sink) |
| |
| void | Pad (int padding_offset=0) |
| |
| void | InitializeCodeAddressMap () |
| |
| Tagged< InstructionStream > | CopyCode (Tagged< InstructionStream > istream) |
| |
| void | QueueDeferredObject (Tagged< HeapObject > obj) |
| |
| void | RegisterObjectIsPending (Tagged< HeapObject > obj) |
| |
| void | ResolvePendingObject (Tagged< HeapObject > obj) |
| |
| void | OutputStatistics (const char *name) |
| |
| void | CountAllocation (Tagged< Map > map, int size, SnapshotSpace space) |
| |
| SerializerReferenceMap * | reference_map () |
| |
| const RootIndexMap * | root_index_map () const |
| |
| bool | allow_unknown_external_references_for_testing () const |
| |
| bool | allow_active_isolate_for_testing () const |
| |
| bool | reconstruct_read_only_and_shared_object_caches_for_testing () const |
| |
| bool | deferred_objects_empty () |
| |
| bool | serializer_tracks_serialization_statistics () const |
| |
| void | set_serializer_tracks_serialization_statistics (bool v) |
| |
| void | RestoreExternalReferenceRedirector (Isolate *isolate, Tagged< AccessorInfo > accessor_info) |
| |
| void | RestoreExternalReferenceRedirector (Isolate *isolate, Tagged< FunctionTemplateInfo > function_template_info) |
| |
| static bool | CanBeDeferred (Tagged< HeapObject > o, SlotType slot_type) |
| |
| SnapshotByteSink | sink_ |
| |
| static const int | kRootArrayConstantsCount = 0x20 |
| |
| static const int | kFixedRawDataCount = 0x20 |
| |
| static const int | kFixedRepeatRootCount = 0x10 |
| |
| static const int | kHotObjectCount = 8 |
| |
| static const int | kDoubleAlignmentSentinel = 0 |
| |
| static const int | kFirstEncodableFixedRawDataSize = 1 |
| |
| static const int | kLastEncodableFixedRawDataSize |
| |
| static const int | kFirstEncodableRepeatRootCount = 2 |
| |
| static const int | kLastEncodableFixedRepeatRootCount |
| |
| static const int | kFirstEncodableVariableRepeatRootCount |
| |
| static const uint32_t | kEmptyBackingStoreRefSentinel = 0 |
| |
Definition at line 19 of file shared-heap-serializer.h.