/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
H A D | DOMWrapperMap.h | 71 void set(KeyType* key, v8::Handle<v8::Object> wrapper, const WrapperTypeInfo* wrapperTypeInfo) argument 73 ASSERT(reinterpret_cast<KeyType*>(toScriptWrappableBase(wrapper)) == key); 75 v8::UniquePersistent<v8::Object> unique(m_isolate, wrapper);
|
H A D | DOMWrapperWorld.h | 134 DOMObjectHolderBase(v8::Isolate* isolate, v8::Handle<v8::Value> wrapper) argument 135 : m_wrapper(isolate, wrapper) 156 static PassOwnPtr<DOMObjectHolder<T> > create(v8::Isolate* isolate, T* object, v8::Handle<v8::Value> wrapper) argument 158 return adoptPtr(new DOMObjectHolder(isolate, object, wrapper)); 162 DOMObjectHolder(v8::Isolate* isolate, T* object, v8::Handle<v8::Value> wrapper) argument 163 : DOMObjectHolderBase(isolate, wrapper) 173 void registerDOMObjectHolder(v8::Isolate* isolate, T* object, v8::Handle<v8::Value> wrapper) argument 175 registerDOMObjectHolderInternal(DOMObjectHolder<T>::create(isolate, object, wrapper));
|
H A D | DictionaryHelperForCore.cpp | 261 // We need to handle a DOMWindow specially, because a DOMWindow wrapper 319 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value); local 323 v8::Handle<v8::Object> track = V8TextTrack::findInstanceInPrototypeChain(wrapper, dictionary.isolate()); 339 // We need to handle a LocalDOMWindow specially, because a LocalDOMWindow wrapper 342 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value); local 343 v8::Handle<v8::Object> window = V8Window::findInstanceInPrototypeChain(wrapper, dictionary.isolate()); 351 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value); local 352 value = toWrapperTypeInfo(wrapper)->toEventTarget(wrapper);
|
H A D | ScriptFunction.cpp | 15 v8::Handle<v8::External> wrapper = v8::External::New(isolate, this); local 16 m_scriptState->world().registerDOMObjectHolder(isolate, this, wrapper); 17 return createClosure(&ScriptFunction::callCallback, wrapper, isolate);
|
H A D | ScriptProfiler.cpp | 114 v8::Handle<v8::Value> wrapper = object->GetInternalField(v8DOMWrapperObjectIndex); local 115 // Skip wrapper boilerplates which are like regular wrappers but don't have 117 if (!wrapper.IsEmpty() && wrapper->IsUndefined()) 245 static v8::RetainedObjectInfo* retainedDOMInfo(uint16_t classId, v8::Handle<v8::Value> wrapper) argument 248 if (!wrapper->IsObject()) 250 Node* node = V8Node::toImpl(wrapper.As<v8::Object>()); 283 v8::Handle<v8::Object>* wrapper = reinterpret_cast<v8::Handle<v8::Object>*>(value); 284 ASSERT_UNUSED(m_isolate, V8Node::hasInstance(*wrapper, m_isolate)); 285 ASSERT((*wrapper) [all...] |
H A D | ScriptPromisePropertyBase.cpp | 46 v8::Handle<v8::Object> wrapper = ensureHolderWrapper(scriptState); local 47 ASSERT(wrapper->CreationContext() == context); 49 v8::Handle<v8::Value> cachedPromise = V8HiddenValue::getHiddenValue(m_isolate, wrapper, promiseName()); 56 V8HiddenValue::setHiddenValue(m_isolate, wrapper, promiseName(), promise); 61 V8HiddenValue::setHiddenValue(m_isolate, wrapper, resolverName(), resolver); 85 // wrapper has died. 91 v8::Local<v8::Object> wrapper = persistent->newLocal(m_isolate); local 92 ScriptState::Scope scope(ScriptState::from(wrapper->CreationContext())); 94 v8::Local<v8::Promise::Resolver> resolver = V8HiddenValue::getHiddenValue(m_isolate, wrapper, resolverName()).As<v8::Promise::Resolver>(); 96 V8HiddenValue::deleteHiddenValue(m_isolate, wrapper, resolverNam 137 v8::Local<v8::Object> wrapper = persistent->newLocal(m_isolate); local 142 v8::Local<v8::Object> wrapper = holder(context->Global(), m_isolate); local 154 v8::Local<v8::Object> wrapper = (*i)->newLocal(m_isolate); local [all...] |
H A D | ScriptWrappable.cpp | 53 // It's possible that no one except for the new wrapper owns this object at 55 // object gets associated with the wrapper. 60 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, wrapperTypeInfo, toScriptWrappableBase(), isolate); local 61 if (UNLIKELY(wrapper.IsEmpty())) 62 return wrapper; 64 wrapperTypeInfo->installConditionallyEnabledProperties(wrapper, isolate); 65 return associateWithWrapper(wrapperTypeInfo, wrapper, isolate); 68 v8::Handle<v8::Object> ScriptWrappable::associateWithWrapper(const WrapperTypeInfo* wrapperTypeInfo, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) argument 70 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperTypeInfo, wrapper, isolate);
|
H A D | ScriptWrappable.h | 44 * This class provides the internal pointer to be stored in the wrapper objects, 120 // Creates and returns a new wrapper object. 123 // Associates the instance with the existing wrapper. Returns |wrapper|. 124 virtual v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper, v8::Isolate*); 126 void setWrapper(v8::Handle<v8::Object> wrapper, v8::Isolate* isolate, const WrapperTypeInfo* wrapperTypeInfo) argument 129 if (!*wrapper) { 133 v8::Persistent<v8::Object> persistent(isolate, wrapper); 182 v8::Persistent<v8::Object> wrapper; local 183 getPersistent(&wrapper); 257 disposeWrapper(v8::Local<v8::Object> wrapper) argument [all...] |
H A D | SerializedScriptValue.cpp | 909 v8::Handle<v8::Value> wrapper = toV8(impl, creationContext, isolate); 910 ASSERT(wrapper->IsObject()); 911 return wrapper.As<v8::Object>(); 918 v8::Handle<v8::Value> wrapper = toV8(impl, creationContext, isolate); 919 ASSERT(wrapper->IsArrayBuffer()); 920 return wrapper.As<v8::ArrayBuffer>(); 1388 // This should be safe: we serialize something that we know to be a wrapper (see 1453 // FIXME: check not a wrapper 1508 // them; conveniently, this is also a quick way to detect DOM wrapper objects, because 2891 v8::Handle<v8::Object> wrapper local 2898 v8::Handle<v8::Object> wrapper = DOMWrapperWorld::current(isolate).domDataStore().get<V8ArrayBuffer>(object, isolate); local [all...] |
H A D | V8DOMWrapper.cpp | 44 static v8::Local<v8::Object> wrapInShadowTemplate(v8::Local<v8::Object> wrapper, ScriptWrappableBase* internalPointer, v8::Isolate* isolate) argument 66 shadow->SetPrototype(wrapper); 67 V8DOMWrapper::setNativeInfoForHiddenWrapper(wrapper, &V8HTMLDocument::wrapperTypeInfo, internalPointer); 76 v8::Local<v8::Object> wrapper = perContextData ? perContextData->createWrapperFromCache(type) : V8ObjectConstructor::newInstance(isolate, type->domTemplate(isolate)->GetFunction()); local 78 if (type == &V8HTMLDocument::wrapperTypeInfo && !wrapper.IsEmpty()) 79 wrapper = wrapInShadowTemplate(wrapper, internalPointer, isolate); 81 return wrapper; 92 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(value); 93 ASSERT(wrapper [all...] |
H A D | V8DOMWrapper.h | 53 static v8::Handle<v8::Object> associateObjectWithWrapper(RawPtr<T> object, const WrapperTypeInfo* wrapperTypeInfo, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) argument 55 return associateObjectWithWrapper<V8T, T>(object.get(), wrapperTypeInfo, wrapper, isolate); 69 inline void V8DOMWrapper::setNativeInfo(v8::Handle<v8::Object> wrapper, const WrapperTypeInfo* wrapperTypeInfo, ScriptWrappableBase* internalPointer) argument 71 ASSERT(wrapper->InternalFieldCount() >= 2); 79 wrapper->SetAlignedPointerInInternalField(v8DOMWrapperObjectIndex, internalPointer); 80 wrapper->SetAlignedPointerInInternalField(v8DOMWrapperTypeIndex, const_cast<WrapperTypeInfo*>(wrapperTypeInfo)); 83 inline void V8DOMWrapper::setNativeInfoForHiddenWrapper(v8::Handle<v8::Object> wrapper, const WrapperTypeInfo* wrapperTypeInfo, ScriptWrappableBase* internalPointer) argument 86 ASSERT(wrapper->InternalFieldCount() >= 2); 97 wrapper->SetAlignedPointerInInternalField(wrapper 107 setNativeInfoWithPersistentHandle(v8::Handle<v8::Object> wrapper, const WrapperTypeInfo* wrapperTypeInfo, ScriptWrappableBase* internalPointer, WrapperPersistentNode* handle) argument 123 clearNativeInfo(v8::Handle<v8::Object> wrapper, const WrapperTypeInfo* wrapperTypeInfo) argument 134 associateObjectWithWrapper(PassRefPtr<T> object, const WrapperTypeInfo* wrapperTypeInfo, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) argument 143 associateObjectWithWrapper(T* object, const WrapperTypeInfo* wrapperTypeInfo, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) argument 151 associateObjectWithWrapperNonTemplate(ScriptWrappable* impl, const WrapperTypeInfo* wrapperTypeInfo, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) argument 170 associateObjectWithWrapperNonTemplate(Node* node, const WrapperTypeInfo* wrapperTypeInfo, v8::Handle<v8::Object> wrapper, v8::Isolate* isolate) argument [all...] |
H A D | V8EventListenerList.h | 94 // Non-callable attribute setter input is treated as null (no wrapper) 101 V8EventListener* wrapper = doFindWrapper(object, wrapperProperty, scriptState); local 102 if (wrapper) 103 return wrapper;
|
H A D | V8GCController.cpp | 60 static void addReferencesForNodeWithEventListeners(v8::Isolate* isolate, Node* node, const v8::Persistent<v8::Object>& wrapper) argument 72 isolate->SetReference(wrapper, v8::Persistent<v8::Value>::Cast(v8listener->existingListenerObjectPersistentHandle())); 131 v8::Handle<v8::Object>* wrapper = reinterpret_cast<v8::Handle<v8::Object>*>(value); variable 132 ASSERT(V8DOMWrapper::isDOMWrapper(*wrapper)); 133 ASSERT(V8Node::hasInstance(*wrapper, m_isolate)); 134 Node* node = V8Node::toImpl(*wrapper); 136 // Note that node->wrapper().IsEmpty() returns true for nodes that 139 const WrapperTypeInfo* type = toWrapperTypeInfo(*wrapper); 140 ActiveDOMObject* activeDOMObject = type->toActiveDOMObject(*wrapper); 263 v8::Handle<v8::Object>* wrapper variable [all...] |
H A D | V8HiddenValue.cpp | 42 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate); local 43 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : getHiddenValue(isolate, wrapper, key);
|
H A D | V8NPObject.cpp | 84 if (RefPtr<SharedPersistent<v8::Object> > wrapper = element->pluginWrapper()) { 86 npObject = v8ObjectToNPObject(wrapper->newLocal(isolate)); 101 // Verify that our wrapper wasn't using a NPObject which has already been deleted. 240 // Verify that our wrapper wasn't using a NPObject which 323 // Verify that our wrapper wasn't using a NPObject which has already been deleted. 374 // Verify that our wrapper wasn't using a NPObject which 448 v8::Handle<v8::Object> wrapper = staticNPObjectMap().newLocal(object, isolate); 449 if (!wrapper.IsEmpty()) 450 return wrapper; 467 // to create a wrapper objec 488 v8::Handle<v8::Object> wrapper = staticNPObjectMap().newLocal(object, isolate); local [all...] |
H A D | V8PerIsolateData.cpp | 205 v8::Handle<v8::Object> wrapper = findInstanceInPrototypeChain(info, value, m_domTemplateMapForMainWorld); local 206 if (!wrapper.IsEmpty()) 207 return wrapper;
|
H A D | WindowProxy.cpp | 72 static void checkDocumentWrapper(v8::Handle<v8::Object> wrapper, Document* document) argument 74 ASSERT(V8Document::toImpl(wrapper) == document); 75 ASSERT(!document->isHTMLDocument() || (V8Document::toImpl(v8::Handle<v8::Object>::Cast(wrapper->GetPrototype())) == document)); 128 // Clear the document wrapper cache before turning on access checks on 129 // the old LocalDOMWindow wrapper. This way, access to the document wrapper 130 // will be protected by the security checks on the LocalDOMWindow wrapper. 307 // It is safe not to do so, as the wrapper for the LocalDOMWindow being installed here 309 // views of the LocalDOMWindow will die together once that wrapper clears the persistent 319 void WindowProxy::updateDocumentWrapper(v8::Handle<v8::Object> wrapper) argument [all...] |
H A D | WrapperTypeInfo.h | 62 inline void setObjectGroup(ScriptWrappableBase* internalPointer, const v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) argument 64 isolate->SetObjectGroupId(wrapper, v8::UniqueId(reinterpret_cast<intptr_t>(internalPointer))); 113 void configureWrapper(v8::PersistentBase<v8::Object>* wrapper) const 115 wrapper->SetWrapperClassId(wrapperClassId); 117 wrapper->MarkIndependent(); 169 void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) const argument 172 setObjectGroup(internalPointer, wrapper, isolate); 174 visitDOMWrapperFunction(internalPointer, wrapper, isolate); 208 inline T* getInternalField(v8::Handle<v8::Object> wrapper) argument 210 ASSERT(offset < wrapper 214 toScriptWrappableBase(v8::Handle<v8::Object> wrapper) argument 219 toWrapperTypeInfo(const v8::Persistent<v8::Object>& wrapper) argument 224 toWrapperTypeInfo(v8::Handle<v8::Object> wrapper) argument 229 toPersistentHandle(const v8::Handle<v8::Object>& wrapper) argument 235 releaseObject(v8::Handle<v8::Object> wrapper) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/ |
H A D | V8ArrayBufferCustom.cpp | 87 v8::Handle<v8::Object> wrapper = v8::ArrayBuffer::New(isolate, impl->data(), impl->byteLength()); local 90 V8DOMWrapper::associateObjectWithWrapper<V8ArrayBuffer>(impl, &wrapperTypeInfo, wrapper, isolate); 91 return wrapper;
|
H A D | V8HTMLPlugInElementCustom.cpp | 53 RefPtr<SharedPersistent<v8::Object> > wrapper = impl->pluginWrapper(); local 54 if (!wrapper) 57 v8::Local<v8::Object> instance = wrapper->newLocal(info.GetIsolate()); 87 RefPtr<SharedPersistent<v8::Object> > wrapper = impl->pluginWrapper(); local 88 if (!wrapper) 91 v8::Local<v8::Object> instance = wrapper->newLocal(info.GetIsolate()); 183 RefPtr<SharedPersistent<v8::Object> > wrapper = impl->pluginWrapper(); local 184 if (!wrapper) 187 v8::Local<v8::Object> instance = wrapper->newLocal(info.GetIsolate());
|
H A D | V8InjectedScriptManager.cpp | 68 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &V8InjectedScriptHost::wrapperTypeInfo, host->toScriptWrappableBase(), isolate); local 69 if (UNLIKELY(wrapper.IsEmpty())) 70 return wrapper; 72 // Create a weak reference to the v8 wrapper of InspectorBackend to deref 73 // InspectorBackend when the wrapper is garbage collected. 80 callbackData->handle.set(isolate, wrapper); 84 V8DOMWrapper::setNativeInfoWithPersistentHandle(wrapper, &V8InjectedScriptHost::wrapperTypeInfo, host->toScriptWrappableBase(), callbackData->hostPtr); 86 V8DOMWrapper::setNativeInfo(wrapper, &V8InjectedScriptHost::wrapperTypeInfo, host->toScriptWrappableBase()); 88 ASSERT(V8DOMWrapper::isDOMWrapper(wrapper)); 89 return wrapper; [all...] |
H A D | V8MessageChannelCustom.cpp | 49 v8::Local<v8::Object> wrapper = info.Holder(); local 51 // Create references from the MessageChannel wrapper to the two 53 // stay alive as long as the MessageChannel wrapper is around. 54 V8HiddenValue::setHiddenValue(info.GetIsolate(), wrapper, V8HiddenValue::port1(info.GetIsolate()), toV8(obj->port1(), info.Holder(), info.GetIsolate())); 55 V8HiddenValue::setHiddenValue(info.GetIsolate(), wrapper, V8HiddenValue::port2(info.GetIsolate()), toV8(obj->port2(), info.Holder(), info.GetIsolate())); 57 V8DOMWrapper::associateObjectWithWrapper<V8MessageChannel>(obj.release(), &wrapperTypeInfo, wrapper, info.GetIsolate()); 58 info.GetReturnValue().Set(wrapper);
|
H A D | V8MutationObserverCustom.cpp | 61 v8::Handle<v8::Object> wrapper = info.Holder(); local 63 OwnPtr<MutationCallback> callback = V8MutationCallback::create(v8::Handle<v8::Function>::Cast(arg), wrapper, ScriptState::current(info.GetIsolate())); 66 V8DOMWrapper::associateObjectWithWrapper<V8MutationObserver>(observer.release(), &wrapperTypeInfo, wrapper, info.GetIsolate()); 67 info.GetReturnValue().Set(wrapper); 70 void V8MutationObserver::visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) argument 76 isolate->SetReferenceFromGroup(id, wrapper);
|
H A D | V8TypedArrayCustom.h | 74 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<Binding>(impl, isolate); 75 if (!wrapper.IsEmpty()) 76 return wrapper; 89 v8::Handle<v8::Object> wrapper = wrap(impl, info.Holder(), info.GetIsolate()); 90 info.GetReturnValue().Set(wrapper); 103 v8::Handle<v8::Value> wrapper = wrap(impl, info.Holder(), info.GetIsolate()); 104 info.GetReturnValue().Set(wrapper); 116 v8::Handle<v8::Object> wrapper = wrap(impl, info.Holder(), info.GetIsolate()); 117 info.GetReturnValue().Set(wrapper); 155 v8::Local<v8::Object> wrapper local [all...] |
H A D | V8WindowCustom.cpp | 200 // The wrapper for an <iframe> should get its prototype from the context of the frame it's in, rather than its own frame. 204 v8::Handle<v8::Value> wrapper = toV8(impl->frameElement(), v8::Handle<v8::Object>::Cast(creationContext), info.GetIsolate()); local 205 v8SetReturnValue(info, wrapper);
|