|
V8 Project
|
#include <serialize.h>
Inheritance diagram for v8::internal::SerializerDeserializer:
Collaboration diagram for v8::internal::SerializerDeserializer:Static Public Member Functions | |
| static void | Iterate (Isolate *isolate, ObjectVisitor *visitor) |
| static int | nop () |
Static Public Attributes | |
| static const int | kNumberOfPreallocatedSpaces = LO_SPACE |
| static const int | kNumberOfSpaces = INVALID_SPACE |
Protected Types | |
| enum | Where { kNewObject = 0 , kRootArray = 0x9 , kPartialSnapshotCache = 0xa , kExternalReference = 0xb , kSkip = 0xc , kBuiltin = 0xd , kAttachedReference = 0xe , kNop = 0xf , kBackref = 0x10 , kBackrefWithSkip = 0x18 , kPointedToMask = 0x3f } |
| enum | HowToCode { kPlain = 0 , kFromCode = 0x40 , kHowToCodeMask = 0x40 } |
| enum | WithSkip { kNoSkipDistance = 0 , kHasSkipDistance = 0x40 , kWithSkipMask = 0x40 } |
| enum | WhereToPoint { kStartOfObject = 0 , kInnerPointer = 0x80 , kWhereToPointMask = 0x80 } |
Protected Member Functions | |
| STATIC_ASSERT (kNumberOfSpaces<=kSpaceMask+1) | |
Static Protected Member Functions | |
| static int | CodeForRepeats (int repeats) |
| static int | RepeatsForCode (int byte_code) |
| static int | RootArrayConstantFromByteCode (int byte_code) |
Static Protected Attributes | |
| static const int | kRawData = 0x20 |
| static const int | kSynchronize = 0x70 |
| static const int | kNativesStringResource = 0x71 |
| static const int | kRepeat = 0x72 |
| static const int | kConstantRepeat = 0x73 |
| static const int | kMaxRepeats = 0x7f - 0x72 |
| static const int | kRootArrayConstants = 0xa0 |
| static const int | kRootArrayNumberOfConstantEncodings = 0x20 |
| static const int | kAnyOldSpace = -1 |
| static const int | kSpaceMask = 7 |
Definition at line 145 of file serialize.h.
|
protected |
|
protected |
| Enumerator | |
|---|---|
| kNewObject | |
| kRootArray | |
| kPartialSnapshotCache | |
| kExternalReference | |
| kSkip | |
| kBuiltin | |
| kAttachedReference | |
| kNop | |
| kBackref | |
| kBackrefWithSkip | |
| kPointedToMask | |
Definition at line 157 of file serialize.h.
|
protected |
| Enumerator | |
|---|---|
| kStartOfObject | |
| kInnerPointer | |
| kWhereToPointMask | |
Definition at line 191 of file serialize.h.
|
protected |
| Enumerator | |
|---|---|
| kNoSkipDistance | |
| kHasSkipDistance | |
| kWithSkipMask | |
Definition at line 184 of file serialize.h.
|
inlinestaticprotected |
Definition at line 217 of file serialize.h.
References DCHECK, and kMaxRepeats.
Referenced by v8::internal::Serializer::ObjectSerializer::VisitPointers().
Here is the caller graph for this function:
|
static |
Definition at line 1293 of file serialize.cc.
References v8::internal::Smi::FromInt(), v8::internal::Isolate::heap(), v8::internal::Isolate::PushToPartialSnapshotCache(), and v8::internal::Isolate::serializer_enabled().
Referenced by v8::internal::Heap::IterateStrongRoots().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestaticprotected |
Definition at line 221 of file serialize.h.
References DCHECK, and kConstantRepeat.
Referenced by v8::internal::Deserializer::ReadChunk().
Here is the caller graph for this function:
|
inlinestaticprotected |
Definition at line 228 of file serialize.h.
Referenced by v8::internal::Deserializer::ReadChunk().
Here is the caller graph for this function:
|
protected |
Referenced by v8::internal::CodeSerializer::Deserialize(), and v8::internal::Deserializer::ReadChunk().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 232 of file serialize.h.
|
staticprotected |
Definition at line 214 of file serialize.h.
Referenced by v8::internal::Deserializer::ReadChunk(), and RepeatsForCode().
|
staticprotected |
Definition at line 216 of file serialize.h.
Referenced by CodeForRepeats(), v8::internal::Deserializer::ReadChunk(), and v8::internal::Serializer::ObjectSerializer::VisitPointers().
|
staticprotected |
Definition at line 212 of file serialize.h.
Referenced by v8::internal::Deserializer::ReadChunk(), and v8::internal::Serializer::ObjectSerializer::VisitExternalOneByteString().
Definition at line 152 of file serialize.h.
Referenced by v8::internal::Serializer::Allocate(), v8::internal::Deserializer::Allocate(), v8::internal::Deserializer::GetAddressFromEnd(), and v8::internal::Heap::ReserveSpace().
|
static |
Definition at line 153 of file serialize.h.
Referenced by v8::internal::Serializer::CurrentAllocationAddress(), v8::internal::CodeSerializer::Deserialize(), v8::internal::Deserializer::DeserializePartial(), v8::internal::Deserializer::Deserializer(), v8::internal::Heap::ReserveSpace(), v8::internal::SerializedCodeData::SerializedCodeData(), v8::internal::Serializer::Serializer(), v8::internal::Deserializer::set_reservation(), and v8::internal::Serializer::SpaceOfObject().
|
staticprotected |
Definition at line 202 of file serialize.h.
Referenced by v8::internal::Serializer::ObjectSerializer::OutputRawData(), v8::internal::Deserializer::ReadChunk(), and v8::internal::Serializer::VisitPointers().
|
staticprotected |
Definition at line 213 of file serialize.h.
Referenced by v8::internal::Deserializer::ReadChunk(), and v8::internal::Serializer::ObjectSerializer::VisitPointers().
|
staticprotected |
Definition at line 225 of file serialize.h.
Referenced by v8::internal::Serializer::PutRoot(), and v8::internal::Deserializer::ReadChunk().
|
staticprotected |
Definition at line 227 of file serialize.h.
Referenced by v8::internal::Serializer::PutRoot(), v8::internal::Deserializer::ReadChunk(), and v8::internal::Serializer::ObjectSerializer::VisitPointers().
|
staticprotected |
Definition at line 235 of file serialize.h.
|
staticprotected |
Definition at line 209 of file serialize.h.
Referenced by v8::internal::Deserializer::ReadChunk().