v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <serialize.h>
Public Member Functions | |
Deserializer (SnapshotByteSource *source) | |
virtual | ~Deserializer () |
void | Deserialize (Isolate *isolate) |
void | DeserializePartial (Isolate *isolate, Object **root) |
void | set_reservation (int space_number, int reservation) |
Additional Inherited Members | |
Static Public Member Functions inherited from SerializerDeserializer | |
static void | Iterate (Isolate *isolate, ObjectVisitor *visitor) |
static int | nop () |
Protected Types inherited from SerializerDeserializer | |
enum | Where { kNewObject = 0, kRootArray = 0x9, kPartialSnapshotCache = 0xa, kExternalReference = 0xb, kSkip = 0xc, kNop = 0xd, 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 } |
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 Protected Attributes inherited from SerializerDeserializer | |
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 | kNumberOfSpaces = LO_SPACE |
static const int | kAnyOldSpace = -1 |
static const int | kSpaceMask = 7 |
Definition at line 320 of file serialize.h.
|
explicit |
Definition at line 780 of file serialize.cc.
References v8::internal::LAST_SPACE.
|
virtual |
Definition at line 867 of file serialize.cc.
References ASSERT, SnapshotByteSource::AtEOF(), and v8::internal::NULL.
void Deserialize | ( | Isolate * | isolate | ) |
Definition at line 799 of file serialize.cc.
References Heap::allocation_sites_list(), ASSERT, ASSERT_EQ, HandleScopeImplementer::blocks(), ExternalAsciiString::cast(), ThreadManager::FirstThreadStateInUse(), Smi::FromInt(), NativesCollection< type >::GetBuiltinsCount(), Isolate::handle_scope_implementer(), Isolate::heap(), Heap::InitializeWeakObjectToCodeTable(), Heap::IterateSmiRoots(), Heap::IterateStrongRoots(), Heap::IterateWeakRoots(), LOG_CODE_EVENT, v8::internal::NULL, Heap::RepairFreeListsAfterBoot(), Heap::ReserveSpace(), Heap::set_allocation_sites_list(), Heap::set_array_buffers_list(), Heap::set_native_contexts_list(), Isolate::thread_manager(), ExternalAsciiString::update_data_cache(), v8::internal::VISIT_ALL, and v8::internal::VISIT_ONLY_STRONG.
Referenced by Isolate::Init().
Definition at line 844 of file serialize.cc.
References ASSERT, CHECK_EQ, Heap::code_space(), Isolate::heap(), SerializerDeserializer::kNumberOfSpaces, v8::internal::NEW_SPACE, v8::internal::NULL, Heap::ReserveSpace(), and PagedSpace::top().
Referenced by DEPENDENT_TEST(), and Snapshot::NewContextFromSnapshot().
|
inline |
Definition at line 333 of file serialize.h.
References ASSERT, and v8::internal::LAST_SPACE.
Referenced by Snapshot::NewContextFromSnapshot().