v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <serialize.h>
Public Member Functions | |
Deserializer (SnapshotByteSource *source) | |
virtual | ~Deserializer () |
void | Deserialize () |
void | DeserializePartial (Object **root) |
Additional Inherited Members | |
Static Public Member Functions inherited from SerializerDeserializer | |
static void | Iterate (ObjectVisitor *visitor) |
static void | SetSnapshotCacheSize (int size) |
Protected Types inherited from SerializerDeserializer | |
enum | Where { kNewObject = 0, kRootArray = 0x9, kPartialSnapshotCache = 0xa, kExternalReference = 0xb, kSkip = 0xc, kBackref = 0x10, kFromStart = 0x20, kPointedToMask = 0x3f } |
enum | HowToCode { kPlain = 0, kFromCode = 0x40, kHowToCodeMask = 0x40 } |
enum | WhereToPoint { kStartOfObject = 0, kFirstInstruction = 0x80, kWhereToPointMask = 0x80 } |
Static Protected Member Functions inherited from SerializerDeserializer | |
static int | CodeForRepeats (int repeats) |
static int | RepeatsForCode (int byte_code) |
static int | RootArrayConstantFromByteCode (int byte_code) |
static bool | SpaceIsLarge (int space) |
static bool | SpaceIsPaged (int space) |
Static Protected Attributes inherited from SerializerDeserializer | |
static const int | kRawData = 0x30 |
static const int | kSynchronize = 0x70 |
static const int | kNativesStringResource = 0x71 |
static const int | kNewPage = 0x72 |
static const int | kRepeat = 0x73 |
static const int | kConstantRepeat = 0x74 |
static const int | kMaxRepeats = 0x7f - 0x73 |
static const int | kRootArrayLowConstants = 0xb0 |
static const int | kRootArrayHighConstants = 0xf0 |
static const int | kRootArrayNumberOfConstantEncodings = 0x20 |
static const int | kRootArrayNumberOfLowConstantEncodings = 0x10 |
static const int | kLargeData = LAST_SPACE |
static const int | kLargeCode = kLargeData + 1 |
static const int | kLargeFixedArray = kLargeCode + 1 |
static const int | kNumberOfSpaces = kLargeFixedArray + 1 |
static const int | kAnyOldSpace = -1 |
static const int | kSpaceMask = 15 |
Definition at line 331 of file serialize.h.
|
explicit |
Definition at line 585 of file serialize.cc.
|
virtual |
Definition at line 712 of file serialize.cc.
References ASSERT, SnapshotByteSource::AtEOF(), and v8::internal::NULL.
void Deserialize | ( | ) |
Definition at line 666 of file serialize.cc.
References ASSERT, ASSERT_EQ, HandleScopeImplementer::blocks(), ExternalAsciiString::cast(), ThreadManager::FirstThreadStateInUse(), NativesCollection< type >::GetBuiltinsCount(), Isolate::handle_scope_implementer(), Isolate::heap(), Heap::IterateStrongRoots(), Heap::IterateWeakRoots(), Isolate::kPartialSnapshotCacheCapacity, v8::internal::NULL, Heap::set_global_contexts_list(), Isolate::thread_manager(), ExternalAsciiString::update_data_cache(), v8::internal::VISIT_ALL, and v8::internal::VISIT_ONLY_STRONG.
Referenced by Isolate::Init().
void DeserializePartial | ( | Object ** | root | ) |
Definition at line 699 of file serialize.cc.
References v8::internal::NULL.
Referenced by DEPENDENT_TEST(), and Snapshot::NewContextFromSnapshot().