/external/v8/test/cctest/ |
test-log-stack-tracer.cc | 1 // Copyright 2011 the V8 project authors. All rights reserved. 32 #include "v8.h" 42 using v8::Function; 43 using v8::Local; 44 using v8::Object; 45 using v8::Script; 46 using v8::String; 47 using v8::Value; 49 using v8::internal::byte; 50 using v8::internal::Address [all...] |
cctest.h | 1 // Copyright 2008 the V8 project authors. All rights reserved. 31 #include "v8.h" 80 // the tests alternate, not relying solely on the big V8 lock. 87 class ApiTestFuzzer: public v8::internal::Thread { 93 gate_(v8::internal::OS::CreateSemaphore(0)), 121 v8::internal::Semaphore* gate_; 125 static v8::internal::Semaphore* all_tests_done_; 167 // A LocalContext holds a reference to a v8::Context. 170 LocalContext(v8::ExtensionConfiguration* extensions = 0, 171 v8::Handle<v8::ObjectTemplate> global_template [all...] |
/external/webkit/Source/WebCore/bindings/v8/ |
ScriptDebugServer.h | 40 #include <v8-debug.h> 94 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Context>) = 0; 95 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; 98 static v8::Handle<v8::Value> breakProgramCallback(const v8::Arguments& args); 99 void breakProgram(v8::Handle<v8::Object> executionState) [all...] |
V8NPObject.cpp | 69 static v8::Handle<v8::Value> npObjectInvokeImpl(const v8::Arguments& args, InvokeFunctionType functionId) 116 v8::Handle<v8::String> functionName(v8::String::Cast(*args.Data())); 140 v8::Handle<v8::Value> returnValue = convertNPVariantToV8Object(&result, npObject); 147 v8::Handle<v8::Value> npObjectMethodHandler(const v8::Arguments& args [all...] |
OwnHandle.h | 34 #include <v8.h> 42 explicit OwnHandle(v8::Handle<T> handle) : m_handle(v8::Persistent<T>::New(handle)) { } 45 v8::Handle<T> get() const { return m_handle; } 46 void set(v8::Handle<T> handle) { clear(); m_handle = v8::Persistent<T>::New(handle); } 48 // Note: This is clear in the OwnPtr sense, not the v8::Handle sense. 69 static void weakCallback(v8::Persistent<v8::Value> object, void* ownHandle) 75 v8::Persistent<T> m_handle [all...] |
PageScriptDebugServer.cpp | 48 static Frame* retrieveFrame(v8::Handle<v8::Context> context) 54 v8::Handle<v8::Object> global = context->Global(); 87 v8::HandleScope scope; 88 v8::Local<v8::Context> debuggerContext = v8::Debug::GetDebugContext(); 89 v8::Context::Scope contextScope(debuggerContext); 94 v8::Debug::SetDebugEventListener2(&PageScriptDebugServer::v8DebugEventCallback, v8::External::New(thi (…) [all...] |
V8DataGridDataSource.h | 38 #include <v8.h> 49 static PassRefPtr<V8DataGridDataSource> create(v8::Handle<v8::Value> dataSource, Frame* frame) 57 v8::Handle<v8::Value> jsDataSource() const { return m_dataSource; } 60 V8DataGridDataSource(v8::Handle<v8::Value>, Frame*); 62 v8::Persistent<v8::Value> m_dataSource;
|
ScriptObject.cpp | 44 #include <v8.h> 48 ScriptObject::ScriptObject(ScriptState* scriptState, v8::Handle<v8::Object> v8Object) 54 v8::Local<v8::Object> ScriptObject::v8Object() const 57 return v8::Local<v8::Object>(v8::Object::Cast(*v8Value())); 63 scope.global()->Set(v8::String::New(name), value.v8Value()); 71 scope.global()->Set(v8::String::New(name), toV8(value)) [all...] |
V8Collection.cpp | 40 v8::Handle<v8::Value> toOptionsCollectionSetter(uint32_t index, v8::Handle<v8::Value> value, HTMLSelectElement* base) 55 HTMLOptionElement* element = V8HTMLOptionElement::toNative(v8::Handle<v8::Object>::Cast(value));
|
V8DOMWindowShell.cpp | 65 #include <v8-debug.h> 66 #include <v8.h> 69 #include <v8/src/extensions/experimental/i18n-extension.h> 83 // FIXME: We temporarily deal with V8 internal error situations 90 // V8 is shutdown, we cannot use V8 api. 97 printf("V8 error: %s (%s). Current memory usage: %d MB\n", message, location, memoryUsageMB); 101 static void v8UncaughtExceptionHandler(v8::Handle<v8::Message> message, v8::Handle<v8::Value> data [all...] |
NPV8Object.cpp | 81 static PassOwnArrayPtr<v8::Handle<v8::Value> > createValueListFromVariantArgs(const NPVariant* arguments, uint32_t argumentCount, NPObject* owner) 83 OwnArrayPtr<v8::Handle<v8::Value> > argv = adoptArrayPtr(new v8::Handle<v8::Value>[argumentCount]); 92 static v8::Local<v8::String> npIdentifierToV8Identifier(NPIdentifier name) 96 return v8::String::New(static_cast<const char*>(identifier->value.string)); 100 return v8::String::New(buffer) [all...] |
WorkerContextExecutionProxy.cpp | 58 // FIXME: We temporarily deal with V8 internal error situations such as out-of-memory by crashing the worker. 62 static void v8MessageHandler(v8::Handle<v8::Message> message, v8::Handle<v8::Value> data) 118 // Tell V8 not to call the default OOM handler, binding code will handle it. 119 v8::V8::IgnoreOutOfMemoryException(); 120 v8::V8::SetFatalErrorHandler(reportFatalErrorInV8) [all...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8GeolocationCustom.cpp | 43 static PassRefPtr<PositionOptions> createPositionOptions(v8::Local<v8::Value> value, bool& succeeded) 57 v8::Local<v8::Object> object = value->ToObject(); 63 v8::Local<v8::Value> enableHighAccuracyValue = object->Get(v8::String::New("enableHighAccuracy")); 69 v8::Local<v8::Boolean> enableHighAccuracyBoolean = enableHighAccuracyValue->ToBoolean(); 77 v8::Local<v8::Value> timeoutValue = object->Get(v8::String::New("timeout")) [all...] |
V8ConsoleCustom.cpp | 51 v8::Handle<v8::Value> V8Console::profilesAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 56 v8::Handle<v8::Array> result = v8::Array::New(profiles.size()); 60 result->Set(v8::Integer::New(index++), toV8(iter->get())); 65 v8::Handle<v8::Value> V8Console::traceCallback(const v8::Arguments& args [all...] |
V8MessageEventCustom.cpp | 45 v8::Handle<v8::Value> V8MessageEvent::portsAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 52 return v8::Null(); 54 v8::Local<v8::Array> portArray = v8::Array::New(ports->size()); 56 portArray->Set(v8::Integer::New(i), toV8((*ports)[i].get())) [all...] |
V8HTMLAudioElementConstructor.cpp | 49 static v8::Handle<v8::Value> v8HTMLAudioElementConstructorCallback(const v8::Arguments& args) 76 V8DOMWrapper::setJSWrapperForDOMNode(audio.get(), v8::Persistent<v8::Object>::New(args.Holder())); 80 v8::Persistent<v8::FunctionTemplate> V8HTMLAudioElementConstructor::GetTemplate() 82 static v8::Persistent<v8::FunctionTemplate> cachedTemplate; 86 v8::HandleScope scope [all...] |
V8HTMLImageElementConstructor.cpp | 49 static v8::Handle<v8::Value> v8HTMLImageElementConstructorCallback(const v8::Arguments& args) 87 V8DOMWrapper::setJSWrapperForDOMNode(image.get(), v8::Persistent<v8::Object>::New(args.Holder())); 91 v8::Persistent<v8::FunctionTemplate> V8HTMLImageElementConstructor::GetTemplate() 93 static v8::Persistent<v8::FunctionTemplate> cachedTemplate; 97 v8::HandleScope scope [all...] |
V8HTMLOptionElementConstructor.cpp | 49 static v8::Handle<v8::Value> v8HTMLOptionElementConstructorCallback(const v8::Arguments& args) 85 V8DOMWrapper::setJSWrapperForDOMNode(option.get(), v8::Persistent<v8::Object>::New(args.Holder())); 89 v8::Persistent<v8::FunctionTemplate> V8HTMLOptionElementConstructor::GetTemplate() 91 static v8::Persistent<v8::FunctionTemplate> cachedTemplate; 95 v8::HandleScope scope [all...] |
V8HTMLFrameSetElementCustom.cpp | 48 v8::Handle<v8::Value> V8HTMLFrameSetElement::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 56 return v8::Undefined();
|
V8WorkerCustom.cpp | 50 v8::Handle<v8::Value> V8Worker::constructorCallback(const v8::Arguments& args) 60 v8::TryCatch tryCatch; 61 v8::Handle<v8::String> scriptUrl = args[0]->ToString(); 66 return v8::Undefined(); 71 return v8::Undefined(); 81 v8::Handle<v8::Object> wrapperObject = args.Holder() [all...] |
V8DOMFormDataCustom.cpp | 43 v8::Handle<v8::Value> V8DOMFormData::constructorCallback(const v8::Arguments& args) 59 v8::Handle<v8::Value> V8DOMFormData::appendCallback(const v8::Arguments& args) 70 v8::Handle<v8::Value> arg = args[1]; 72 v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(arg) [all...] |
V8NodeListCustom.cpp | 44 v8::Handle<v8::Value> V8NodeList::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 53 return v8::Integer::New(list->length()); 63 v8::Handle<v8::Value> V8NodeList::callAsFunctionCallback(const v8::Arguments& args) 67 return v8::Undefined() [all...] |
V8HTMLOptionsCollectionCustom.cpp | 47 v8::Handle<v8::Value> V8HTMLOptionsCollection::removeCallback(const v8::Arguments& args) 55 v8::Handle<v8::Value> V8HTMLOptionsCollection::addCallback(const v8::Arguments& args) 60 return v8::Undefined(); 63 HTMLOptionElement* option = V8HTMLOptionElement::toNative(v8::Handle<v8::Object>(v8::Handle<v8::Object>::Cast(args[0]))) [all...] |
/external/v8/src/ |
api.h | 1 // Copyright 2012 the V8 project authors. All rights reserved. 31 #include "v8.h" 33 #include "../include/v8-testing.h" 40 namespace v8 { namespace 44 // we want to keep them out of v8.h because it is an externally 60 explicit inline NeanderObject(v8::internal::Handle<v8::internal::Object> obj); 61 explicit inline NeanderObject(v8::internal::Object* obj); 62 inline v8::internal::Object* get(int index); 63 inline void set(int index, v8::internal::Object* value) [all...] |
/external/v8/src/extensions/ |
externalize-string-extension.cc | 1 // Copyright 2010 the V8 project authors. All rights reserved. 30 namespace v8 { namespace 53 typedef SimpleStringResource<char, v8::String::ExternalAsciiStringResource> 55 typedef SimpleStringResource<uc16, v8::String::ExternalStringResource> 64 v8::Handle<v8::FunctionTemplate> ExternalizeStringExtension::GetNativeFunction( 65 v8::Handle<v8::String> str) { 66 if (strcmp(*v8::String::AsciiValue(str), "externalizeString") == 0) { 67 return v8::FunctionTemplate::New(ExternalizeStringExtension::Externalize) [all...] |