/external/v8/test/cctest/ |
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...] |
test-accessors.cc | 1 // Copyright 2009 the V8 project authors. All rights reserved. 30 #include "v8.h" 37 using ::v8::ObjectTemplate; 38 using ::v8::Value; 39 using ::v8::Context; 40 using ::v8::Local; 41 using ::v8::String; 42 using ::v8::Script; 43 using ::v8::Function; 44 using ::v8::AccessorInfo [all...] |
/external/webkit/Source/WebCore/bindings/v8/ |
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...] |
V8Proxy.cpp | 91 void batchConfigureAttributes(v8::Handle<v8::ObjectTemplate> instance, 92 v8::Handle<v8::ObjectTemplate> proto, 100 void batchConfigureCallbacks(v8::Handle<v8::ObjectTemplate> proto, 101 v8::Handle<v8::Signature> signature, 102 v8::PropertyAttribute attributes, 107 proto->Set(v8::String::New(callbacks[i].name) [all...] |
ScriptInstance.cpp | 45 V8ScriptInstance::V8ScriptInstance(v8::Handle<v8::Object> instance) 55 v8::Persistent<v8::Object> V8ScriptInstance::instance() 71 void V8ScriptInstance::set(v8::Handle<v8::Object> instance) 77 m_instance = v8::Persistent<v8::Object>::New(instance);
|
V8DOMWrapper.cpp | 93 #include <v8-debug.h> 101 typedef HashMap<Node*, v8::Object*> DOMNodeMap; 102 typedef HashMap<void*, v8::Object*> DOMObjectMap; 105 void V8DOMWrapper::setJSWrapperForDOMObject(void* object, v8::Persistent<v8::Object> wrapper) 113 void V8DOMWrapper::setJSWrapperForActiveDOMObject(void* object, v8::Persistent<v8::Object> wrapper) 121 void V8DOMWrapper::setJSWrapperForDOMNode(Node* node, v8::Persistent<v8::Object> wrapper) 127 v8::Local<v8::Function> V8DOMWrapper::getConstructor(WrapperTypeInfo* type, v8::Handle<v8::Value> obj (…) [all...] |
ScriptHeapSnapshot.h | 36 namespace v8 { namespace 53 static PassRefPtr<ScriptHeapSnapshot> create(const v8::HeapSnapshot* snapshot) 64 ScriptHeapSnapshot(const v8::HeapSnapshot* snapshot) 68 const v8::HeapSnapshot* m_snapshot;
|
/external/webkit/Source/WebCore/bindings/v8/custom/ |
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...] |
V8HTMLCanvasElementCustom.cpp | 51 v8::Handle<v8::Value> V8HTMLCanvasElement::getContextCallback(const v8::Arguments& args) 54 v8::Handle<v8::Object> holder = args.Holder(); 63 v8::Handle<v8::Object> jsAttrs = args[1]->ToObject(); 64 v8::Handle<v8::String> alpha = v8::String::New("alpha") [all...] |
V8NodeCustom.cpp | 61 v8::Handle<v8::Value> V8Node::insertBeforeCallback(const v8::Arguments& args) 64 v8::Handle<v8::Object> holder = args.Holder(); 67 Node* newChild = V8Node::HasInstance(args[0]) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0; 68 Node* refChild = V8Node::HasInstance(args[1]) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0; 72 return v8::Handle<v8::Value>() [all...] |
/hardware/ril/mock-ril/src/cpp/ |
util.cpp | 17 #include <v8.h> 23 // Extracts a C string from a V8 Utf8Value. 24 const char* ToCString(const v8::String::Utf8Value& value) { 28 // Extracts a C string from a V8 AsciiValue. 29 const char* ToCString(const v8::String::AsciiValue& value) { 33 // Extracts a C string from a v8::Value 34 const char* ToCString(v8::Handle<v8::Value> value) { 35 v8::String::AsciiValue strAsciiValue(value); 40 void LogErrorMessage(v8::Handle<v8::Message> message [all...] |
mock_ril.cpp | 32 #include <v8.h> 218 v8::Handle<v8::Context> context_; 221 UnsolicitedThread(v8::Handle<v8::Context> context) : 226 v8::HandleScope handle_scope; 229 v8::Handle<v8::String> name = v8::String::New("onUnsolicitedTick"); 230 v8::Handle<v8::Value> functionValue = context_->Global()->Get(name) [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...] |
/external/webkit/Source/WebKit/chromium/tests/ |
IDBBindingUtilitiesTest.cpp | 44 : m_context(v8::Context::New()) 56 v8::HandleScope m_scope; 57 v8::Persistent<v8::Context> m_context; 117 v8::Local<v8::Object> object = v8::Object::New(); 118 object->Set(v8::String::New("foo"), v8::String::New("zoo")); 130 v8::Local<v8::Object> object = v8::Object::New() [all...] |
/external/chromium/net/proxy/ |
proxy_resolver_v8.cc | 25 #include "v8/include/v8.h" 85 // External string wrapper so V8 can access the UTF16 string wrapped by 88 : public v8::String::ExternalStringResource { 107 // External string wrapper so V8 can access a string literal. 108 class V8ExternalASCIILiteral : public v8::String::ExternalAsciiStringResource { 131 // When creating a v8::String from a C++ string we have two choices: create 138 // Converts a V8 String to a UTF8 std::string. 139 std::string V8StringToUTF8(v8::Handle<v8::String> s) [all...] |
/external/webkit/Source/WebKit/chromium/public/ |
WebScriptController.h | 36 namespace v8 { namespace 46 // Registers a v8 extension to be available on webpages. The three forms 52 // Will only affect v8 contexts initialized after this call. Takes ownership 53 // of the v8::Extension object passed. 54 WEBKIT_API static void registerExtension(v8::Extension*); 56 // Enables special settings which are only applicable if V8 is executed
|
/dalvik/dx/tests/096-dex-giant-catch/ |
Blort.java | 19 long v5, long v6, long v7, long v8) {
|
/external/v8/src/ |
rewriter.h | 1 // Copyright 2011 the V8 project authors. All rights reserved. 31 namespace v8 { namespace 48 } } // namespace v8::internal
|