v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
Public Member Functions | |
DeclarationContext () | |
virtual | ~DeclarationContext () |
void | Check (const char *source, int get, int set, int has, Expectations expectations, v8::Handle< Value > value=Local< Value >()) |
int | get_count () const |
int | set_count () const |
int | query_count () const |
Protected Member Functions | |
virtual v8::Handle< Value > | Get (Local< String > key) |
virtual v8::Handle< Value > | Set (Local< String > key, Local< Value > value) |
virtual v8::Handle< Integer > | Query (Local< String > key) |
void | InitializeIfNeeded () |
virtual void | PostInitializeContext (Handle< Context > context) |
virtual Local< ObjectTemplate > | GetHolder (Local< FunctionTemplate > function) |
v8::Isolate * | isolate () const |
Static Protected Member Functions | |
static void | HandleGet (Local< String > key, const v8::PropertyCallbackInfo< v8::Value > &info) |
static void | HandleSet (Local< String > key, Local< Value > value, const v8::PropertyCallbackInfo< v8::Value > &info) |
static void | HandleQuery (Local< String > key, const v8::PropertyCallbackInfo< v8::Integer > &info) |
Definition at line 49 of file test-decls.cc.
Definition at line 113 of file test-decls.cc.
|
inlinevirtual |
Definition at line 53 of file test-decls.cc.
References CcTest::isolate(), and Local< T >::New().
void Check | ( | const char * | source, |
int | get, | ||
int | set, | ||
int | has, | ||
Expectations | expectations, | ||
v8::Handle< Value > | value = Local<Value>() |
||
) |
Definition at line 141 of file test-decls.cc.
References CHECK, CHECK_EQ, Heap::CollectAllAvailableGarbage(), Heap::CollectGarbage(), TryCatch::Exception(), EXPECT_ERROR, EXPECT_EXCEPTION, EXPECT_RESULT, get_count(), TryCatch::HasCaught(), CcTest::heap(), InitializeIfNeeded(), Handle< T >::IsEmpty(), CcTest::isolate(), v8::internal::NEW_SPACE, query_count(), Script::Run(), set_count(), and TryCatch::SetVerbose().
Referenced by TEST().
|
protectedvirtual |
Definition at line 214 of file test-decls.cc.
Referenced by HandleGet().
|
inline |
Definition at line 68 of file test-decls.cc.
Referenced by Check().
|
inlineprotectedvirtual |
Reimplemented in ExistsInHiddenPrototypeContext, AbsentInPrototypeContext, and ExistsInPrototypeContext.
Definition at line 85 of file test-decls.cc.
Referenced by InitializeIfNeeded().
|
staticprotected |
Definition at line 180 of file test-decls.cc.
References PropertyCallbackInfo< T >::Data(), Get(), and PropertyCallbackInfo< T >::GetReturnValue().
Referenced by InitializeIfNeeded().
|
staticprotected |
Definition at line 199 of file test-decls.cc.
References PropertyCallbackInfo< T >::Data(), PropertyCallbackInfo< T >::GetReturnValue(), and Query().
Referenced by InitializeIfNeeded().
|
staticprotected |
Definition at line 189 of file test-decls.cc.
References PropertyCallbackInfo< T >::Data(), PropertyCallbackInfo< T >::GetReturnValue(), and Set().
Referenced by InitializeIfNeeded().
|
protected |
Definition at line 119 of file test-decls.cc.
References GetHolder(), HandleGet(), HandleQuery(), HandleSet(), CcTest::isolate(), isolate(), PostInitializeContext(), and PersistentBase< T >::Reset().
Referenced by Check(), and ExistsInPrototypeContext::ExistsInPrototypeContext().
|
inlineprotected |
Definition at line 99 of file test-decls.cc.
References CcTest::isolate().
Referenced by InitializeIfNeeded(), PresentPropertyContext::Query(), AppearingPropertyContext::Query(), ReappearingPropertyContext::Query(), ExistsInPrototypeContext::Query(), and ExistsInHiddenPrototypeContext::Query().
Reimplemented in ExistsInHiddenPrototypeContext.
Definition at line 81 of file test-decls.cc.
Referenced by InitializeIfNeeded().
|
protectedvirtual |
Reimplemented in ExistsInHiddenPrototypeContext, AbsentInPrototypeContext, ExistsInPrototypeContext, ReappearingPropertyContext, AppearingPropertyContext, AbsentPropertyContext, and PresentPropertyContext.
Definition at line 225 of file test-decls.cc.
Referenced by HandleQuery().
|
inline |
Definition at line 70 of file test-decls.cc.
Referenced by Check().
Definition at line 219 of file test-decls.cc.
Referenced by HandleSet().
|
inline |
Definition at line 69 of file test-decls.cc.
Referenced by Check().