Searched refs:thisValue (Results 1 - 25 of 62) sorted by relevance

123

/macosx-10.9.5/JavaScriptCore-7537.78.1/runtime/
H A DCallData.cpp36 JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args) argument
39 ASSERT(isValidThisObject(thisValue, exec));
40 return exec->interpreter()->executeCall(exec, asObject(functionObject), callType, callData, thisValue, args);
H A DBooleanPrototype.cpp81 JSValue thisValue = exec->hostThisValue(); local
82 if (thisValue == jsBoolean(false))
85 if (thisValue == jsBoolean(true))
88 if (!thisValue.inherits(&BooleanObject::s_info))
91 if (asBooleanObject(thisValue)->internalValue() == jsBoolean(false))
94 ASSERT(asBooleanObject(thisValue)->internalValue() == jsBoolean(true));
100 JSValue thisValue = exec->hostThisValue(); local
101 if (thisValue.isBoolean())
102 return JSValue::encode(thisValue);
104 if (!thisValue
[all...]
H A DRegExpPrototype.cpp82 JSValue thisValue = exec->hostThisValue(); local
83 if (!thisValue.inherits(&RegExpObject::s_info))
85 return JSValue::encode(jsBoolean(asRegExpObject(thisValue)->test(exec, exec->argument(0).toString(exec))));
90 JSValue thisValue = exec->hostThisValue(); local
91 if (!thisValue.inherits(&RegExpObject::s_info))
93 return JSValue::encode(asRegExpObject(thisValue)->exec(exec, exec->argument(0).toString(exec)));
98 JSValue thisValue = exec->hostThisValue(); local
99 if (!thisValue.inherits(&RegExpObject::s_info))
129 asRegExpObject(thisValue)->setRegExp(exec->vm(), regExp);
130 asRegExpObject(thisValue)
136 JSValue thisValue = exec->hostThisValue(); local
[all...]
H A DStringPrototype.cpp668 JSValue thisValue = exec->hostThisValue(); local
669 if (thisValue.isUndefinedOrNull()) // CheckObjectCoercible
671 JSString* string = thisValue.toString(exec);
681 JSValue thisValue = exec->hostThisValue(); local
684 if (thisValue.isString())
685 return JSValue::encode(thisValue);
687 if (thisValue.inherits(&StringObject::s_info))
688 return JSValue::encode(asStringObject(thisValue)->internalValue());
695 JSValue thisValue = exec->hostThisValue(); local
696 if (thisValue
715 JSValue thisValue = exec->hostThisValue(); local
738 JSValue thisValue = exec->hostThisValue(); local
749 JSValue thisValue = exec->hostThisValue(); local
785 JSValue thisValue = exec->hostThisValue(); local
814 JSValue thisValue = exec->hostThisValue(); local
873 JSValue thisValue = exec->hostThisValue(); local
903 JSValue thisValue = exec->hostThisValue(); local
962 JSValue thisValue = exec->hostThisValue(); local
1170 JSValue thisValue = exec->hostThisValue(); local
1210 JSValue thisValue = exec->hostThisValue(); local
1250 JSValue thisValue = exec->hostThisValue(); local
1270 JSValue thisValue = exec->hostThisValue(); local
1289 JSValue thisValue = exec->hostThisValue(); local
1300 JSValue thisValue = exec->hostThisValue(); local
1309 JSValue thisValue = exec->hostThisValue(); local
1318 JSValue thisValue = exec->hostThisValue(); local
1327 JSValue thisValue = exec->hostThisValue(); local
1336 JSValue thisValue = exec->hostThisValue(); local
1345 JSValue thisValue = exec->hostThisValue(); local
1354 JSValue thisValue = exec->hostThisValue(); local
1363 JSValue thisValue = exec->hostThisValue(); local
1372 JSValue thisValue = exec->hostThisValue(); local
1381 JSValue thisValue = exec->hostThisValue(); local
1394 JSValue thisValue = exec->hostThisValue(); local
1442 JSValue thisValue = exec->hostThisValue(); local
1455 JSValue thisValue = exec->hostThisValue(); local
1500 trimString(ExecState* exec, JSValue thisValue, int trimKind) argument
1525 JSValue thisValue = exec->hostThisValue(); local
1531 JSValue thisValue = exec->hostThisValue(); local
1537 JSValue thisValue = exec->hostThisValue(); local
[all...]
H A DDatePrototype.cpp343 JSValue thisValue = exec->hostThisValue(); local
344 if (!thisValue.inherits(&DateInstance::s_info))
347 DateInstance* thisDateObj = asDateInstance(thisValue);
543 JSValue thisValue = exec->hostThisValue(); local
544 if (!thisValue.inherits(&DateInstance::s_info))
547 DateInstance* thisDateObj = asDateInstance(thisValue);
589 JSValue thisValue = exec->hostThisValue(); local
590 if (!thisValue.inherits(&DateInstance::s_info))
593 DateInstance* thisDateObj = asDateInstance(thisValue);
599 JSValue thisValue local
609 JSValue thisValue = exec->hostThisValue(); local
619 JSValue thisValue = exec->hostThisValue(); local
628 JSValue thisValue = exec->hostThisValue(); local
642 JSValue thisValue = exec->hostThisValue(); local
662 JSValue thisValue = exec->hostThisValue(); local
676 JSValue thisValue = exec->hostThisValue(); local
690 JSValue thisValue = exec->hostThisValue(); local
704 JSValue thisValue = exec->hostThisValue(); local
718 JSValue thisValue = exec->hostThisValue(); local
732 JSValue thisValue = exec->hostThisValue(); local
746 JSValue thisValue = exec->hostThisValue(); local
760 JSValue thisValue = exec->hostThisValue(); local
774 JSValue thisValue = exec->hostThisValue(); local
788 JSValue thisValue = exec->hostThisValue(); local
802 JSValue thisValue = exec->hostThisValue(); local
816 JSValue thisValue = exec->hostThisValue(); local
830 JSValue thisValue = exec->hostThisValue(); local
846 JSValue thisValue = exec->hostThisValue(); local
862 JSValue thisValue = exec->hostThisValue(); local
876 JSValue thisValue = exec->hostThisValue(); local
890 JSValue thisValue = exec->hostThisValue(); local
927 JSValue thisValue = exec->hostThisValue(); local
1051 JSValue thisValue = exec->hostThisValue(); local
1092 JSValue thisValue = exec->hostThisValue(); local
1108 JSValue thisValue = exec->hostThisValue(); local
[all...]
H A DCompletion.cpp63 JSValue evaluate(ExecState* exec, const SourceCode& source, JSValue thisValue, JSValue* returnedException) argument
80 if (!thisValue || thisValue.isUndefinedOrNull())
81 thisValue = exec->dynamicGlobalObject();
82 JSObject* thisObj = thisValue.toThisObject(exec);
H A DCompletion.h38 JS_EXPORT_PRIVATE JSValue evaluate(ExecState*, const SourceCode&, JSValue thisValue = JSValue(), JSValue* exception = 0);
H A DNamePrototype.cpp75 JSValue thisValue = exec->hostThisValue(); local
76 if (!thisValue.isObject())
79 JSObject* thisObject = asObject(thisValue);
H A DObjectPrototype.cpp83 JSValue thisValue = exec->hostThisValue(); local
84 return JSValue::encode(thisValue.toObject(exec));
89 JSValue thisValue = exec->hostThisValue(); local
90 return JSValue::encode(jsBoolean(thisValue.toObject(exec)->hasOwnProperty(exec, Identifier(exec, exec->argument(0).toString(exec)->value(exec)))));
95 JSValue thisValue = exec->hostThisValue(); local
96 JSObject* thisObj = thisValue.toObject(exec);
182 JSValue thisValue = exec->hostThisValue(); local
183 return JSValue::encode(jsBoolean(thisValue.toObject(exec)->propertyIsEnumerable(exec, Identifier(exec, exec->argument(0).toString(exec)->value(exec)))));
209 JSValue thisValue = exec->hostThisValue(); local
210 if (thisValue
[all...]
H A DCallData.h60 JS_EXPORT_PRIVATE JSValue call(ExecState*, JSValue functionObject, CallType, const CallData&, JSValue thisValue, const ArgList&);
H A DFunctionPrototype.cpp103 JSValue thisValue = exec->hostThisValue(); local
104 if (thisValue.inherits(&JSFunction::s_info)) {
105 JSFunction* function = jsCast<JSFunction*>(thisValue);
114 if (thisValue.inherits(&InternalFunction::s_info)) {
115 InternalFunction* function = asInternalFunction(thisValue);
124 JSValue thisValue = exec->hostThisValue(); local
126 CallType callType = getCallData(thisValue, callData);
154 return JSValue::encode(call(exec, thisValue, callType, callData, exec->argument(0), applyArgs));
159 JSValue thisValue = exec->hostThisValue(); local
161 CallType callType = getCallData(thisValue, callDat
[all...]
H A DErrorPrototype.cpp80 JSValue thisValue = exec->hostThisValue(); local
83 if (!thisValue.isObject())
85 JSObject* thisObj = asObject(thisValue);
H A DSparseArrayValueMap.cpp166 void SparseArrayEntry::put(ExecState* exec, JSValue thisValue, SparseArrayValueMap* map, JSValue value, bool shouldThrow) argument
193 if (thisValue.isObject())
194 thisValue = asObject(thisValue)->methodTable()->toThisObject(asObject(thisValue), exec);
195 call(exec, setter, callType, callData, thisValue, args);
/macosx-10.9.5/WebKit2-7537.78.2/WebProcess/Plugins/Netscape/
H A DJSNPMethod.cpp64 JSValue thisValue = exec->hostThisValue(); local
67 if (thisValue.inherits(&JSHTMLElement::s_info)) {
68 JSHTMLElement* element = static_cast<JSHTMLElement*>(asObject(thisValue));
72 thisValue = scriptObject;
75 if (thisValue.inherits(&JSNPObject::s_info)) {
76 JSNPObject* jsNPObject = static_cast<JSNPObject*>(asObject(thisValue));
/macosx-10.9.5/WebCore-7537.78.1/bindings/js/
H A DJSMainThreadExecState.h50 static JSC::JSValue call(JSC::ExecState* exec, JSC::JSValue functionObject, JSC::CallType callType, const JSC::CallData& callData, JSC::JSValue thisValue, const JSC::ArgList& args) argument
54 if (thisValue.isObject())
55 thisValue = thisValue.toThisObject(exec);
56 return JSC::call(exec, functionObject, callType, callData, thisValue, args);
73 static JSC::JSValue evaluate(JSC::ExecState* exec, const JSC::SourceCode& source, JSC::JSValue thisValue, JSC::JSValue* exception) argument
77 return JSC::evaluate(exec, source, thisValue, exception);
H A DJSCallbackData.cpp51 JSValue JSCallbackData::invokeCallback(JSValue thisValue, MarkedArgumentBuffer& args, bool* raisedException) argument
77 ? JSMainThreadExecState::call(exec, function, callType, callData, thisValue, args)
78 : JSC::call(exec, function, callType, callData, thisValue, args);
H A DJSErrorHandler.cpp95 JSValue thisValue = globalObject->methodTable()->toThisObject(globalObject, exec); local
98 ? JSMainThreadExecState::call(exec, jsFunction, callType, callData, thisValue, args)
99 : JSC::call(exec, jsFunction, callType, callData, thisValue, args);
H A DJSEventListener.cpp127 JSValue thisValue = handleEventFunction == jsFunction ? toJS(exec, globalObject, event->currentTarget()) : jsFunction; local
129 ? JSMainThreadExecState::call(exec, handleEventFunction, callType, callData, thisValue, args)
130 : JSC::call(exec, handleEventFunction, callType, callData, thisValue, args);
/macosx-10.9.5/JavaScriptCore-7537.78.1/API/
H A DJSContextInternal.h39 JSValueRef thisValue; member in struct:CallbackData
68 - (void)beginCallbackWithData:(CallbackData *)callbackData thisValue:(JSValueRef)thisValue argumentCount:(size_t)argumentCount arguments:(const JSValueRef *)arguments;
H A DJSScriptRefPrivate.h88 @param thisValue The value to use as "this" when evaluating the script.
92 JS_EXPORT JSValueRef JSScriptEvaluate(JSContextRef ctx, JSScriptRef script, JSValueRef thisValue, JSValueRef* exception);
/macosx-10.9.5/JavaScriptCore-7537.78.1/debugger/
H A DDebuggerCallFrame.cpp81 JSValue thisValue = m_callFrame->uncheckedR(codeBlock->thisRegister()).jsValue();
82 if (!thisValue.isObject())
85 return asObject(thisValue);
/macosx-10.9.5/WebCore-7537.78.1/bridge/
H A Druntime_method.cpp97 JSValue thisValue = exec->hostThisValue(); local
98 if (thisValue.inherits(&RuntimeObject::s_info)) {
99 RuntimeObject* runtimeObject = static_cast<RuntimeObject*>(asObject(thisValue));
105 if (thisValue.inherits(&JSHTMLElement::s_info)) {
106 HTMLElement* element = jsCast<JSHTMLElement*>(asObject(thisValue))->impl();
/macosx-10.9.5/WebCore-7537.78.1/bindings/scripts/test/JS/
H A DJSTestObj.cpp1749 JSValue thisValue = exec->hostThisValue(); local
1750 if (!thisValue.inherits(&JSTestObj::s_info))
1752 JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue));
1761 JSValue thisValue = exec->hostThisValue(); local
1762 if (!thisValue.inherits(&JSTestObj::s_info))
1764 JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue));
1784 JSValue thisValue = exec->hostThisValue(); local
1785 if (!thisValue.inherits(&JSTestObj::s_info))
1787 JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue));
1797 JSValue thisValue local
1821 JSValue thisValue = exec->hostThisValue(); local
1834 JSValue thisValue = exec->hostThisValue(); local
1858 JSValue thisValue = exec->hostThisValue(); local
1871 JSValue thisValue = exec->hostThisValue(); local
1895 JSValue thisValue = exec->hostThisValue(); local
1908 JSValue thisValue = exec->hostThisValue(); local
1932 JSValue thisValue = exec->hostThisValue(); local
1949 JSValue thisValue = exec->hostThisValue(); local
1967 JSValue thisValue = exec->hostThisValue(); local
1986 JSValue thisValue = exec->hostThisValue(); local
2009 JSValue thisValue = exec->hostThisValue(); local
2026 JSValue thisValue = exec->hostThisValue(); local
2046 JSValue thisValue = exec->hostThisValue(); local
2060 JSValue thisValue = exec->hostThisValue(); local
2070 JSValue thisValue = exec->hostThisValue(); local
2080 JSValue thisValue = exec->hostThisValue(); local
2095 JSValue thisValue = exec->hostThisValue(); local
2110 JSValue thisValue = exec->hostThisValue(); local
2122 JSValue thisValue = exec->hostThisValue(); local
2137 JSValue thisValue = exec->hostThisValue(); local
2151 JSValue thisValue = exec->hostThisValue(); local
2168 JSValue thisValue = exec->hostThisValue(); local
2183 JSValue thisValue = exec->hostThisValue(); local
2198 JSValue thisValue = exec->hostThisValue(); local
2218 JSValue thisValue = exec->hostThisValue(); local
2236 JSValue thisValue = exec->hostThisValue(); local
2249 JSValue thisValue = exec->hostThisValue(); local
2271 JSValue thisValue = exec->hostThisValue(); local
2298 JSValue thisValue = exec->hostThisValue(); local
2333 JSValue thisValue = exec->hostThisValue(); local
2355 JSValue thisValue = exec->hostThisValue(); local
2370 JSValue thisValue = exec->hostThisValue(); local
2385 JSValue thisValue = exec->hostThisValue(); local
2402 JSValue thisValue = exec->hostThisValue(); local
2422 JSValue thisValue = exec->hostThisValue(); local
2464 JSValue thisValue = exec->hostThisValue(); local
2480 JSValue thisValue = exec->hostThisValue(); local
2495 JSValue thisValue = exec->hostThisValue(); local
2509 JSValue thisValue = exec->hostThisValue(); local
2529 JSValue thisValue = exec->hostThisValue(); local
2556 JSValue thisValue = exec->hostThisValue(); local
2573 JSValue thisValue = exec->hostThisValue(); local
2590 JSValue thisValue = exec->hostThisValue(); local
2607 JSValue thisValue = exec->hostThisValue(); local
2624 JSValue thisValue = exec->hostThisValue(); local
2641 JSValue thisValue = exec->hostThisValue(); local
2658 JSValue thisValue = exec->hostThisValue(); local
2675 JSValue thisValue = exec->hostThisValue(); local
2692 JSValue thisValue = exec->hostThisValue(); local
2813 JSValue thisValue = exec->hostThisValue(); local
2843 JSValue thisValue = exec->hostThisValue(); local
2860 JSValue thisValue = exec->hostThisValue(); local
2880 JSValue thisValue = exec->hostThisValue(); local
2900 JSValue thisValue = exec->hostThisValue(); local
2917 JSValue thisValue = exec->hostThisValue(); local
2934 JSValue thisValue = exec->hostThisValue(); local
2951 JSValue thisValue = exec->hostThisValue(); local
2968 JSValue thisValue = exec->hostThisValue(); local
2985 JSValue thisValue = exec->hostThisValue(); local
2998 JSValue thisValue = exec->hostThisValue(); local
3011 JSValue thisValue = exec->hostThisValue(); local
3023 JSValue thisValue = exec->hostThisValue(); local
3049 JSValue thisValue = exec->hostThisValue(); local
3069 JSValue thisValue = exec->hostThisValue(); local
3089 JSValue thisValue = exec->hostThisValue(); local
[all...]
H A DJSTestTypedefs.cpp359 JSValue thisValue = exec->hostThisValue(); local
360 if (!thisValue.inherits(&JSTestTypedefs::s_info))
362 JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(asObject(thisValue));
383 JSValue thisValue = exec->hostThisValue(); local
384 if (!thisValue.inherits(&JSTestTypedefs::s_info))
386 JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(asObject(thisValue));
424 JSValue thisValue = exec->hostThisValue(); local
425 if (!thisValue.inherits(&JSTestTypedefs::s_info))
427 JSTestTypedefs* castedThis = jsCast<JSTestTypedefs*>(asObject(thisValue));
442 JSValue thisValue local
459 JSValue thisValue = exec->hostThisValue(); local
496 JSValue thisValue = exec->hostThisValue(); local
509 JSValue thisValue = exec->hostThisValue(); local
529 JSValue thisValue = exec->hostThisValue(); local
549 JSValue thisValue = exec->hostThisValue(); local
[all...]
/macosx-10.9.5/JavaScriptCore-7537.78.1/interpreter/
H A DInterpreter.h209 JSValue executeCall(CallFrame*, JSObject* function, CallType, const CallData&, JSValue thisValue, const ArgList&);
211 JSValue execute(EvalExecutable*, CallFrame*, JSValue thisValue, JSScope*);
276 inline bool isValidThisObject(JSValue thisValue, ExecState* exec) argument
278 return !thisValue.isObject() || thisValue.toThisObject(exec) == thisValue;
282 CallFrame* loadVarargs(CallFrame*, JSStack*, JSValue thisValue, JSValue arguments, int firstFreeRegister);

Completed in 793 milliseconds

123