v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <signal.h>
#include "sys/stat.h"
#include "v8.h"
#include "debug.h"
#include "ic-inl.h"
#include "runtime.h"
#include "serialize.h"
#include "scopeinfo.h"
#include "snapshot.h"
#include "cctest.h"
#include "spaces.h"
#include "objects.h"
#include "natives.h"
#include "bootstrapper.h"
Go to the source code of this file.
Data Structures | |
class | FileByteSink |
Functions | |
TEST (ExternalReferenceEncoder) | |
TEST (ExternalReferenceDecoder) | |
TEST (Serialize) | |
TEST (SerializeTwice) | |
DEPENDENT_TEST (Deserialize, Serialize) | |
DEPENDENT_TEST (DeserializeFromSecondSerialization, SerializeTwice) | |
DEPENDENT_TEST (DeserializeAndRunScript2, Serialize) | |
DEPENDENT_TEST (DeserializeFromSecondSerializationAndRunScript2, SerializeTwice) | |
TEST (PartialSerialization) | |
DEPENDENT_TEST (PartialDeserialization, PartialSerialization) | |
TEST (ContextSerialization) | |
DEPENDENT_TEST (ContextDeserialization, ContextSerialization) | |
TEST (TestThatAlwaysSucceeds) | |
TEST (TestThatAlwaysFails) | |
DEPENDENT_TEST (DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) | |
DEPENDENT_TEST | ( | Deserialize | , |
Serialize | |||
) |
Definition at line 298 of file test-serialize.cc.
References Snapshot::HaveASnapshotToStartFrom(), and Context::New().
DEPENDENT_TEST | ( | DeserializeFromSecondSerialization | , |
SerializeTwice | |||
) |
Definition at line 314 of file test-serialize.cc.
References Snapshot::HaveASnapshotToStartFrom(), and Context::New().
DEPENDENT_TEST | ( | DeserializeAndRunScript2 | , |
Serialize | |||
) |
Definition at line 327 of file test-serialize.cc.
References CHECK_EQ, Script::Compile(), Snapshot::HaveASnapshotToStartFrom(), String::New(), Context::New(), and Script::Run().
DEPENDENT_TEST | ( | DeserializeFromSecondSerializationAndRunScript2 | , |
SerializeTwice | |||
) |
Definition at line 343 of file test-serialize.cc.
References CHECK_EQ, Script::Compile(), Snapshot::HaveASnapshotToStartFrom(), String::New(), Context::New(), and Script::Run().
DEPENDENT_TEST | ( | PartialDeserialization | , |
PartialSerialization | |||
) |
Definition at line 453 of file test-serialize.cc.
References CHECK, Deserializer::DeserializePartial(), Vector< T >::Dispose(), Snapshot::Initialize(), Snapshot::IsEnabled(), Vector< T >::New(), v8::internal::ReadBytes(), v8::internal::snapshot(), OS::SNPrintF(), Vector< T >::start(), and v8::internal::StrLength().
DEPENDENT_TEST | ( | ContextDeserialization | , |
ContextSerialization | |||
) |
Definition at line 549 of file test-serialize.cc.
References CHECK, Deserializer::DeserializePartial(), Vector< T >::Dispose(), Snapshot::HaveASnapshotToStartFrom(), Snapshot::Initialize(), Vector< T >::New(), v8::internal::ReadBytes(), v8::internal::snapshot(), OS::SNPrintF(), Vector< T >::start(), and v8::internal::StrLength().
DEPENDENT_TEST | ( | DependentTestThatAlwaysFails | , |
TestThatAlwaysSucceeds | |||
) |
Definition at line 598 of file test-serialize.cc.
References CHECK.
TEST | ( | ExternalReferenceEncoder | ) |
Definition at line 101 of file test-serialize.cc.
References v8::internal::BUILTIN, CHECK_EQ, Isolate::counters(), ExternalReferenceEncoder::Encode(), v8::internal::IC_UTILITY, V8::Initialize(), v8::internal::RUNTIME_FUNCTION, StatsTable::SetCounterFunction(), v8::internal::STATS_COUNTER, Isolate::stats_table(), and v8::internal::UNCLASSIFIED.
TEST | ( | ExternalReferenceDecoder | ) |
Definition at line 138 of file test-serialize.cc.
References v8::internal::BUILTIN, CHECK_EQ, Isolate::counters(), ExternalReferenceDecoder::Decode(), v8::internal::IC_UTILITY, V8::Initialize(), v8::internal::RUNTIME_FUNCTION, StatsTable::SetCounterFunction(), v8::internal::STATS_COUNTER, Isolate::stats_table(), and v8::internal::UNCLASSIFIED.
TEST | ( | Serialize | ) |
Definition at line 258 of file test-serialize.cc.
References Serializer::Enable(), Snapshot::HaveASnapshotToStartFrom(), and V8::Initialize().
TEST | ( | SerializeTwice | ) |
Definition at line 268 of file test-serialize.cc.
References Serializer::Enable(), Snapshot::HaveASnapshotToStartFrom(), and V8::Initialize().
TEST | ( | PartialSerialization | ) |
Definition at line 360 of file test-serialize.cc.
References ASSERT, v8::internal::CELL_SPACE, v8::internal::CODE_SPACE, Serializer::CurrentAllocationAddress(), Persistent< T >::Dispose(), Vector< T >::Dispose(), Serializer::Enable(), foo, NativesCollection< type >::GetBuiltinsCount(), Snapshot::HaveASnapshotToStartFrom(), HEAP, V8::Initialize(), Handle< T >::IsEmpty(), Heap::kNoGCFlags, v8::internal::MAP_SPACE, Vector< T >::New(), String::New(), Context::New(), v8::internal::NEW_SPACE, v8::internal::OLD_DATA_SPACE, v8::internal::OLD_POINTER_SPACE, PartialSerializer::Serialize(), OS::SNPrintF(), Vector< T >::start(), v8::internal::StrLength(), and FileByteSink::WriteSpaceUsed().
TEST | ( | ContextSerialization | ) |
Definition at line 492 of file test-serialize.cc.
References ASSERT, v8::internal::CELL_SPACE, v8::internal::CODE_SPACE, Serializer::CurrentAllocationAddress(), Persistent< T >::Dispose(), Vector< T >::Dispose(), Serializer::Enable(), NativesCollection< type >::GetBuiltinsCount(), Snapshot::HaveASnapshotToStartFrom(), HEAP, V8::Initialize(), Handle< T >::IsEmpty(), Heap::kNoGCFlags, v8::internal::MAP_SPACE, Vector< T >::New(), Context::New(), v8::internal::NEW_SPACE, v8::internal::OLD_DATA_SPACE, v8::internal::OLD_POINTER_SPACE, PartialSerializer::Serialize(), OS::SNPrintF(), Vector< T >::start(), v8::internal::StrLength(), and FileByteSink::WriteSpaceUsed().
TEST | ( | TestThatAlwaysSucceeds | ) |
Definition at line 588 of file test-serialize.cc.
TEST | ( | TestThatAlwaysFails | ) |
Definition at line 592 of file test-serialize.cc.
References CHECK.