Home
last modified time | relevance | path

Searched refs:v8 (Results 1 – 25 of 650) sorted by relevance

12345678910>>...26

/external/v8/test/cctest/
Dtest-thread-termination.cc33 v8::internal::Semaphore* semaphore = NULL;
36 v8::Handle<v8::Value> Signal(const v8::Arguments& args) { in Signal()
38 return v8::Undefined(); in Signal()
42 v8::Handle<v8::Value> TerminateCurrentThread(const v8::Arguments& args) { in TerminateCurrentThread()
43 v8::V8::TerminateExecution(); in TerminateCurrentThread()
44 return v8::Undefined(); in TerminateCurrentThread()
48 v8::Handle<v8::Value> Fail(const v8::Arguments& args) { in Fail()
50 return v8::Undefined(); in Fail()
54 v8::Handle<v8::Value> Loop(const v8::Arguments& args) { in Loop()
55 v8::Handle<v8::String> source = in Loop()
[all …]
Dtest-debug.cc40 using ::v8::internal::EmbeddedVector;
41 using ::v8::internal::Object;
42 using ::v8::internal::OS;
43 using ::v8::internal::Handle;
44 using ::v8::internal::Heap;
45 using ::v8::internal::JSGlobalProxy;
46 using ::v8::internal::Code;
47 using ::v8::internal::Debug;
48 using ::v8::internal::Debugger;
49 using ::v8::internal::CommandMessage;
[all …]
Dtest-api.cc51 using ::v8::ObjectTemplate;
52 using ::v8::Value;
53 using ::v8::Context;
54 using ::v8::Local;
55 using ::v8::String;
56 using ::v8::Script;
57 using ::v8::Function;
58 using ::v8::AccessorInfo;
59 using ::v8::Extension;
61 namespace i = ::v8::internal;
[all …]
Dtest-accessors.cc37 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;
45 using ::v8::Extension;
47 namespace i = ::v8::internal;
[all …]
/external/webkit/WebCore/
DAndroid.v8bindings.mk29 external/v8/include \
31 $(LOCAL_PATH)/bindings/v8 \
32 $(LOCAL_PATH)/bindings/v8/custom \
33 $(LOCAL_PATH)/bindings/v8/specialization \
36 $(LOCAL_PATH)/bridge/jni/v8 \
48 bindings/v8/ChildThreadDOMData.cpp \
49 bindings/v8/DateExtension.cpp \
50 bindings/v8/DOMData.cpp \
51 bindings/v8/DOMDataStore.cpp \
52 bindings/v8/DOMWrapperWorld.cpp \
[all …]
/external/v8/samples/
Dshell.cc35 void RunShell(v8::Handle<v8::Context> context);
36 bool ExecuteString(v8::Handle<v8::String> source,
37 v8::Handle<v8::Value> name,
40 v8::Handle<v8::Value> Print(const v8::Arguments& args);
41 v8::Handle<v8::Value> Read(const v8::Arguments& args);
42 v8::Handle<v8::Value> Load(const v8::Arguments& args);
43 v8::Handle<v8::Value> Quit(const v8::Arguments& args);
44 v8::Handle<v8::Value> Version(const v8::Arguments& args);
45 v8::Handle<v8::String> ReadFile(const char* name);
46 void ReportException(v8::TryCatch* handler);
[all …]
Dlineprocessor.cc96 const char* ToCString(const v8::String::Utf8Value& value);
97 void ReportException(v8::TryCatch* handler);
98 v8::Handle<v8::String> ReadFile(const char* name);
99 v8::Handle<v8::String> ReadLine();
101 v8::Handle<v8::Value> Print(const v8::Arguments& args);
102 v8::Handle<v8::Value> ReadLine(const v8::Arguments& args);
103 bool RunCppCycle(v8::Handle<v8::Script> script, v8::Local<v8::Context> context,
106 v8::Persistent<v8::Context> debug_message_context;
121 v8::Context::Scope scope(debug_message_context); in DispatchDebugMessages()
123 v8::Debug::ProcessDebugMessages(); in DispatchDebugMessages()
[all …]
/external/webkit/WebCore/bindings/v8/custom/
DV8LocationCustom.cpp62 void V8Location::hashAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v… in hashAccessorSetter()
65 v8::Handle<v8::Object> holder = info.Holder(); in hashAccessorSetter()
85 void V8Location::hostAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v… in hostAccessorSetter()
88 v8::Handle<v8::Object> holder = info.Holder(); in hostAccessorSetter()
105 void V8Location::hostnameAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, con… in hostnameAccessorSetter()
108 v8::Handle<v8::Object> holder = info.Holder(); in hostnameAccessorSetter()
122 void V8Location::hrefAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v… in hrefAccessorSetter()
125 v8::Handle<v8::Object> holder = info.Holder(); in hrefAccessorSetter()
142 void V8Location::pathnameAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, con… in pathnameAccessorSetter()
145 v8::Handle<v8::Object> holder = info.Holder(); in pathnameAccessorSetter()
[all …]
DV8HTMLPlugInElementCustom.cpp48 static v8::Handle<v8::Value> npObjectNamedGetter(v8::Local<v8::String> name, const v8::AccessorInfo… in npObjectNamedGetter()
55 v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance()); in npObjectNamedGetter()
63 static v8::Handle<v8::Value> npObjectNamedSetter(v8::Local<v8::String> name, v8::Local<v8::Value> v… in npObjectNamedSetter()
70 v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance()); in npObjectNamedSetter()
77 v8::Handle<v8::Value> V8HTMLAppletElement::namedPropertyGetter(v8::Local<v8::String> name, const v8 in namedPropertyGetter()
83 v8::Handle<v8::Value> V8HTMLEmbedElement::namedPropertyGetter(v8::Local<v8::String> name, const v8:… in namedPropertyGetter()
89 v8::Handle<v8::Value> V8HTMLObjectElement::namedPropertyGetter(v8::Local<v8::String> name, const v8 in namedPropertyGetter()
95 v8::Handle<v8::Value> V8HTMLAppletElement::namedPropertySetter(v8::Local<v8::String> name, v8::Loca… in namedPropertySetter()
101 v8::Handle<v8::Value> V8HTMLEmbedElement::namedPropertySetter(v8::Local<v8::String> name, v8::Local… in namedPropertySetter()
107 v8::Handle<v8::Value> V8HTMLObjectElement::namedPropertySetter(v8::Local<v8::String> name, v8::Loca… in namedPropertySetter()
[all …]
DV8InjectedScriptHostCustom.cpp53 static void WeakReferenceCallback(v8::Persistent<v8::Value> object, void* parameter) in WeakReferenceCallback()
60 static v8::Local<v8::Object> createInjectedScriptHostV8Wrapper(InjectedScriptHost* host) in createInjectedScriptHostV8Wrapper()
63 v8::Local<v8::Function> function = V8InjectedScriptHost::GetTemplate()->GetFunction(); in createInjectedScriptHostV8Wrapper()
66 return v8::Local<v8::Object>(); in createInjectedScriptHostV8Wrapper()
68 v8::Local<v8::Object> instance = SafeAllocation::newInstance(function); in createInjectedScriptHostV8Wrapper()
71 return v8::Local<v8::Object>(); in createInjectedScriptHostV8Wrapper()
77 v8::Persistent<v8::Object> weakHandle = v8::Persistent<v8::Object>::New(instance); in createInjectedScriptHostV8Wrapper()
84 v8::HandleScope scope; in createInjectedScript()
86 v8::Local<v8::Context> inspectedContext = inspectedScriptState->context(); in createInjectedScript()
87 v8::Context::Scope contextScope(inspectedContext); in createInjectedScript()
[all …]
DV8StorageCustom.cpp43 v8::Handle<v8::Array> V8Storage::namedPropertyEnumerator(const v8::AccessorInfo& info) in namedPropertyEnumerator()
47 v8::Handle<v8::Array> properties = v8::Array::New(length); in namedPropertyEnumerator()
52 properties->Set(v8::Integer::New(i), v8String(key)); in namedPropertyEnumerator()
58 static v8::Handle<v8::Value> storageGetter(v8::Local<v8::String> v8Name, const v8::AccessorInfo& in… in storageGetter()
69 v8::Handle<v8::Value> V8Storage::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info) in indexedPropertyGetter()
72 v8::Local<v8::Integer> indexV8 = v8::Integer::New(index); in indexedPropertyGetter()
76 v8::Handle<v8::Value> V8Storage::namedPropertyGetter(v8::Local<v8::String> name, const v8::Accessor… in namedPropertyGetter()
82 static v8::Handle<v8::Value> storageSetter(v8::Local<v8::String> v8Name, v8::Local<v8::Value> v8Val… in storageSetter()
92v8::Handle<v8::Value> prototypeValue = info.Holder()->GetRealNamedPropertyInPrototypeChain(v8Name); in storageSetter()
104 v8::Handle<v8::Value> V8Storage::indexedPropertySetter(uint32_t index, v8::Local<v8::Value> value, … in indexedPropertySetter()
[all …]
DV8DOMWindowCustom.cpp74 v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments& args, bool singleShot) in WindowSetTimeoutImpl()
79 return v8::Undefined(); in WindowSetTimeoutImpl()
86 return v8::Undefined(); in WindowSetTimeoutImpl()
89 v8::Handle<v8::Value> function = args[0]; in WindowSetTimeoutImpl()
95 v8::Handle<v8::Value> v8String = function->ToString(); in WindowSetTimeoutImpl()
99 return v8::Undefined(); in WindowSetTimeoutImpl()
107 return v8::Undefined(); in WindowSetTimeoutImpl()
115 return v8::Undefined(); in WindowSetTimeoutImpl()
120 v8::Local<v8::Value>* params = 0; in WindowSetTimeoutImpl()
122 params = new v8::Local<v8::Value>[paramCount]; in WindowSetTimeoutImpl()
[all …]
DV8HTMLDocumentCustom.cpp52 v8::Handle<v8::Boolean> V8HTMLDocument::namedPropertyDeleter(v8::Local<v8::String> name, const v8::… in namedPropertyDeleter()
63 v8::Local<v8::Value> marker = info.Holder()->GetInternalField(V8HTMLDocument::markerIndex); in namedPropertyDeleter()
65 return v8::True(); in namedPropertyDeleter()
68 v8::Handle<v8::Value> V8HTMLDocument::namedPropertyGetter(v8::Local<v8::String> name, const v8::Acc… in namedPropertyGetter()
79 v8::Local<v8::Value> marker = info.Holder()->GetInternalField(V8HTMLDocument::markerIndex); in namedPropertyGetter()
80 v8::Local<v8::Value> value = info.Holder()->GetInternalField(V8HTMLDocument::shadowIndex); in namedPropertyGetter()
89 return v8::Handle<v8::Value>(); in namedPropertyGetter()
107 v8::Handle<v8::Value> V8HTMLDocument::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo … in indexedPropertyGetter()
110 v8::Local<v8::Integer> indexV8 = v8::Integer::NewFromUnsigned(index); in indexedPropertyGetter()
120 static String writeHelperGetString(const v8::Arguments& args) in writeHelperGetString()
[all …]
/external/webkit/WebCore/bindings/v8/
DV8Proxy.h77 v8::AccessorGetter getter;
78 v8::AccessorSetter setter;
80 v8::AccessControl settings;
81 v8::PropertyAttribute attribute;
85 …void batchConfigureAttributes(v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::ObjectTemplate>, cons…
87 …inline void configureAttribute(v8::Handle<v8::ObjectTemplate> instance, v8::Handle<v8::ObjectTempl… in configureAttribute()
89 (attribute.onProto ? proto : instance)->SetAccessor(v8::String::New(attribute.name), in configureAttribute()
92 …attribute.data == V8ClassIndex::INVALID_CLASS_INDEX ? v8::Handle<v8::Value>() : v8::Integer::New(V… in configureAttribute()
105 …void batchConfigureConstants(v8::Handle<v8::FunctionTemplate>, v8::Handle<v8::ObjectTemplate>, con…
109 v8::InvocationCallback callback;
[all …]
DV8Proxy.cpp83 v8::Persistent<v8::Context> V8Proxy::m_utilityContext;
88 void batchConfigureAttributes(v8::Handle<v8::ObjectTemplate> instance, in batchConfigureAttributes()
89 v8::Handle<v8::ObjectTemplate> proto, in batchConfigureAttributes()
97 void batchConfigureCallbacks(v8::Handle<v8::ObjectTemplate> proto, in batchConfigureCallbacks()
98 v8::Handle<v8::Signature> signature, in batchConfigureCallbacks()
99 v8::PropertyAttribute attributes, in batchConfigureCallbacks()
104 proto->Set(v8::String::New(callbacks[i].name), in batchConfigureCallbacks()
105 v8::FunctionTemplate::New(callbacks[i].callback, in batchConfigureCallbacks()
106 v8::Handle<v8::Value>(), in batchConfigureCallbacks()
112 void batchConfigureConstants(v8::Handle<v8::FunctionTemplate> functionDescriptor, in batchConfigureConstants()
[all …]
DV8Binding.cpp53 class WebCoreStringResource : public v8::String::ExternalStringResource {
62 v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * string.length()); in WebCoreStringResource()
73 v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * string.length()); in WebCoreStringResource()
84 v8::V8::AdjustAmountOfExternalAllocatedMemory(reducedExternalMemory); in ~WebCoreStringResource()
105 v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * m_atomicString.length()); in atomicString()
110 static WebCoreStringResource* toStringResource(v8::Handle<v8::String> v8String) in toStringResource()
130 String v8ValueToWebCoreString(v8::Handle<v8::Value> value) in v8ValueToWebCoreString()
133 return v8StringToWebCoreString(v8::Handle<v8::String>::Cast(value)); in v8ValueToWebCoreString()
137 AtomicString v8ValueToAtomicWebCoreString(v8::Handle<v8::Value> value) in v8ValueToAtomicWebCoreString()
140 return v8StringToAtomicWebCoreString(v8::Handle<v8::String>::Cast(value)); in v8ValueToAtomicWebCoreString()
[all …]
DV8NPObject.cpp59 static v8::Handle<v8::Value> npObjectInvokeImpl(const v8::Arguments& args, InvokeFunctionType funct… in npObjectInvokeImpl()
106 v8::Handle<v8::String> functionName(v8::String::Cast(*args.Data())); in npObjectInvokeImpl()
130 v8::Handle<v8::Value> returnValue = convertNPVariantToV8Object(&result, npObject); in npObjectInvokeImpl()
137 v8::Handle<v8::Value> npObjectMethodHandler(const v8::Arguments& args) in npObjectMethodHandler()
143 v8::Handle<v8::Value> npObjectInvokeDefaultHandler(const v8::Arguments& args) in npObjectInvokeDefaultHandler()
152 static void weakTemplateCallback(v8::Persistent<v8::Value>, void* parameter);
155 static WeakReferenceMap<PrivateIdentifier, v8::FunctionTemplate> staticTemplateMap(&weakTemplateCal…
157 static void weakTemplateCallback(v8::Persistent<v8::Value> object, void* parameter) in weakTemplateCallback()
167 static v8::Handle<v8::Value> npObjectGetProperty(v8::Local<v8::Object> self, NPIdentifier identifie… in npObjectGetProperty()
183 return v8::Handle<v8::Value>(); in npObjectGetProperty()
[all …]
DV8Binding.h52 typedef v8::Handle<v8::Value> Value;
64 StringType v8StringToWebCoreString(v8::Handle<v8::String> v8String, ExternalMode external);
69 inline String v8StringToWebCoreString(v8::Handle<v8::String> v8String) in v8StringToWebCoreString()
73 String v8NonStringValueToWebCoreString(v8::Handle<v8::Value>);
74 String v8ValueToWebCoreString(v8::Handle<v8::Value> value);
77 inline AtomicString v8StringToAtomicWebCoreString(v8::Handle<v8::String> v8String) in v8StringToAtomicWebCoreString()
81 AtomicString v8NonStringValueToAtomicWebCoreString(v8::Handle<v8::Value>);
82 AtomicString v8ValueToAtomicWebCoreString(v8::Handle<v8::Value> value);
87 v8::Local<v8::String> v8ExternalString(const String&);
90 inline v8::Handle<v8::String> v8String(const String& string) in v8String()
[all …]
DV8NPObject.h44 v8::Handle<v8::Value> npObjectNamedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInf…
45 v8::Handle<v8::Value> npObjectIndexedPropertyGetter(uint32_t index, const v8::AccessorInfo&);
46 v8::Handle<v8::Value> npObjectGetNamedProperty(v8::Local<v8::Object> self, v8::Local<v8::String> na…
47 v8::Handle<v8::Value> npObjectGetIndexedProperty(v8::Local<v8::Object> self, uint32_t index);
50 v8::Handle<v8::Value> npObjectNamedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>,…
51 v8::Handle<v8::Value> npObjectIndexedPropertySetter(uint32_t index, const v8::AccessorInfo&);
52 v8::Handle<v8::Value> npObjectSetNamedProperty(v8::Local<v8::Object> self, v8::Local<v8::String> na…
53 v8::Handle<v8::Value> npObjectSetIndexedProperty(v8::Local<v8::Object> self, uint32_t index, v8::Lo…
55 v8::Handle<v8::Value> npObjectInvokeDefaultHandler(const v8::Arguments&);
60 v8::Local<v8::Object> createV8ObjectForNPObject(NPObject*, NPObject* root);
DNPV8Object.cpp79 static v8::Handle<v8::Value>* createValueListFromVariantArgs(const NPVariant* arguments, uint32_t a… in createValueListFromVariantArgs()
81 v8::Handle<v8::Value>* argv = new v8::Handle<v8::Value>[argumentCount]; in createValueListFromVariantArgs()
90 static v8::Local<v8::String> npIdentifierToV8Identifier(NPIdentifier name) in npIdentifierToV8Identifier()
94 return v8::String::New(static_cast<const char*>(identifier->value.string)); in npIdentifierToV8Identifier()
98 return v8::String::New(buffer); in npIdentifierToV8Identifier()
101 NPObject* v8ObjectToNPObject(v8::Handle<v8::Object> object) in v8ObjectToNPObject()
114 NPObject* npCreateV8ScriptObject(NPP npp, v8::Handle<v8::Object> object, WebCore::DOMWindow* root) in npCreateV8ScriptObject()
118 v8::Local<v8::Value> typeIndex = object->GetInternalField(WebCore::v8DOMWrapperTypeIndex); in npCreateV8ScriptObject()
128 v8npObject->v8Object = v8::Persistent<v8::Object>::New(object); in npCreateV8ScriptObject()
155 v8::HandleScope handleScope; in _NPN_Invoke()
[all …]
DV8DOMWrapper.cpp86 typedef HashMap<Node*, v8::Object*> DOMNodeMap;
87 typedef HashMap<void*, v8::Object*> DOMObjectMap;
90 void V8DOMWrapper::setIndexedPropertiesToExternalArray(v8::Handle<v8::Object> wrapper, in setIndexedPropertiesToExternalArray()
95 v8::ExternalArrayType array_type = v8::kExternalByteArray; in setIndexedPropertiesToExternalArray()
99 array_type = v8::kExternalByteArray; in setIndexedPropertiesToExternalArray()
102 array_type = v8::kExternalUnsignedByteArray; in setIndexedPropertiesToExternalArray()
105 array_type = v8::kExternalShortArray; in setIndexedPropertiesToExternalArray()
108 array_type = v8::kExternalUnsignedShortArray; in setIndexedPropertiesToExternalArray()
111 array_type = v8::kExternalIntArray; in setIndexedPropertiesToExternalArray()
114 array_type = v8::kExternalUnsignedIntArray; in setIndexedPropertiesToExternalArray()
[all …]
/external/webkit/WebKit/chromium/src/
DWebDevToolsFrontendImpl.cpp71 static v8::Local<v8::String> ToV8String(const String& s) in ToV8String()
74 return v8::Local<v8::String>(); in ToV8String()
76 return v8::String::New(reinterpret_cast<const uint16_t*>(s.characters()), s.length()); in ToV8String()
104 v8::HandleScope scope; in WebDevToolsFrontendImpl()
105 v8::Handle<v8::Context> frameContext = V8Proxy::context(frame->frame()); in WebDevToolsFrontendImpl()
190 v8::HandleScope scope; in executeScript()
191 v8::Handle<v8::Context> frameContext = V8Proxy::context(frame->frame()); in executeScript()
192 v8::Context::Scope contextScope(frameContext); in executeScript()
193v8::Handle<v8::Value> dispatchFunction = frameContext->Global()->Get(v8::String::New("devtools$$di… in executeScript()
195 v8::Handle<v8::Function> function = v8::Handle<v8::Function>::Cast(dispatchFunction); in executeScript()
[all …]
DDebuggerAgentImpl.cpp85 v8::Debug::ProcessDebugMessages(); in processDebugCommands()
95 void DebuggerAgentImpl::createUtilityContext(Frame* frame, v8::Persistent<v8::Context>* context) in createUtilityContext()
97 v8::HandleScope scope; in createUtilityContext()
101 v8::Handle<v8::Context> windowContext = V8Proxy::context(frame); in createUtilityContext()
102 v8::Handle<v8::Object> windowGlobal; in createUtilityContext()
103 v8::Handle<v8::Object> windowWrapper; in createUtilityContext()
114 v8::Handle<v8::ObjectTemplate> globalTemplate = v8::ObjectTemplate::New(); in createUtilityContext()
127 v8::Integer::New(V8ClassIndex::DOMWINDOW)); in createUtilityContext()
132 *context = v8::Context::New(0 /* no extensions */, globalTemplate, v8::Handle<v8::Object>()); in createUtilityContext()
133 v8::Context::Scope contextScope(*context); in createUtilityContext()
[all …]
/external/chromium/net/proxy/
Dproxy_resolver_v8.cc72 std::string V8StringToStdString(v8::Handle<v8::String> s) { in V8StringToStdString()
80 v8::Local<v8::String> StdStringToV8String(const std::string& s) { in StdStringToV8String()
81 return v8::String::New(s.data(), s.size()); in StdStringToV8String()
86 bool V8ObjectToString(v8::Handle<v8::Value> object, std::string* result) { in V8ObjectToString()
90 v8::HandleScope scope; in V8ObjectToString()
91 v8::Local<v8::String> str_object = object->ToString(); in V8ObjectToString()
110 v8::Locker locked; in ~Context()
117 v8::Locker locked; in ResolveProxy()
118 v8::HandleScope scope; in ResolveProxy()
120 v8::Context::Scope function_scope(v8_context_); in ResolveProxy()
[all …]
/external/v8/src/
Dapi.h34 namespace v8 {
54 inline NeanderObject(v8::internal::Handle<v8::internal::Object> obj);
55 inline NeanderObject(v8::internal::Object* obj);
56 inline v8::internal::Object* get(int index);
57 inline void set(int index, v8::internal::Object* value);
58 inline v8::internal::Handle<v8::internal::JSObject> value() { return value_; } in value()
61 v8::internal::Handle<v8::internal::JSObject> value_;
70 inline NeanderArray(v8::internal::Handle<v8::internal::Object> obj);
71 inline v8::internal::Handle<v8::internal::JSObject> value() { in value()
75 void add(v8::internal::Handle<v8::internal::Object> value);
[all …]

12345678910>>...26