Home
last modified time | relevance | path

Searched refs:thisObj (Results 1 – 25 of 43) sorted by relevance

12

/external/webkit/Source/JavaScriptCore/runtime/
DArrayPrototype.cpp172 JSArray* thisObj = asArray(thisValue); in arrayProtoFuncToString() local
174 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncToString()
178 StringRecursionChecker checker(exec, thisObj); in arrayProtoFuncToString()
193 if (isRealArray && thisObj->canGetIndex(k)) in arrayProtoFuncToString()
194 element = thisObj->getIndex(k); in arrayProtoFuncToString()
196 element = thisObj->get(exec, k); in arrayProtoFuncToString()
235 JSObject* thisObj = asArray(thisValue); in arrayProtoFuncToLocaleString() local
237 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncToLocaleString()
241 StringRecursionChecker checker(exec, thisObj); in arrayProtoFuncToLocaleString()
250 JSValue element = thisObj->get(exec, k); in arrayProtoFuncToLocaleString()
[all …]
DLookup.h190 …inline bool getStaticPropertySlot(ExecState* exec, const HashTable* table, ThisImp* thisObj, const… in getStaticPropertySlot() argument
195 return thisObj->ParentImp::getOwnPropertySlot(exec, propertyName, slot); in getStaticPropertySlot()
198 setUpStaticFunctionSlot(exec, entry, thisObj, propertyName, slot); in getStaticPropertySlot()
200 slot.setCacheableCustom(thisObj, entry->propertyGetter()); in getStaticPropertySlot()
206 …aticPropertyDescriptor(ExecState* exec, const HashTable* table, ThisImp* thisObj, const Identifier… in getStaticPropertyDescriptor() argument
211 return thisObj->ParentImp::getOwnPropertyDescriptor(exec, propertyName, descriptor); in getStaticPropertyDescriptor()
215 setUpStaticFunctionSlot(exec, entry, thisObj, propertyName, slot); in getStaticPropertyDescriptor()
217 slot.setCustom(thisObj, entry->propertyGetter()); in getStaticPropertyDescriptor()
229 …inline bool getStaticFunctionSlot(ExecState* exec, const HashTable* table, JSObject* thisObj, cons… in getStaticFunctionSlot() argument
231 … if (static_cast<ParentImp*>(thisObj)->ParentImp::getOwnPropertySlot(exec, propertyName, slot)) in getStaticFunctionSlot()
[all …]
DLookup.cpp71 void setUpStaticFunctionSlot(ExecState* exec, const HashEntry* entry, JSObject* thisObj, const Iden… in setUpStaticFunctionSlot() argument
73 ASSERT(thisObj->structure()->anonymousSlotCount() > 0); in setUpStaticFunctionSlot()
74 …ASSERT(thisObj->getAnonymousValue(0).isCell() && asObject(thisObj->getAnonymousValue(0).asCell())-… in setUpStaticFunctionSlot()
76 …WriteBarrierBase<Unknown>* location = thisObj->getDirectLocation(exec->globalData(), propertyName); in setUpStaticFunctionSlot()
80 JSGlobalObject* globalObject = asGlobalObject(thisObj->getAnonymousValue(0).asCell()); in setUpStaticFunctionSlot()
88 thisObj->putDirectFunction(exec->globalData(), propertyName, function, entry->attributes()); in setUpStaticFunctionSlot()
89 location = thisObj->getDirectLocation(exec->globalData(), propertyName); in setUpStaticFunctionSlot()
92 slot.setValue(thisObj, location->get(), thisObj->offsetForLocation(location)); in setUpStaticFunctionSlot()
DErrorPrototype.cpp49 JSObject* thisObj = exec->hostThisValue().toThisObject(exec); in errorProtoFuncToString() local
51 StringRecursionChecker checker(exec, thisObj); in errorProtoFuncToString()
55 JSValue name = thisObj->get(exec, exec->propertyNames().name); in errorProtoFuncToString()
56 JSValue message = thisObj->get(exec, exec->propertyNames().message); in errorProtoFuncToString()
DJSFunction.cpp162 JSFunction* thisObj = asFunction(slotBase); in argumentsGetter() local
163 ASSERT(!thisObj->isHostFunction()); in argumentsGetter()
164 return exec->interpreter()->retrieveArguments(exec, thisObj); in argumentsGetter()
169 JSFunction* thisObj = asFunction(slotBase); in callerGetter() local
170 ASSERT(!thisObj->isHostFunction()); in callerGetter()
171 return exec->interpreter()->retrieveCaller(exec, thisObj); in callerGetter()
176 JSFunction* thisObj = asFunction(slotBase); in lengthGetter() local
177 ASSERT(!thisObj->isHostFunction()); in lengthGetter()
178 return jsNumber(thisObj->jsExecutable()->parameterCount()); in lengthGetter()
DCompletion.cpp62 …JSObject* thisObj = (!thisValue || thisValue.isUndefinedOrNull()) ? exec->dynamicGlobalObject() : … in evaluate() local
64 JSValue result = exec->interpreter()->execute(program, exec, scopeChain, thisObj); in evaluate()
/external/webkit/Source/WebKit2/WebProcess/Plugins/Netscape/
DJSNPObject.cpp366 JSNPObject* thisObj = static_cast<JSNPObject*>(asObject(slotBase)); in propertyGetter() local
368 if (!thisObj->m_npObject) in propertyGetter()
371 if (!thisObj->m_npObject->_class->getProperty) in propertyGetter()
380 NPRuntimeObjectMap::PluginProtector protector(thisObj->m_objectMap); in propertyGetter()
386 …returnValue = thisObj->m_npObject->_class->getProperty(thisObj->m_npObject, npIdentifier, &result); in propertyGetter()
394 …JSValue propertyValue = thisObj->m_objectMap->convertNPVariantToJSValue(exec, thisObj->globalObjec… in propertyGetter()
401 JSNPObject* thisObj = static_cast<JSNPObject*>(asObject(slotBase)); in methodGetter() local
403 if (!thisObj->m_npObject) in methodGetter()
407 return new (exec) JSNPMethod(exec, thisObj->globalObject(), methodName, npIdentifier); in methodGetter()
/external/webkit/Source/WebCore/bindings/js/
DJSDataGridColumnListCustom.cpp48 JSDataGridColumnList* thisObj = static_cast<JSDataGridColumnList*>(asObject(slotBase)); in nameGetter() local
49 …return toJS(exec, thisObj->globalObject(), thisObj->impl()->itemWithName(identifierToAtomicString(… in nameGetter()
DJSCSSStyleDeclarationCustom.cpp152 JSCSSStyleDeclaration* thisObj = static_cast<JSCSSStyleDeclaration*>(asObject(slotBase)); in nameGetter() local
161 RefPtr<CSSValue> v = thisObj->impl()->getPropertyCSSValue(prop); in nameGetter()
173 …return StringObjectThatMasqueradesAsUndefined::create(exec, stringToUString(thisObj->impl()->getPr… in nameGetter()
175 return jsString(exec, thisObj->impl()->getPropertyValue(prop)); in nameGetter()
DJSDOMPluginArrayCustom.cpp38 JSDOMPluginArray* thisObj = static_cast<JSDOMPluginArray*>(asObject(slotBase)); in nameGetter() local
39 return toJS(exec, thisObj->impl()->namedItem(identifierToAtomicString(propertyName))); in nameGetter()
DJSDOMPluginCustom.cpp37 JSDOMPlugin* thisObj = static_cast<JSDOMPlugin*>(asObject(slotBase)); in nameGetter() local
38 return toJS(exec, thisObj->impl()->namedItem(identifierToAtomicString(propertyName))); in nameGetter()
DJSDOMMimeTypeArrayCustom.cpp38 JSDOMMimeTypeArray* thisObj = static_cast<JSDOMMimeTypeArray*>(asObject(slotBase)); in nameGetter() local
39 return toJS(exec, thisObj->impl()->namedItem(identifierToAtomicString(propertyName))); in nameGetter()
DJSHTMLFrameSetElementCustom.cpp52 JSHTMLElement* thisObj = static_cast<JSHTMLElement*>(asObject(slotBase)); in nameGetter() local
53 HTMLElement* element = toHTMLElement(thisObj->impl()); in nameGetter()
DJSStyleSheetListCustom.cpp57 JSStyleSheetList* thisObj = static_cast<JSStyleSheetList*>(asObject(slotBase)); in nameGetter() local
58 HTMLStyleElement* element = thisObj->impl()->getNamedItem(identifierToString(propertyName)); in nameGetter()
DJSNamedNodeMapCustom.cpp78 JSNamedNodeMap* thisObj = static_cast<JSNamedNodeMap*>(asObject(slotBase)); in nameGetter() local
79 return toJS(exec, thisObj->impl()->getNamedItem(identifierToString(propertyName))); in nameGetter()
DJSStorageCustom.cpp46 JSStorage* thisObj = static_cast<JSStorage*>(asObject(slotBase)); in nameGetter() local
47 return jsStringOrNull(exec, thisObj->impl()->getItem(identifierToString(propertyName))); in nameGetter()
DJSDOMStringMapCustom.cpp43 JSDOMStringMap* thisObj = static_cast<JSDOMStringMap*>(asObject(slotBase)); in nameGetter() local
44 return jsString(exec, thisObj->impl()->item(identifierToAtomicString(propertyName))); in nameGetter()
DJSNodeListCustom.cpp100 JSNodeList* thisObj = static_cast<JSNodeList*>(asObject(slotBase)); in nameGetter() local
101 return toJS(exec, thisObj->impl()->itemWithName(identifierToAtomicString(propertyName))); in nameGetter()
DJSHTMLAllCollectionCustom.cpp118 JSHTMLAllCollection* thisObj = static_cast<JSHTMLAllCollection*>(asObject(slotBase)); in nameGetter() local
119 return getNamedItems(exec, thisObj, propertyName); in nameGetter()
/external/webkit/Source/WebCore/bridge/
Druntime_array.cpp56 RuntimeArray* thisObj = static_cast<RuntimeArray*>(asObject(slotBase)); in lengthGetter() local
57 return jsNumber(thisObj->getLength()); in lengthGetter()
62 RuntimeArray* thisObj = static_cast<RuntimeArray*>(asObject(slotBase)); in indexGetter() local
63 return thisObj->getConcreteArray()->valueAt(exec, index); in indexGetter()
Druntime_object.cpp62 RuntimeObject* thisObj = static_cast<RuntimeObject*>(asObject(slotBase)); in fallbackObjectGetter() local
63 RefPtr<Instance> instance = thisObj->m_instance; in fallbackObjectGetter()
80 RuntimeObject* thisObj = static_cast<RuntimeObject*>(asObject(slotBase)); in fieldGetter() local
81 RefPtr<Instance> instance = thisObj->m_instance; in fieldGetter()
99 RuntimeObject* thisObj = static_cast<RuntimeObject*>(asObject(slotBase)); in methodGetter() local
100 RefPtr<Instance> instance = thisObj->m_instance; in methodGetter()
Druntime_method.cpp56 RuntimeMethod* thisObj = static_cast<RuntimeMethod*>(asObject(slotBase)); in lengthGetter() local
64 return jsNumber(thisObj->_methodList->at(0)->numParameters()); in lengthGetter()
/external/webkit/Source/JavaScriptCore/API/
DJSCallbackObjectFunctions.h520 JSCallbackObject* thisObj = asCallbackObject(slotBase); in staticValueGetter() local
522 JSObjectRef thisRef = toRef(thisObj); in staticValueGetter()
525 for (JSClassRef jsClass = thisObj->classRef(); jsClass; jsClass = jsClass->parentClass) in staticValueGetter()
551 JSCallbackObject* thisObj = asCallbackObject(slotBase); in staticFunctionGetter() local
554 PropertySlot slot2(thisObj); in staticFunctionGetter()
555 if (thisObj->Base::getOwnPropertySlot(exec, propertyName, slot2)) in staticFunctionGetter()
558 for (JSClassRef jsClass = thisObj->classRef(); jsClass; jsClass = jsClass->parentClass) { in staticFunctionGetter()
563 …JSObject* o = new (exec) JSCallbackFunction(exec, asGlobalObject(thisObj->getAnonymousValue(0)), c… in staticFunctionGetter()
564 thisObj->putDirect(exec->globalData(), propertyName, o, entry->attributes); in staticFunctionGetter()
577 JSCallbackObject* thisObj = asCallbackObject(slotBase); in callbackGetter() local
[all …]
/external/webkit/Source/JavaScriptGlue/
DJSObject.cpp91 JSUserObject* JSUserObject::CallFunction(JSUserObject* thisObj, CFArrayRef args) in CallFunction() argument
96 result = (JSUserObject*)fCallBacks.callFunction(fData, (JSObjectRef)thisObj, args); in CallFunction()
DJavaScriptGlue.h60 typedef JSObjectRef (*JSObjectCallFunctionProcPtr)(void *data, JSObjectRef thisObj, CFArrayRef args…
94 JSObjectRef JSObjectCallFunction(JSObjectRef ref, JSObjectRef thisObj, CFArrayRef args) DEPRECATED_…

12