v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <cctest.h>
Public Types | |
typedef void( | TestFunction )() |
Public Member Functions | |
CcTest (TestFunction *callback, const char *file, const char *name, const char *dependency, bool enabled, bool initialize) | |
void | Run () |
CcTest * | prev () |
const char * | file () |
const char * | name () |
const char * | dependency () |
bool | enabled () |
Static Public Member Functions | |
static CcTest * | last () |
static v8::Isolate * | isolate () |
static i::Isolate * | i_isolate () |
static i::Heap * | heap () |
static v8::Local< v8::Object > | global () |
static void | InitializeVM () |
static void | DisableAutomaticDispose () |
static v8::Local< v8::Context > | NewContext (CcTestExtensionFlags extensions, v8::Isolate *isolate=CcTest::isolate()) |
static void | TearDown () |
Friends | |
int | main (int argc, char **argv) |
CcTest | ( | TestFunction * | callback, |
const char * | file, | ||
const char * | name, | ||
const char * | dependency, | ||
bool | enabled, | ||
bool | initialize | ||
) |
Definition at line 46 of file cctest.cc.
References v8::internal::StrDup().
|
static |
Definition at line 105 of file cctest.cc.
References CHECK_EQ, and kUnintialized.
Referenced by UNINITIALIZED_TEST().
|
inlinestatic |
Definition at line 110 of file cctest.h.
References Isolate::GetCurrentContext(), and isolate().
Referenced by TEST().
|
inlinestatic |
Definition at line 106 of file cctest.h.
References Isolate::heap(), and i_isolate().
Referenced by DeclarationContext::Check(), ConsStringGenerationData::ConsStringGenerationData(), CountNativeContexts(), DirectApiCallback(), DisposeAndForceGcCallback(), EpilogueCallbackAlloc(), FailedAccessCheckCallbackGC(), PrologueCallbackAlloc(), ReleaseStackTraceDataTest(), ThreadB::Run(), TEST(), and THREADED_TEST().
|
inlinestatic |
Definition at line 102 of file cctest.h.
References isolate().
Referenced by check(), CThrowCountDown(), DEPENDENT_TEST(), TraceExtension::DoTrace(), FormatMessage(), GetFunctionLineNumber(), TraceExtension::GetJsEntrySp(), heap(), RunParserSyncTest(), TEST(), TestCharacterStream(), TestParserSync(), TestParserSyncWithFlags(), TestScanRegExp(), TestStreamScanner(), TestStringCharacterStream(), and THREADED_TEST().
|
inlinestatic |
Definition at line 116 of file cctest.h.
References CHECK, isolate(), and Context::New().
Referenced by TEST(), and TestStringCharacterStream().
|
inlinestatic |
Definition at line 96 of file cctest.h.
Referenced by CallCompletedCallbackException(), CallCompletedCallbackNoException(), ApiTestFuzzer::CallTest(), DeclarationContext::Check(), checkStackFrame(), DEPENDENT_TEST(), DescriptorTestHelper::DescriptorTestHelper(), DoLoopCancelTerminate(), ExistsInHiddenPrototypeContext::ExistsInHiddenPrototypeContext(), FailedAccessCheckThrows(), FormatMessage(), global(), HasWeakGlobalHandle(), i_isolate(), DeclarationContext::InitializeIfNeeded(), InitializeVM(), DeclarationContext::isolate(), LocalContext::LocalContext(), ReleaseStackTraceDataTest(), ThreadA::Run(), ThreadB::Run(), ApiTestFuzzer::Run(), LockUnlockLockThread::Run(), LockUnlockLockDefaultIsolateThread::Run(), InitDefaultIsolateThread::Run(), ApiCallOptimizationChecker::Run(), RunBeforeGC(), RunParserSyncTest(), TEST(), THREADED_PROFILED_TEST(), THREADED_TEST(), Visitor42::VisitPersistentHandle(), and DeclarationContext::~DeclarationContext().
|
static |
Definition at line 90 of file cctest.cc.
References CHECK, CHECK_EXTENSION_FLAG, EXTENSION_LIST, Handle< T >::IsEmpty(), kMaxExtensions, and Context::New().
Referenced by TEST().
void Run | ( | ) |
Definition at line 70 of file cctest.cc.
References CHECK, Isolate::Enter(), Isolate::Exit(), kInitialized, kUnintialized, Isolate::New(), and NULL.
Referenced by main().
|
inlinestatic |
Definition at line 133 of file cctest.h.
References Isolate::Dispose(), and NULL.
Referenced by main().
|
friend |
Definition at line 268 of file mksnapshot.cc.