v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include "v8.h"
#include "api.h"
#include "cctest.h"
#include "frames-inl.h"
#include "string-stream.h"
Go to the source code of this file.
Functions | |
THREADED_TEST (PropertyHandler) | |
THREADED_TEST (GlobalVariableAccess) | |
THREADED_TEST (AccessorIC) | |
THREADED_TEST (AccessorProhibitsOverwriting) | |
THREADED_TEST (HandleScopePop) | |
THREADED_TEST (DirectCall) | |
THREADED_TEST (EmptyResult) | |
THREADED_TEST (NoReuseRegress) | |
THREADED_TEST (Regress1054726) | |
THREADED_TEST (Gc) | |
THREADED_TEST (StackIteration) | |
THREADED_TEST (HandleScopeSegment) | |
void | JSONStringifyEnumerator (const v8::PropertyCallbackInfo< v8::Array > &info) |
void | JSONStringifyGetter (Local< String > name, const v8::PropertyCallbackInfo< v8::Value > &info) |
THREADED_TEST (JSONStringifyNamedInterceptorObject) | |
THREADED_TEST (AccessorPropertyCrossContext) | |
THREADED_TEST (GlobalObjectAccessor) | |
Variables | |
int | foo |
int | bar |
int | baz |
void JSONStringifyEnumerator | ( | const v8::PropertyCallbackInfo< v8::Array > & | info | ) |
Definition at line 557 of file test-accessors.cc.
References PropertyCallbackInfo< T >::GetIsolate(), PropertyCallbackInfo< T >::GetReturnValue(), Array::New(), and Object::Set().
Referenced by THREADED_TEST().
void JSONStringifyGetter | ( | Local< String > | name, |
const v8::PropertyCallbackInfo< v8::Value > & | info | ||
) |
Definition at line 564 of file test-accessors.cc.
References PropertyCallbackInfo< T >::GetReturnValue().
Referenced by THREADED_TEST().
THREADED_TEST | ( | PropertyHandler | ) |
Definition at line 66 of file test-accessors.cc.
References CHECK_EQ, Context::GetIsolate(), Context::Global(), and FunctionTemplate::New().
THREADED_TEST | ( | GlobalVariableAccess | ) |
Definition at line 120 of file test-accessors.cc.
References CHECK_EQ, FunctionTemplate::InstanceTemplate(), CcTest::isolate(), External::New(), and FunctionTemplate::New().
THREADED_TEST | ( | AccessorIC | ) |
Definition at line 194 of file test-accessors.cc.
References Handle< T >::Cast(), CHECK_EQ, Object::Get(), Context::GetIsolate(), Context::Global(), Array::Length(), Integer::New(), Object::New(), FunctionTemplate::New(), ObjectTemplate::NewInstance(), obj, ObjectTemplate::SetAccessor(), and Template::SetAccessorProperty().
THREADED_TEST | ( | AccessorProhibitsOverwriting | ) |
Definition at line 240 of file test-accessors.cc.
References CHECK, Context::GetIsolate(), Context::Global(), v8::PROHIBITS_OVERWRITING, and v8::ReadOnly.
THREADED_TEST | ( | HandleScopePop | ) |
Definition at line 291 of file test-accessors.cc.
References CHECK_EQ, Context::GetIsolate(), Context::Global(), String::NewFromUtf8(), ObjectTemplate::NewInstance(), HandleScope::NumberOfHandles(), obj, and ObjectTemplate::SetAccessor().
THREADED_TEST | ( | DirectCall | ) |
Definition at line 336 of file test-accessors.cc.
References CHECK, CHECK_EQ, Script::Compile(), Context::GetIsolate(), Context::Global(), String::NewFromUtf8(), ObjectTemplate::NewInstance(), NULL, obj, and ObjectTemplate::SetAccessor().
THREADED_TEST | ( | EmptyResult | ) |
Definition at line 366 of file test-accessors.cc.
References CHECK, Script::Compile(), Context::GetIsolate(), Context::Global(), String::NewFromUtf8(), ObjectTemplate::NewInstance(), NULL, obj, ObjectTemplate::SetAccessor(), and v8::Undefined().
THREADED_TEST | ( | NoReuseRegress | ) |
Definition at line 384 of file test-accessors.cc.
References CHECK, CHECK_EQ, Script::Compile(), Context::Global(), CcTest::isolate(), String::NewFromUtf8(), ObjectTemplate::NewInstance(), NULL, obj, ObjectTemplate::SetAccessor(), and v8::Undefined().
THREADED_TEST | ( | Regress1054726 | ) |
Definition at line 437 of file test-accessors.cc.
References CHECK_EQ, Context::GetIsolate(), Context::Global(), ObjectTemplate::NewInstance(), obj, and ObjectTemplate::SetAccessor().
THREADED_TEST | ( | Gc | ) |
Definition at line 476 of file test-accessors.cc.
References Context::GetIsolate(), Context::Global(), ObjectTemplate::NewInstance(), obj, and ObjectTemplate::SetAccessor().
THREADED_TEST | ( | StackIteration | ) |
Definition at line 509 of file test-accessors.cc.
References StringStream::ClearMentionedObjectCache(), Context::GetIsolate(), Context::Global(), ObjectTemplate::NewInstance(), obj, and ObjectTemplate::SetAccessor().
THREADED_TEST | ( | HandleScopeSegment | ) |
Definition at line 538 of file test-accessors.cc.
References CHECK_EQ, Context::GetIsolate(), Context::Global(), Value::Int32Value(), ObjectTemplate::NewInstance(), obj, and ObjectTemplate::SetAccessor().
THREADED_TEST | ( | JSONStringifyNamedInterceptorObject | ) |
Definition at line 570 of file test-accessors.cc.
References CHECK, Context::GetIsolate(), Context::Global(), JSONStringifyEnumerator(), JSONStringifyGetter(), ObjectTemplate::NewInstance(), NULL, obj, and ObjectTemplate::SetNamedPropertyHandler().
THREADED_TEST | ( | AccessorPropertyCrossContext | ) |
Definition at line 595 of file test-accessors.cc.
References CHECK, Context::GetIsolate(), Context::Global(), TryCatch::HasCaught(), LocalContext::local(), and Function::New().
THREADED_TEST | ( | GlobalObjectAccessor | ) |
Definition at line 612 of file test-accessors.cc.
References CHECK, Context::GetIsolate(), and Utils::OpenHandle().
int bar |
Definition at line 118 of file test-accessors.cc.
Referenced by TEST(), and THREADED_TEST().
int baz |
Definition at line 118 of file test-accessors.cc.
Referenced by TEST().
int foo |
Definition at line 118 of file test-accessors.cc.
Referenced by PowersOfTenCache::GetCachedPowerForBinaryExponentRange(), TEST(), and THREADED_TEST().