/external/v8/src/extensions/ |
gc-extension.cc | 1 // Copyright 2010 the V8 project authors. All rights reserved. 30 namespace v8 { namespace 36 v8::Handle<v8::FunctionTemplate> GCExtension::GetNativeFunction( 37 v8::Handle<v8::String> str) { 38 return v8::FunctionTemplate::New(GCExtension::GC); 42 v8::Handle<v8::Value> GCExtension::GC(const v8::Arguments& args) [all...] |
/external/webkit/Source/WebCore/bindings/v8/ |
V8EventListener.h | 35 #include <v8.h> 47 static PassRefPtr<V8EventListener> create(v8::Local<v8::Object> listener, bool isAttribute, const WorldContextHandle& worldContext) 53 V8EventListener(v8::Local<v8::Object> listener, bool isAttribute, const WorldContextHandle& worldContext); 55 v8::Local<v8::Function> getListenerFunction(ScriptExecutionContext*); 57 virtual v8::Local<v8::Value> callListenerFunction(ScriptExecutionContext*, v8::Handle<v8::Value> jsEvent, Event*) [all...] |
ScriptScope.h | 34 #include <v8.h> 44 v8::Local<v8::Object> global() const { return m_context->Global(); } 47 v8::HandleScope m_handleScope; 48 v8::Local<v8::Context> m_context; 49 v8::Context::Scope m_scope; 50 v8::TryCatch m_exceptionCatcher;
|
V8DOMWindowShell.h | 54 v8::Handle<v8::Context> context() const { return m_context; } 68 v8::Persistent<v8::Context> createNewContext(v8::Handle<v8::Object> global, int extensionGroup); 69 void setContext(v8::Handle<v8::Context>); 70 static bool installDOMWindow(v8::Handle<v8::Context> context, DOMWindow*) [all...] |
DateExtension.cpp | 41 static const char* dateExtensionName = "v8/DateExtension"; 65 DateExtension::DateExtension() : v8::Extension(dateExtensionName, dateExtensionScript) 78 v8::Local<v8::Value> result = V8Proxy::currentContext()->Global()->Get(v8::String::New("Date")); 82 v8::Handle<v8::Object> dateObject = v8::Handle<v8::Object>::Cast(result); 86 v8::Local<v8::Value> sleepFunctionHandle = dateObject->GetHiddenValue(V8HiddenPropertyName::sleepFunc (…) [all...] |
V8Binding.h | 40 #include <v8.h> 59 StringType v8StringToWebCoreString(v8::Handle<v8::String> v8String, ExternalMode external); 61 // Convert v8 types to a WTF::String. If the V8 string is not already 64 inline String v8StringToWebCoreString(v8::Handle<v8::String> v8String) 68 String v8NonStringValueToWebCoreString(v8::Handle<v8::Value>); 69 String v8ValueToWebCoreString(v8::Handle<v8::Value> value) [all...] |
V8IsolatedContext.h | 39 #include <v8.h> 70 // v8::Context::GetEntered(). Because worlds are isolated, the entire 81 // V8 team to add a real property to v8::Context for isolated worlds. 86 if (!v8::Context::InContext()) 88 return reinterpret_cast<V8IsolatedContext*>(getGlobalObject(v8::Context::GetEntered())->GetPointerFromInternalField(V8DOMWindow::enteredIsolatedWorldIndex)); 91 v8::Handle<v8::Context> context() { return m_context->get(); } 92 PassRefPtr<SharedPersistent<v8::Context> > sharedContext() { return m_context; } 97 static v8::Handle<v8::Object> getGlobalObject(v8::Handle<v8::Context> context [all...] |
V8DOMWrapper.h | 45 #include <v8.h> 64 // Checks if a v8 value can be a DOM wrapper 65 static bool maybeDOMWrapper(v8::Handle<v8::Value>); 69 static void setDOMWrapper(v8::Handle<v8::Object> object, WrapperTypeInfo* type, void* cptr) 76 static v8::Handle<v8::Object> lookupDOMWrapper(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Handle<v8::Object> object [all...] |
ScriptCallStackFactory.h | 34 #include <v8.h> 43 const v8::StackTrace::StackTraceOptions stackTraceOptions = static_cast<v8::StackTrace::StackTraceOptions>( 44 v8::StackTrace::kLineNumber 45 | v8::StackTrace::kColumnOffset 46 | v8::StackTrace::kScriptNameOrSourceURL 47 | v8::StackTrace::kFunctionName); 49 PassRefPtr<ScriptCallStack> createScriptCallStack(v8::Handle<v8::StackTrace>, size_t maxStackSize); 51 PassRefPtr<ScriptArguments> createScriptArguments(const v8::Arguments& v8arguments, unsigned skipArgumentCount) [all...] |
ScheduledAction.h | 39 #include <v8.h> 49 ScheduledAction(v8::Handle<v8::Context>, v8::Handle<v8::Function>, int argc, v8::Handle<v8::Value> argv[]); 50 explicit ScheduledAction(v8::Handle<v8::Context> context, const WTF::String& code, const KURL& url = KURL()) 67 OwnHandle<v8::Context> m_context [all...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8CanvasPixelArrayCustom.cpp | 36 v8::Handle<v8::Value> toV8(CanvasPixelArray* impl) 39 return v8::Null(); 40 v8::Handle<v8::Object> wrapper = V8CanvasPixelArray::wrap(impl); 43 wrapper->Set(v8::String::NewSymbol("length"), 44 v8::Integer::New(impl->length()), 45 v8::ReadOnly);
|
V8PopStateEventCustom.cpp | 40 v8::Handle<v8::Value> V8PopStateEvent::stateAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 47 return v8::Null();
|
V8InspectorFrontendHostCustom.cpp | 45 v8::Handle<v8::Value> V8InspectorFrontendHost::platformCallback(const v8::Arguments&) 60 v8::Handle<v8::Value> V8InspectorFrontendHost::portCallback(const v8::Arguments&) 62 return v8::Undefined(); 65 v8::Handle<v8::Value> V8InspectorFrontendHost::showContextMenuCallback(const v8::Arguments& args [all...] |
V8DeviceMotionEventCustom.cpp | 36 #include <v8.h> 42 v8::Handle<v8::Value> createAccelerationObject(const DeviceMotionData::Acceleration* acceleration) 44 v8::Local<v8::Object> object = v8::Object::New(); 45 object->Set(v8::String::New("x"), acceleration->canProvideX() ? v8::Number::New(acceleration->x()) : v8::Null()); 46 object->Set(v8::String::New("y"), acceleration->canProvideY() ? v8::Number::New(acceleration->y()) : v8::Null()) [all...] |
V8HTMLOutputElementCustom.cpp | 41 v8::Handle<v8::Value> V8HTMLOutputElement::htmlForAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 48 void V8HTMLOutputElement::htmlForAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info [all...] |
V8WebKitAnimationCustom.cpp | 34 #include <v8.h> 38 v8::Handle<v8::Value> V8WebKitAnimation::iterationCountAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 41 v8::Handle<v8::Object> holder = info.Holder(); 45 return v8::Number::New(std::numeric_limits<float>::infinity()); 46 return v8::Number::New(count) [all...] |
V8CustomVoidCallback.cpp | 40 V8CustomVoidCallback::V8CustomVoidCallback(v8::Local<v8::Object> callback, ScriptExecutionContext *context) 41 : m_callback(v8::Persistent<v8::Object>::New(callback)) 54 v8::HandleScope handleScope; 56 v8::Handle<v8::Context> v8Context = toV8Context(m_scriptExecutionContext.get(), m_worldContext); 60 v8::Context::Scope scope(v8Context); 66 bool invokeCallback(v8::Persistent<v8::Object> callback, int argc, v8::Handle<v8::Value> argv[], bool& callbackReturnValue, ScriptExecut (…) [all...] |
V8CustomXPathNSResolver.cpp | 41 PassRefPtr<V8CustomXPathNSResolver> V8CustomXPathNSResolver::create(v8::Handle<v8::Object> resolver) 46 V8CustomXPathNSResolver::V8CustomXPathNSResolver(v8::Handle<v8::Object> resolver) 57 v8::Handle<v8::Function> lookupNamespaceURIFunc; 58 v8::Handle<v8::String> lookupNamespaceURIName = v8::String::New("lookupNamespaceURI"); 62 v8::Handle<v8::Value> lookupNamespaceURI = m_resolver->Get(lookupNamespaceURIName) [all...] |
V8JavaScriptCallFrameCustom.cpp | 41 v8::Handle<v8::Value> V8JavaScriptCallFrame::evaluateCallback(const v8::Arguments& args) 49 v8::Handle<v8::Value> V8JavaScriptCallFrame::scopeChainAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 56 v8::Handle<v8::Value> V8JavaScriptCallFrame::scopeTypeCallback(const v8::Arguments& args [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
BoundObject.cpp | 38 BoundObject::BoundObject(v8::Handle<v8::Context> context, void* v8This, const char* objectName) 43 v8::Context::Scope contextScope(context); 44 v8::Local<v8::FunctionTemplate> localTemplate = v8::FunctionTemplate::New(WebCore::V8Proxy::checkNewLegal); 45 m_hostTemplate = v8::Persistent<v8::FunctionTemplate>::New(localTemplate); 46 m_hostTemplate->SetClassName(v8::String::New(objectName)); 54 void BoundObject::addProtoFunction(const char* name, v8::InvocationCallback callback [all...] |
/external/webkit/Source/WebCore/bindings/scripts/test/V8/ |
V8TestInterface.cpp | 44 v8::Handle<v8::Value> V8TestInterface::constructorCallback(const v8::Arguments& args) 49 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Persistent<v8::FunctionTemplate> desc) 51 v8::Local<v8::Signature> defaultSignature = configureTemplate(desc, "TestInterface", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount [all...] |
V8TestSerializedScriptValueInterface.cpp | 45 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestSerializedScriptValueInterfaceTemplate(v8::Persistent<v8::FunctionTemplate> desc) 47 v8::Local<v8::Signature> defaultSignature = configureTemplate(desc, "TestSerializedScriptValueInterface", v8::Persistent<v8::FunctionTemplate>(), V8TestSerializedScriptValueInterface::internalFieldCount, 58 v8::Persistent<v8::FunctionTemplate> V8TestSerializedScriptValueInterface::GetRawTemplate( [all...] |
V8TestMediaQueryListListener.h | 28 #include <v8.h> 36 static bool HasInstance(v8::Handle<v8::Value> value); 37 static v8::Persistent<v8::FunctionTemplate> GetRawTemplate(); 38 static v8::Persistent<v8::FunctionTemplate> GetTemplate(); 39 static TestMediaQueryListListener* toNative(v8::Handle<v8::Object> object) 43 inline static v8::Handle<v8::Object> wrap(TestMediaQueryListListener*) [all...] |
V8TestSerializedScriptValueInterface.h | 30 #include <v8.h> 38 static bool HasInstance(v8::Handle<v8::Value> value); 39 static v8::Persistent<v8::FunctionTemplate> GetRawTemplate(); 40 static v8::Persistent<v8::FunctionTemplate> GetTemplate(); 41 static TestSerializedScriptValueInterface* toNative(v8::Handle<v8::Object> object) 45 inline static v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface*) [all...] |
/external/v8/samples/ |
lineprocessor.cc | 1 // Copyright 2009 the V8 project authors. All rights reserved. 32 // Note that V8 itself should be compiled with enabled debugger support 36 #include <v8.h> 39 #include <v8-debug.h> 49 * standalone V8-based application. 84 * When run with "-p" argument, the program starts V8 Debugger Agent and 92 * This way V8 will suspend on the first statement and wait for 95 * 2. Unresponsive V8 96 * V8 Debugger Agent holds a connection with remote debugger, but it does 97 * respond only when V8 is running some script. In particular, when this progra [all...] |