/external/webkit/Source/WebCore/bindings/v8/ |
V8HiddenPropertyName.cpp | 40 v8::Handle<v8::String> V8HiddenPropertyName::name() \ 42 static v8::Persistent<v8::String>* string = createString("WebCore::V8HiddenPropertyName::" V8_AS_STRING(name)); \ 48 v8::Persistent<v8::String>* V8HiddenPropertyName::createString(const char* key) 50 v8::HandleScope scope; 51 return new v8::Persistent<v8::String>(v8::Persistent<v8::String>::New(v8::String::NewSymbol(key))) [all...] |
JavaScriptCallFrame.h | 38 #include <v8-debug.h> 44 static PassRefPtr<JavaScriptCallFrame> create(v8::Handle<v8::Context> debuggerContext, v8::Handle<v8::Object> callFrame) 57 v8::Handle<v8::Value> scopeChain() const; 59 v8::Handle<v8::Value> thisObject() const; 61 v8::Handle<v8::Value> evaluate(const String& expression) [all...] |
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...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8HTMLAudioElementConstructor.h | 36 #include <v8.h> 42 static v8::Persistent<v8::FunctionTemplate> GetTemplate();
|
V8HTMLImageElementConstructor.h | 36 #include <v8.h> 42 static v8::Persistent<v8::FunctionTemplate> GetTemplate();
|
V8HTMLOptionElementConstructor.h | 36 #include <v8.h> 42 static v8::Persistent<v8::FunctionTemplate> GetTemplate();
|
V8MessagePortCustom.h | 35 #include <v8.h> 44 bool getMessagePortArray(v8::Local<v8::Value>, MessagePortArray&);
|
V8ScriptProfileCustom.cpp | 38 #include <v8-profiler.h> 42 v8::Handle<v8::Value> toV8(ScriptProfile* impl) 45 return v8::Null(); 46 v8::Local<v8::Function> function = V8ScriptProfile::GetTemplate()->GetFunction(); 49 return v8::Local<v8::Object>(); 51 v8::Local<v8::Object> instance = SafeAllocation::newInstance(function) [all...] |
V8HTMLPlugInElementCustom.cpp | 48 static v8::Handle<v8::Value> npObjectNamedGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 55 v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance()); 63 static v8::Handle<v8::Value> npObjectNamedSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, con (…) [all...] |
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...] |
/hardware/ril/mock-ril/src/cpp/ |
js_support.h | 20 #include <v8.h> 27 extern v8::Handle<v8::Value> Print(const v8::Arguments& args); 33 extern v8::Handle<v8::Value> ReadFileToString(const v8::Arguments& args); 36 extern v8::Handle<v8::Value> ReadFileToBuffer(const v8::Arguments& args) [all...] |
node_buffer.h | 30 #include <v8.h> 33 /* A buffer is a chunk of memory stored outside the V8 heap, mirrored by an 58 static void Initialize(v8::Handle<v8::Object> target); 59 static void InitializeObjectTemplate(v8::Handle<v8::ObjectTemplate> target); 61 static inline bool HasInstance(v8::Handle<v8::Value> val) { 63 v8::Local<v8::Object> obj = val->ToObject() [all...] |
/external/webkit/Source/WebCore/bindings/scripts/test/V8/ |
V8TestInterface.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 TestInterface* toNative(v8::Handle<v8::Object> object) 45 inline static v8::Handle<v8::Object> wrap(TestInterface*) [all...] |
/external/v8/samples/ |
shell.cc | 1 // Copyright 2011 the V8 project authors. All rights reserved. 28 #include <v8.h> 29 #include <v8-testing.h> 36 // When building with V8 in a shared library we cannot use functions which 37 // is not explicitly a part of the public V8 API. This extensive use of 42 #include "../src/v8.h" 57 v8::Persistent<v8::Context> CreateShellContext(); 58 void RunShell(v8::Handle<v8::Context> context) [all...] |
/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/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...] |