Changeset 166493 in webkit
- Timestamp:
- Mar 31, 2014 3:43:22 AM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/APICallbackFunction.h
r165074 r166493 47 47 JSContextRef execRef = toRef(exec); 48 48 JSObjectRef functionRef = toRef(exec->callee()); 49 JSObjectRef thisObjRef = toRef(jsCast<JSObject*>(exec-> hostThisValue().toThis(exec, NotStrictMode)));49 JSObjectRef thisObjRef = toRef(jsCast<JSObject*>(exec->thisValue().toThis(exec, NotStrictMode))); 50 50 51 51 int argumentCount = static_cast<int>(exec->argumentCount()); -
trunk/Source/JavaScriptCore/API/JSCallbackObjectFunctions.h
r165676 r166493 473 473 JSContextRef execRef = toRef(exec); 474 474 JSObjectRef functionRef = toRef(exec->callee()); 475 JSObjectRef thisObjRef = toRef(jsCast<JSObject*>(exec-> hostThisValue().toThis(exec, NotStrictMode)));475 JSObjectRef thisObjRef = toRef(jsCast<JSObject*>(exec->thisValue().toThis(exec, NotStrictMode))); 476 476 477 477 for (JSClassRef jsClass = jsCast<JSCallbackObject<Parent>*>(toJS(functionRef))->classRef(); jsClass; jsClass = jsClass->parentClass) { -
trunk/Source/JavaScriptCore/ChangeLog
r166463 r166493 1 2014-03-31 Dániel Bátyai <dbatyai.u-szeged@partner.samsung.com> 2 3 Remove hostThisRegister() and hostThisValue() 4 https://bugs.webkit.org/show_bug.cgi?id=130895 5 6 Reviewed by Geoffrey Garen. 7 8 Removed hostThisRegister() and hostThisValue() and instead use thisArgumentOffset() and thisValue() respectively. 9 10 * API/APICallbackFunction.h: 11 (JSC::APICallbackFunction::call): 12 * API/JSCallbackObjectFunctions.h: 13 (JSC::JSCallbackObject<Parent>::call): 14 * dfg/DFGOSREntry.cpp: 15 (JSC::DFG::prepareOSREntry): 16 * inspector/JSInjectedScriptHostPrototype.cpp: 17 (Inspector::jsInjectedScriptHostPrototypeAttributeEvaluate): 18 (Inspector::jsInjectedScriptHostPrototypeFunctionInternalConstructorName): 19 (Inspector::jsInjectedScriptHostPrototypeFunctionIsHTMLAllCollection): 20 (Inspector::jsInjectedScriptHostPrototypeFunctionType): 21 (Inspector::jsInjectedScriptHostPrototypeFunctionFunctionDetails): 22 (Inspector::jsInjectedScriptHostPrototypeFunctionGetInternalProperties): 23 * inspector/JSJavaScriptCallFramePrototype.cpp: 24 (Inspector::jsJavaScriptCallFramePrototypeFunctionEvaluate): 25 (Inspector::jsJavaScriptCallFramePrototypeFunctionScopeType): 26 (Inspector::jsJavaScriptCallFrameAttributeCaller): 27 (Inspector::jsJavaScriptCallFrameAttributeSourceID): 28 (Inspector::jsJavaScriptCallFrameAttributeLine): 29 (Inspector::jsJavaScriptCallFrameAttributeColumn): 30 (Inspector::jsJavaScriptCallFrameAttributeFunctionName): 31 (Inspector::jsJavaScriptCallFrameAttributeScopeChain): 32 (Inspector::jsJavaScriptCallFrameAttributeThisObject): 33 (Inspector::jsJavaScriptCallFrameAttributeType): 34 * interpreter/CallFrame.h: 35 (JSC::ExecState::hostThisRegister): Deleted. 36 (JSC::ExecState::hostThisValue): Deleted. 37 * runtime/Arguments.cpp: 38 (JSC::argumentsFuncIterator): 39 * runtime/ArrayPrototype.cpp: 40 (JSC::arrayProtoFuncToString): 41 (JSC::arrayProtoFuncToLocaleString): 42 (JSC::arrayProtoFuncJoin): 43 (JSC::arrayProtoFuncConcat): 44 (JSC::arrayProtoFuncPop): 45 (JSC::arrayProtoFuncPush): 46 (JSC::arrayProtoFuncReverse): 47 (JSC::arrayProtoFuncShift): 48 (JSC::arrayProtoFuncSlice): 49 (JSC::arrayProtoFuncSort): 50 (JSC::arrayProtoFuncSplice): 51 (JSC::arrayProtoFuncUnShift): 52 (JSC::arrayProtoFuncReduce): 53 (JSC::arrayProtoFuncReduceRight): 54 (JSC::arrayProtoFuncIndexOf): 55 (JSC::arrayProtoFuncLastIndexOf): 56 (JSC::arrayProtoFuncValues): 57 (JSC::arrayProtoFuncEntries): 58 (JSC::arrayProtoFuncKeys): 59 * runtime/BooleanPrototype.cpp: 60 (JSC::booleanProtoFuncToString): 61 (JSC::booleanProtoFuncValueOf): 62 * runtime/ConsolePrototype.cpp: 63 (JSC::consoleLogWithLevel): 64 (JSC::consoleProtoFuncClear): 65 (JSC::consoleProtoFuncDir): 66 (JSC::consoleProtoFuncDirXML): 67 (JSC::consoleProtoFuncTable): 68 (JSC::consoleProtoFuncTrace): 69 (JSC::consoleProtoFuncAssert): 70 (JSC::consoleProtoFuncCount): 71 (JSC::consoleProtoFuncProfile): 72 (JSC::consoleProtoFuncProfileEnd): 73 (JSC::consoleProtoFuncTime): 74 (JSC::consoleProtoFuncTimeEnd): 75 (JSC::consoleProtoFuncTimeStamp): 76 (JSC::consoleProtoFuncGroup): 77 (JSC::consoleProtoFuncGroupCollapsed): 78 (JSC::consoleProtoFuncGroupEnd): 79 * runtime/DatePrototype.cpp: 80 (JSC::formateDateInstance): 81 (JSC::dateProtoFuncToISOString): 82 (JSC::dateProtoFuncToLocaleString): 83 (JSC::dateProtoFuncToLocaleDateString): 84 (JSC::dateProtoFuncToLocaleTimeString): 85 (JSC::dateProtoFuncGetTime): 86 (JSC::dateProtoFuncGetFullYear): 87 (JSC::dateProtoFuncGetUTCFullYear): 88 (JSC::dateProtoFuncGetMonth): 89 (JSC::dateProtoFuncGetUTCMonth): 90 (JSC::dateProtoFuncGetDate): 91 (JSC::dateProtoFuncGetUTCDate): 92 (JSC::dateProtoFuncGetDay): 93 (JSC::dateProtoFuncGetUTCDay): 94 (JSC::dateProtoFuncGetHours): 95 (JSC::dateProtoFuncGetUTCHours): 96 (JSC::dateProtoFuncGetMinutes): 97 (JSC::dateProtoFuncGetUTCMinutes): 98 (JSC::dateProtoFuncGetSeconds): 99 (JSC::dateProtoFuncGetUTCSeconds): 100 (JSC::dateProtoFuncGetMilliSeconds): 101 (JSC::dateProtoFuncGetUTCMilliseconds): 102 (JSC::dateProtoFuncGetTimezoneOffset): 103 (JSC::dateProtoFuncSetTime): 104 (JSC::setNewValueFromTimeArgs): 105 (JSC::setNewValueFromDateArgs): 106 (JSC::dateProtoFuncSetYear): 107 (JSC::dateProtoFuncGetYear): 108 (JSC::dateProtoFuncToJSON): 109 * runtime/ErrorPrototype.cpp: 110 (JSC::errorProtoFuncToString): 111 * runtime/FunctionPrototype.cpp: 112 (JSC::functionProtoFuncToString): 113 (JSC::functionProtoFuncBind): 114 * runtime/NamePrototype.cpp: 115 (JSC::privateNameProtoFuncToString): 116 * runtime/NumberPrototype.cpp: 117 (JSC::numberProtoFuncToExponential): 118 (JSC::numberProtoFuncToFixed): 119 (JSC::numberProtoFuncToPrecision): 120 (JSC::numberProtoFuncClz): 121 (JSC::numberProtoFuncToString): 122 (JSC::numberProtoFuncToLocaleString): 123 (JSC::numberProtoFuncValueOf): 124 * runtime/ObjectPrototype.cpp: 125 (JSC::objectProtoFuncValueOf): 126 (JSC::objectProtoFuncHasOwnProperty): 127 (JSC::objectProtoFuncIsPrototypeOf): 128 (JSC::objectProtoFuncDefineGetter): 129 (JSC::objectProtoFuncDefineSetter): 130 (JSC::objectProtoFuncLookupGetter): 131 (JSC::objectProtoFuncLookupSetter): 132 (JSC::objectProtoFuncPropertyIsEnumerable): 133 (JSC::objectProtoFuncToLocaleString): 134 (JSC::objectProtoFuncToString): 135 * runtime/RegExpPrototype.cpp: 136 (JSC::regExpProtoFuncTest): 137 (JSC::regExpProtoFuncExec): 138 (JSC::regExpProtoFuncCompile): 139 (JSC::regExpProtoFuncToString): 140 * runtime/StringPrototype.cpp: 141 (JSC::stringProtoFuncReplace): 142 (JSC::stringProtoFuncToString): 143 (JSC::stringProtoFuncCharAt): 144 (JSC::stringProtoFuncCharCodeAt): 145 (JSC::stringProtoFuncConcat): 146 (JSC::stringProtoFuncIndexOf): 147 (JSC::stringProtoFuncLastIndexOf): 148 (JSC::stringProtoFuncMatch): 149 (JSC::stringProtoFuncSearch): 150 (JSC::stringProtoFuncSlice): 151 (JSC::stringProtoFuncSplit): 152 (JSC::stringProtoFuncSubstr): 153 (JSC::stringProtoFuncSubstring): 154 (JSC::stringProtoFuncToLowerCase): 155 (JSC::stringProtoFuncToUpperCase): 156 (JSC::stringProtoFuncLocaleCompare): 157 (JSC::stringProtoFuncBig): 158 (JSC::stringProtoFuncSmall): 159 (JSC::stringProtoFuncBlink): 160 (JSC::stringProtoFuncBold): 161 (JSC::stringProtoFuncFixed): 162 (JSC::stringProtoFuncItalics): 163 (JSC::stringProtoFuncStrike): 164 (JSC::stringProtoFuncSub): 165 (JSC::stringProtoFuncSup): 166 (JSC::stringProtoFuncFontcolor): 167 (JSC::stringProtoFuncFontsize): 168 (JSC::stringProtoFuncAnchor): 169 (JSC::stringProtoFuncLink): 170 (JSC::stringProtoFuncTrim): 171 (JSC::stringProtoFuncTrimLeft): 172 (JSC::stringProtoFuncTrimRight): 173 1 174 2014-03-28 Filip Pizlo <fpizlo@apple.com> 2 175 -
trunk/Source/JavaScriptCore/dfg/DFGOSREntry.cpp
r164229 r166493 131 131 JSValue value; 132 132 if (!argument) 133 value = exec-> hostThisValue();133 value = exec->thisValue(); 134 134 else 135 135 value = exec->argument(argument - 1); -
trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp
r165982 r166493 72 72 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeAttributeEvaluate(ExecState* exec) 73 73 { 74 JSValue thisValue = exec-> hostThisValue();74 JSValue thisValue = exec->thisValue(); 75 75 JSInjectedScriptHost* castedThis = jsDynamicCast<JSInjectedScriptHost*>(thisValue); 76 76 if (!castedThis) … … 83 83 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionInternalConstructorName(ExecState* exec) 84 84 { 85 JSValue thisValue = exec-> hostThisValue();85 JSValue thisValue = exec->thisValue(); 86 86 JSInjectedScriptHost* castedThis = jsDynamicCast<JSInjectedScriptHost*>(thisValue); 87 87 if (!castedThis) … … 94 94 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionIsHTMLAllCollection(ExecState* exec) 95 95 { 96 JSValue thisValue = exec-> hostThisValue();96 JSValue thisValue = exec->thisValue(); 97 97 JSInjectedScriptHost* castedThis = jsDynamicCast<JSInjectedScriptHost*>(thisValue); 98 98 if (!castedThis) … … 105 105 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionType(ExecState* exec) 106 106 { 107 JSValue thisValue = exec-> hostThisValue();107 JSValue thisValue = exec->thisValue(); 108 108 JSInjectedScriptHost* castedThis = jsDynamicCast<JSInjectedScriptHost*>(thisValue); 109 109 if (!castedThis) … … 116 116 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionFunctionDetails(ExecState* exec) 117 117 { 118 JSValue thisValue = exec-> hostThisValue();118 JSValue thisValue = exec->thisValue(); 119 119 JSInjectedScriptHost* castedThis = jsDynamicCast<JSInjectedScriptHost*>(thisValue); 120 120 if (!castedThis) … … 127 127 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionGetInternalProperties(ExecState* exec) 128 128 { 129 JSValue thisValue = exec-> hostThisValue();129 JSValue thisValue = exec->thisValue(); 130 130 JSInjectedScriptHost* castedThis = jsDynamicCast<JSInjectedScriptHost*>(thisValue); 131 131 if (!castedThis) -
trunk/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.cpp
r165982 r166493 99 99 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFramePrototypeFunctionEvaluate(ExecState* exec) 100 100 { 101 JSValue thisValue = exec-> hostThisValue();101 JSValue thisValue = exec->thisValue(); 102 102 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 103 103 if (!castedThis) … … 110 110 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFramePrototypeFunctionScopeType(ExecState* exec) 111 111 { 112 JSValue thisValue = exec-> hostThisValue();112 JSValue thisValue = exec->thisValue(); 113 113 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 114 114 if (!castedThis) … … 121 121 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeCaller(ExecState* exec) 122 122 { 123 JSValue thisValue = exec-> hostThisValue();123 JSValue thisValue = exec->thisValue(); 124 124 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 125 125 if (!castedThis) … … 132 132 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeSourceID(ExecState* exec) 133 133 { 134 JSValue thisValue = exec-> hostThisValue();134 JSValue thisValue = exec->thisValue(); 135 135 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 136 136 if (!castedThis) … … 143 143 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeLine(ExecState* exec) 144 144 { 145 JSValue thisValue = exec-> hostThisValue();145 JSValue thisValue = exec->thisValue(); 146 146 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 147 147 if (!castedThis) … … 154 154 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeColumn(ExecState* exec) 155 155 { 156 JSValue thisValue = exec-> hostThisValue();156 JSValue thisValue = exec->thisValue(); 157 157 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 158 158 if (!castedThis) … … 165 165 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeFunctionName(ExecState* exec) 166 166 { 167 JSValue thisValue = exec-> hostThisValue();167 JSValue thisValue = exec->thisValue(); 168 168 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 169 169 if (!castedThis) … … 176 176 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeScopeChain(ExecState* exec) 177 177 { 178 JSValue thisValue = exec-> hostThisValue();178 JSValue thisValue = exec->thisValue(); 179 179 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 180 180 if (!castedThis) … … 187 187 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeThisObject(ExecState* exec) 188 188 { 189 JSValue thisValue = exec-> hostThisValue();189 JSValue thisValue = exec->thisValue(); 190 190 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 191 191 if (!castedThis) … … 198 198 EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFrameAttributeType(ExecState* exec) 199 199 { 200 JSValue thisValue = exec-> hostThisValue();200 JSValue thisValue = exec->thisValue(); 201 201 JSJavaScriptCallFrame* castedThis = jsDynamicCast<JSJavaScriptCallFrame*>(thisValue); 202 202 if (!castedThis) -
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r165999 r166493 265 265 static int offsetFor(size_t argumentCountIncludingThis) { return argumentCountIncludingThis + JSStack::ThisArgument - 1; } 266 266 267 // FIXME: Remove these.268 int hostThisRegister() { return thisArgumentOffset(); }269 JSValue hostThisValue() { return thisValue(); }270 271 267 static CallFrame* noCaller() { return 0; } 272 268 -
trunk/Source/JavaScriptCore/runtime/Arguments.cpp
r164764 r166493 378 378 EncodedJSValue JSC_HOST_CALL argumentsFuncIterator(ExecState* exec) 379 379 { 380 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);380 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 381 381 Arguments* arguments = jsDynamicCast<Arguments*>(thisObj); 382 382 if (!arguments) -
trunk/Source/JavaScriptCore/runtime/ArrayPrototype.cpp
r164764 r166493 269 269 EncodedJSValue JSC_HOST_CALL arrayProtoFuncToString(ExecState* exec) 270 270 { 271 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);271 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 272 272 273 273 // 1. Let array be the result of calling ToObject on the this value. … … 327 327 EncodedJSValue JSC_HOST_CALL arrayProtoFuncToLocaleString(ExecState* exec) 328 328 { 329 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);329 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 330 330 331 331 JSObject* thisObj = thisValue.toObject(exec); … … 370 370 EncodedJSValue JSC_HOST_CALL arrayProtoFuncJoin(ExecState* exec) 371 371 { 372 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);372 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 373 373 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 374 374 if (exec->hadException()) … … 416 416 EncodedJSValue JSC_HOST_CALL arrayProtoFuncConcat(ExecState* exec) 417 417 { 418 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);418 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 419 419 JSArray* arr = constructEmptyArray(exec, nullptr); 420 420 unsigned n = 0; … … 451 451 EncodedJSValue JSC_HOST_CALL arrayProtoFuncPop(ExecState* exec) 452 452 { 453 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);453 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 454 454 455 455 if (isJSArray(thisValue)) … … 480 480 EncodedJSValue JSC_HOST_CALL arrayProtoFuncPush(ExecState* exec) 481 481 { 482 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);482 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 483 483 484 484 if (isJSArray(thisValue) && exec->argumentCount() == 1) { … … 513 513 EncodedJSValue JSC_HOST_CALL arrayProtoFuncReverse(ExecState* exec) 514 514 { 515 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);515 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 516 516 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 517 517 if (exec->hadException()) … … 551 551 EncodedJSValue JSC_HOST_CALL arrayProtoFuncShift(ExecState* exec) 552 552 { 553 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);553 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 554 554 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 555 555 if (exec->hadException()) … … 573 573 { 574 574 // http://developer.netscape.com/docs/manuals/js/client/jsref/array.htm#1193713 or 15.4.4.10 575 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);575 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 576 576 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 577 577 if (exec->hadException()) … … 681 681 EncodedJSValue JSC_HOST_CALL arrayProtoFuncSort(ExecState* exec) 682 682 { 683 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);683 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 684 684 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 685 685 if (!length || exec->hadException()) … … 756 756 // 15.4.4.12 757 757 758 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);758 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 759 759 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 760 760 if (exec->hadException()) … … 814 814 // 15.4.4.13 815 815 816 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);816 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 817 817 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 818 818 if (exec->hadException()) … … 837 837 EncodedJSValue JSC_HOST_CALL arrayProtoFuncReduce(ExecState* exec) 838 838 { 839 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);839 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 840 840 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 841 841 if (exec->hadException()) … … 914 914 EncodedJSValue JSC_HOST_CALL arrayProtoFuncReduceRight(ExecState* exec) 915 915 { 916 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);916 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 917 917 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 918 918 if (exec->hadException()) … … 991 991 { 992 992 // 15.4.4.14 993 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);993 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 994 994 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 995 995 if (exec->hadException()) … … 1014 1014 { 1015 1015 // 15.4.4.15 1016 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);1016 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 1017 1017 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); 1018 1018 if (!length) … … 1049 1049 EncodedJSValue JSC_HOST_CALL arrayProtoFuncValues(ExecState* exec) 1050 1050 { 1051 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);1051 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 1052 1052 return JSValue::encode(JSArrayIterator::create(exec, exec->callee()->globalObject()->arrayIteratorStructure(), ArrayIterateValue, thisObj)); 1053 1053 } … … 1055 1055 EncodedJSValue JSC_HOST_CALL arrayProtoFuncEntries(ExecState* exec) 1056 1056 { 1057 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);1057 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 1058 1058 return JSValue::encode(JSArrayIterator::create(exec, exec->callee()->globalObject()->arrayIteratorStructure(), ArrayIterateKeyValue, thisObj)); 1059 1059 } … … 1061 1061 EncodedJSValue JSC_HOST_CALL arrayProtoFuncKeys(ExecState* exec) 1062 1062 { 1063 JSObject* thisObj = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);1063 JSObject* thisObj = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 1064 1064 return JSValue::encode(JSArrayIterator::create(exec, exec->callee()->globalObject()->arrayIteratorStructure(), ArrayIterateKey, thisObj)); 1065 1065 } -
trunk/Source/JavaScriptCore/runtime/BooleanPrototype.cpp
r163844 r166493 74 74 { 75 75 VM* vm = &exec->vm(); 76 JSValue thisValue = exec-> hostThisValue();76 JSValue thisValue = exec->thisValue(); 77 77 if (thisValue == jsBoolean(false)) 78 78 return JSValue::encode(vm->smallStrings.falseString()); … … 93 93 EncodedJSValue JSC_HOST_CALL booleanProtoFuncValueOf(ExecState* exec) 94 94 { 95 JSValue thisValue = exec-> hostThisValue();95 JSValue thisValue = exec->thisValue(); 96 96 if (thisValue.isBoolean()) 97 97 return JSValue::encode(thisValue); -
trunk/Source/JavaScriptCore/runtime/ConsolePrototype.cpp
r166439 r166493 100 100 static EncodedJSValue consoleLogWithLevel(ExecState* exec, MessageLevel level) 101 101 { 102 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());102 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 103 103 if (!castedThis) 104 104 return throwVMTypeError(exec); … … 135 135 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncClear(ExecState* exec) 136 136 { 137 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());137 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 138 138 if (!castedThis) 139 139 return throwVMTypeError(exec); … … 150 150 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncDir(ExecState* exec) 151 151 { 152 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());152 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 153 153 if (!castedThis) 154 154 return throwVMTypeError(exec); … … 165 165 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncDirXML(ExecState* exec) 166 166 { 167 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());167 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 168 168 if (!castedThis) 169 169 return throwVMTypeError(exec); … … 180 180 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTable(ExecState* exec) 181 181 { 182 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());182 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 183 183 if (!castedThis) 184 184 return throwVMTypeError(exec); … … 195 195 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTrace(ExecState* exec) 196 196 { 197 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());197 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 198 198 if (!castedThis) 199 199 return throwVMTypeError(exec); … … 210 210 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncAssert(ExecState* exec) 211 211 { 212 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());212 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 213 213 if (!castedThis) 214 214 return throwVMTypeError(exec); … … 229 229 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncCount(ExecState* exec) 230 230 { 231 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());231 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 232 232 if (!castedThis) 233 233 return throwVMTypeError(exec); … … 244 244 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncProfile(ExecState* exec) 245 245 { 246 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());246 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 247 247 if (!castedThis) 248 248 return throwVMTypeError(exec); … … 268 268 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncProfileEnd(ExecState* exec) 269 269 { 270 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());270 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 271 271 if (!castedThis) 272 272 return throwVMTypeError(exec); … … 292 292 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTime(ExecState* exec) 293 293 { 294 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());294 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 295 295 if (!castedThis) 296 296 return throwVMTypeError(exec); … … 313 313 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTimeEnd(ExecState* exec) 314 314 { 315 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());315 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 316 316 if (!castedThis) 317 317 return throwVMTypeError(exec); … … 334 334 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTimeStamp(ExecState* exec) 335 335 { 336 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());336 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 337 337 if (!castedThis) 338 338 return throwVMTypeError(exec); … … 349 349 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncGroup(ExecState* exec) 350 350 { 351 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());351 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 352 352 if (!castedThis) 353 353 return throwVMTypeError(exec); … … 364 364 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncGroupCollapsed(ExecState* exec) 365 365 { 366 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());366 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 367 367 if (!castedThis) 368 368 return throwVMTypeError(exec); … … 379 379 static EncodedJSValue JSC_HOST_CALL consoleProtoFuncGroupEnd(ExecState* exec) 380 380 { 381 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec-> hostThisValue());381 JSConsole* castedThis = jsDynamicCast<JSConsole*>(exec->thisValue()); 382 382 if (!castedThis) 383 383 return throwVMTypeError(exec); -
trunk/Source/JavaScriptCore/runtime/DatePrototype.cpp
r165703 r166493 320 320 static EncodedJSValue formateDateInstance(ExecState* exec, DateTimeFormat format, bool asUTCVariant) 321 321 { 322 JSValue thisValue = exec-> hostThisValue();322 JSValue thisValue = exec->thisValue(); 323 323 if (!thisValue.inherits(DateInstance::info())) 324 324 return throwVMTypeError(exec); … … 515 515 EncodedJSValue JSC_HOST_CALL dateProtoFuncToISOString(ExecState* exec) 516 516 { 517 JSValue thisValue = exec-> hostThisValue();517 JSValue thisValue = exec->thisValue(); 518 518 if (!thisValue.inherits(DateInstance::info())) 519 519 return throwVMTypeError(exec); … … 561 561 EncodedJSValue JSC_HOST_CALL dateProtoFuncToLocaleString(ExecState* exec) 562 562 { 563 JSValue thisValue = exec-> hostThisValue();563 JSValue thisValue = exec->thisValue(); 564 564 if (!thisValue.inherits(DateInstance::info())) 565 565 return throwVMTypeError(exec); … … 571 571 EncodedJSValue JSC_HOST_CALL dateProtoFuncToLocaleDateString(ExecState* exec) 572 572 { 573 JSValue thisValue = exec-> hostThisValue();573 JSValue thisValue = exec->thisValue(); 574 574 if (!thisValue.inherits(DateInstance::info())) 575 575 return throwVMTypeError(exec); … … 581 581 EncodedJSValue JSC_HOST_CALL dateProtoFuncToLocaleTimeString(ExecState* exec) 582 582 { 583 JSValue thisValue = exec-> hostThisValue();583 JSValue thisValue = exec->thisValue(); 584 584 if (!thisValue.inherits(DateInstance::info())) 585 585 return throwVMTypeError(exec); … … 591 591 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetTime(ExecState* exec) 592 592 { 593 JSValue thisValue = exec-> hostThisValue();593 JSValue thisValue = exec->thisValue(); 594 594 if (!thisValue.inherits(DateInstance::info())) 595 595 return throwVMTypeError(exec); … … 600 600 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetFullYear(ExecState* exec) 601 601 { 602 JSValue thisValue = exec-> hostThisValue();602 JSValue thisValue = exec->thisValue(); 603 603 if (!thisValue.inherits(DateInstance::info())) 604 604 return throwVMTypeError(exec); … … 614 614 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCFullYear(ExecState* exec) 615 615 { 616 JSValue thisValue = exec-> hostThisValue();616 JSValue thisValue = exec->thisValue(); 617 617 if (!thisValue.inherits(DateInstance::info())) 618 618 return throwVMTypeError(exec); … … 634 634 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetMonth(ExecState* exec) 635 635 { 636 JSValue thisValue = exec-> hostThisValue();636 JSValue thisValue = exec->thisValue(); 637 637 if (!thisValue.inherits(DateInstance::info())) 638 638 return throwVMTypeError(exec); … … 648 648 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCMonth(ExecState* exec) 649 649 { 650 JSValue thisValue = exec-> hostThisValue();650 JSValue thisValue = exec->thisValue(); 651 651 if (!thisValue.inherits(DateInstance::info())) 652 652 return throwVMTypeError(exec); … … 662 662 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetDate(ExecState* exec) 663 663 { 664 JSValue thisValue = exec-> hostThisValue();664 JSValue thisValue = exec->thisValue(); 665 665 if (!thisValue.inherits(DateInstance::info())) 666 666 return throwVMTypeError(exec); … … 676 676 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCDate(ExecState* exec) 677 677 { 678 JSValue thisValue = exec-> hostThisValue();678 JSValue thisValue = exec->thisValue(); 679 679 if (!thisValue.inherits(DateInstance::info())) 680 680 return throwVMTypeError(exec); … … 690 690 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetDay(ExecState* exec) 691 691 { 692 JSValue thisValue = exec-> hostThisValue();692 JSValue thisValue = exec->thisValue(); 693 693 if (!thisValue.inherits(DateInstance::info())) 694 694 return throwVMTypeError(exec); … … 704 704 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCDay(ExecState* exec) 705 705 { 706 JSValue thisValue = exec-> hostThisValue();706 JSValue thisValue = exec->thisValue(); 707 707 if (!thisValue.inherits(DateInstance::info())) 708 708 return throwVMTypeError(exec); … … 718 718 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetHours(ExecState* exec) 719 719 { 720 JSValue thisValue = exec-> hostThisValue();720 JSValue thisValue = exec->thisValue(); 721 721 if (!thisValue.inherits(DateInstance::info())) 722 722 return throwVMTypeError(exec); … … 732 732 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCHours(ExecState* exec) 733 733 { 734 JSValue thisValue = exec-> hostThisValue();734 JSValue thisValue = exec->thisValue(); 735 735 if (!thisValue.inherits(DateInstance::info())) 736 736 return throwVMTypeError(exec); … … 746 746 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetMinutes(ExecState* exec) 747 747 { 748 JSValue thisValue = exec-> hostThisValue();748 JSValue thisValue = exec->thisValue(); 749 749 if (!thisValue.inherits(DateInstance::info())) 750 750 return throwVMTypeError(exec); … … 760 760 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCMinutes(ExecState* exec) 761 761 { 762 JSValue thisValue = exec-> hostThisValue();762 JSValue thisValue = exec->thisValue(); 763 763 if (!thisValue.inherits(DateInstance::info())) 764 764 return throwVMTypeError(exec); … … 774 774 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetSeconds(ExecState* exec) 775 775 { 776 JSValue thisValue = exec-> hostThisValue();776 JSValue thisValue = exec->thisValue(); 777 777 if (!thisValue.inherits(DateInstance::info())) 778 778 return throwVMTypeError(exec); … … 788 788 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCSeconds(ExecState* exec) 789 789 { 790 JSValue thisValue = exec-> hostThisValue();790 JSValue thisValue = exec->thisValue(); 791 791 if (!thisValue.inherits(DateInstance::info())) 792 792 return throwVMTypeError(exec); … … 802 802 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetMilliSeconds(ExecState* exec) 803 803 { 804 JSValue thisValue = exec-> hostThisValue();804 JSValue thisValue = exec->thisValue(); 805 805 if (!thisValue.inherits(DateInstance::info())) 806 806 return throwVMTypeError(exec); … … 818 818 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetUTCMilliseconds(ExecState* exec) 819 819 { 820 JSValue thisValue = exec-> hostThisValue();820 JSValue thisValue = exec->thisValue(); 821 821 if (!thisValue.inherits(DateInstance::info())) 822 822 return throwVMTypeError(exec); … … 834 834 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetTimezoneOffset(ExecState* exec) 835 835 { 836 JSValue thisValue = exec-> hostThisValue();836 JSValue thisValue = exec->thisValue(); 837 837 if (!thisValue.inherits(DateInstance::info())) 838 838 return throwVMTypeError(exec); … … 848 848 EncodedJSValue JSC_HOST_CALL dateProtoFuncSetTime(ExecState* exec) 849 849 { 850 JSValue thisValue = exec-> hostThisValue();850 JSValue thisValue = exec->thisValue(); 851 851 if (!thisValue.inherits(DateInstance::info())) 852 852 return throwVMTypeError(exec); … … 862 862 static EncodedJSValue setNewValueFromTimeArgs(ExecState* exec, int numArgsToUse, bool inputIsUTC) 863 863 { 864 JSValue thisValue = exec-> hostThisValue();864 JSValue thisValue = exec->thisValue(); 865 865 if (!thisValue.inherits(DateInstance::info())) 866 866 return throwVMTypeError(exec); … … 900 900 static EncodedJSValue setNewValueFromDateArgs(ExecState* exec, int numArgsToUse, bool inputIsUTC) 901 901 { 902 JSValue thisValue = exec-> hostThisValue();902 JSValue thisValue = exec->thisValue(); 903 903 if (!thisValue.inherits(DateInstance::info())) 904 904 return throwVMTypeError(exec); … … 1025 1025 EncodedJSValue JSC_HOST_CALL dateProtoFuncSetYear(ExecState* exec) 1026 1026 { 1027 JSValue thisValue = exec-> hostThisValue();1027 JSValue thisValue = exec->thisValue(); 1028 1028 if (!thisValue.inherits(DateInstance::info())) 1029 1029 return throwVMTypeError(exec); … … 1067 1067 EncodedJSValue JSC_HOST_CALL dateProtoFuncGetYear(ExecState* exec) 1068 1068 { 1069 JSValue thisValue = exec-> hostThisValue();1069 JSValue thisValue = exec->thisValue(); 1070 1070 if (!thisValue.inherits(DateInstance::info())) 1071 1071 return throwVMTypeError(exec); … … 1083 1083 EncodedJSValue JSC_HOST_CALL dateProtoFuncToJSON(ExecState* exec) 1084 1084 { 1085 JSValue thisValue = exec-> hostThisValue();1085 JSValue thisValue = exec->thisValue(); 1086 1086 JSObject* object = jsCast<JSObject*>(thisValue.toThis(exec, NotStrictMode)); 1087 1087 if (exec->hadException()) -
trunk/Source/JavaScriptCore/runtime/ErrorPrototype.cpp
r163844 r166493 73 73 { 74 74 // 1. Let O be the this value. 75 JSValue thisValue = exec-> hostThisValue();75 JSValue thisValue = exec->thisValue(); 76 76 77 77 // 2. If Type(O) is not Object, throw a TypeError exception. -
trunk/Source/JavaScriptCore/runtime/FunctionPrototype.cpp
r164835 r166493 103 103 EncodedJSValue JSC_HOST_CALL functionProtoFuncToString(ExecState* exec) 104 104 { 105 JSValue thisValue = exec-> hostThisValue();105 JSValue thisValue = exec->thisValue(); 106 106 if (thisValue.inherits(JSFunction::info())) { 107 107 JSFunction* function = jsCast<JSFunction*>(thisValue); … … 128 128 129 129 // Let Target be the this value. 130 JSValue target = exec-> hostThisValue();130 JSValue target = exec->thisValue(); 131 131 132 132 // If IsCallable(Target) is false, throw a TypeError exception. -
trunk/Source/JavaScriptCore/runtime/NamePrototype.cpp
r163844 r166493 68 68 EncodedJSValue JSC_HOST_CALL privateNameProtoFuncToString(ExecState* exec) 69 69 { 70 JSValue thisValue = exec-> hostThisValue();70 JSValue thisValue = exec->thisValue(); 71 71 if (!thisValue.isObject()) 72 72 return throwVMTypeError(exec); -
trunk/Source/JavaScriptCore/runtime/NumberPrototype.cpp
r165047 r166493 368 368 { 369 369 double x; 370 if (!toThisNumber(exec-> hostThisValue(), x))370 if (!toThisNumber(exec->thisValue(), x)) 371 371 return throwVMTypeError(exec); 372 372 … … 399 399 { 400 400 double x; 401 if (!toThisNumber(exec-> hostThisValue(), x))401 if (!toThisNumber(exec->thisValue(), x)) 402 402 return throwVMTypeError(exec); 403 403 … … 432 432 { 433 433 double x; 434 if (!toThisNumber(exec-> hostThisValue(), x))434 if (!toThisNumber(exec->thisValue(), x)) 435 435 return throwVMTypeError(exec); 436 436 … … 470 470 { 471 471 double x; 472 if (!toThisNumber(exec-> hostThisValue(), x))472 if (!toThisNumber(exec->thisValue(), x)) 473 473 return throwVMTypeError(exec); 474 474 … … 524 524 { 525 525 double doubleValue; 526 if (!toThisNumber(exec-> hostThisValue(), doubleValue))526 if (!toThisNumber(exec->thisValue(), doubleValue)) 527 527 return throwVMTypeError(exec); 528 528 … … 550 550 { 551 551 double x; 552 if (!toThisNumber(exec-> hostThisValue(), x))552 if (!toThisNumber(exec->thisValue(), x)) 553 553 return throwVMTypeError(exec); 554 554 … … 559 559 { 560 560 double x; 561 if (!toThisNumber(exec-> hostThisValue(), x))561 if (!toThisNumber(exec->thisValue(), x)) 562 562 return throwVMTypeError(exec); 563 563 return JSValue::encode(jsNumber(x)); -
trunk/Source/JavaScriptCore/runtime/ObjectPrototype.cpp
r165703 r166493 79 79 EncodedJSValue JSC_HOST_CALL objectProtoFuncValueOf(ExecState* exec) 80 80 { 81 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);81 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 82 82 return JSValue::encode(thisValue.toObject(exec)); 83 83 } … … 85 85 EncodedJSValue JSC_HOST_CALL objectProtoFuncHasOwnProperty(ExecState* exec) 86 86 { 87 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);87 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 88 88 return JSValue::encode(jsBoolean(thisValue.toObject(exec)->hasOwnProperty(exec, Identifier(exec, exec->argument(0).toString(exec)->value(exec))))); 89 89 } … … 91 91 EncodedJSValue JSC_HOST_CALL objectProtoFuncIsPrototypeOf(ExecState* exec) 92 92 { 93 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);93 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 94 94 JSObject* thisObj = thisValue.toObject(exec); 95 95 … … 110 110 EncodedJSValue JSC_HOST_CALL objectProtoFuncDefineGetter(ExecState* exec) 111 111 { 112 JSObject* thisObject = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);112 JSObject* thisObject = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 113 113 if (exec->hadException()) 114 114 return JSValue::encode(jsUndefined()); … … 130 130 EncodedJSValue JSC_HOST_CALL objectProtoFuncDefineSetter(ExecState* exec) 131 131 { 132 JSObject* thisObject = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);132 JSObject* thisObject = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 133 133 if (exec->hadException()) 134 134 return JSValue::encode(jsUndefined()); … … 150 150 EncodedJSValue JSC_HOST_CALL objectProtoFuncLookupGetter(ExecState* exec) 151 151 { 152 JSObject* thisObject = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);152 JSObject* thisObject = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 153 153 if (exec->hadException()) 154 154 return JSValue::encode(jsUndefined()); … … 166 166 EncodedJSValue JSC_HOST_CALL objectProtoFuncLookupSetter(ExecState* exec) 167 167 { 168 JSObject* thisObject = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);168 JSObject* thisObject = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 169 169 if (exec->hadException()) 170 170 return JSValue::encode(jsUndefined()); … … 182 182 EncodedJSValue JSC_HOST_CALL objectProtoFuncPropertyIsEnumerable(ExecState* exec) 183 183 { 184 JSObject* thisObject = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);184 JSObject* thisObject = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 185 185 Identifier propertyName(exec, exec->argument(0).toString(exec)->value(exec)); 186 186 … … 194 194 { 195 195 // 1. Let O be the result of calling ToObject passing the this value as the argument. 196 JSObject* object = exec-> hostThisValue().toThis(exec, StrictMode).toObject(exec);196 JSObject* object = exec->thisValue().toThis(exec, StrictMode).toObject(exec); 197 197 if (exec->hadException()) 198 198 return JSValue::encode(jsUndefined()); … … 214 214 { 215 215 VM& vm = exec->vm(); 216 JSValue thisValue = exec-> hostThisValue().toThis(exec, StrictMode);216 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 217 217 if (thisValue.isUndefinedOrNull()) 218 218 return JSValue::encode(jsNontrivialString(&vm, String(thisValue.isUndefined() ? ASCIILiteral("[object Undefined]") : ASCIILiteral("[object Null]")))); -
trunk/Source/JavaScriptCore/runtime/RegExpPrototype.cpp
r163844 r166493 75 75 EncodedJSValue JSC_HOST_CALL regExpProtoFuncTest(ExecState* exec) 76 76 { 77 JSValue thisValue = exec-> hostThisValue();77 JSValue thisValue = exec->thisValue(); 78 78 if (!thisValue.inherits(RegExpObject::info())) 79 79 return throwVMTypeError(exec); … … 83 83 EncodedJSValue JSC_HOST_CALL regExpProtoFuncExec(ExecState* exec) 84 84 { 85 JSValue thisValue = exec-> hostThisValue();85 JSValue thisValue = exec->thisValue(); 86 86 if (!thisValue.inherits(RegExpObject::info())) 87 87 return throwVMTypeError(exec); … … 91 91 EncodedJSValue JSC_HOST_CALL regExpProtoFuncCompile(ExecState* exec) 92 92 { 93 JSValue thisValue = exec-> hostThisValue();93 JSValue thisValue = exec->thisValue(); 94 94 if (!thisValue.inherits(RegExpObject::info())) 95 95 return throwVMTypeError(exec); … … 129 129 EncodedJSValue JSC_HOST_CALL regExpProtoFuncToString(ExecState* exec) 130 130 { 131 JSValue thisValue = exec-> hostThisValue();131 JSValue thisValue = exec->thisValue(); 132 132 if (!thisValue.inherits(RegExpObject::info())) 133 133 return throwVMTypeError(exec); -
trunk/Source/JavaScriptCore/runtime/StringPrototype.cpp
r165703 r166493 669 669 EncodedJSValue JSC_HOST_CALL stringProtoFuncReplace(ExecState* exec) 670 670 { 671 JSValue thisValue = exec-> hostThisValue();671 JSValue thisValue = exec->thisValue(); 672 672 if (!checkObjectCoercible(thisValue)) 673 673 return throwVMTypeError(exec); … … 682 682 EncodedJSValue JSC_HOST_CALL stringProtoFuncToString(ExecState* exec) 683 683 { 684 JSValue thisValue = exec-> hostThisValue();684 JSValue thisValue = exec->thisValue(); 685 685 // Also used for valueOf. 686 686 … … 696 696 EncodedJSValue JSC_HOST_CALL stringProtoFuncCharAt(ExecState* exec) 697 697 { 698 JSValue thisValue = exec-> hostThisValue();698 JSValue thisValue = exec->thisValue(); 699 699 if (!checkObjectCoercible(thisValue)) 700 700 return throwVMTypeError(exec); … … 716 716 EncodedJSValue JSC_HOST_CALL stringProtoFuncCharCodeAt(ExecState* exec) 717 717 { 718 JSValue thisValue = exec-> hostThisValue();718 JSValue thisValue = exec->thisValue(); 719 719 if (!checkObjectCoercible(thisValue)) 720 720 return throwVMTypeError(exec); … … 739 739 EncodedJSValue JSC_HOST_CALL stringProtoFuncConcat(ExecState* exec) 740 740 { 741 JSValue thisValue = exec-> hostThisValue();741 JSValue thisValue = exec->thisValue(); 742 742 if (thisValue.isString() && exec->argumentCount() == 1) 743 743 return JSValue::encode(jsString(exec, asString(thisValue), exec->uncheckedArgument(0).toString(exec))); … … 750 750 EncodedJSValue JSC_HOST_CALL stringProtoFuncIndexOf(ExecState* exec) 751 751 { 752 JSValue thisValue = exec-> hostThisValue();752 JSValue thisValue = exec->thisValue(); 753 753 if (!checkObjectCoercible(thisValue)) 754 754 return throwVMTypeError(exec); … … 786 786 EncodedJSValue JSC_HOST_CALL stringProtoFuncLastIndexOf(ExecState* exec) 787 787 { 788 JSValue thisValue = exec-> hostThisValue();788 JSValue thisValue = exec->thisValue(); 789 789 if (!checkObjectCoercible(thisValue)) 790 790 return throwVMTypeError(exec); … … 823 823 EncodedJSValue JSC_HOST_CALL stringProtoFuncMatch(ExecState* exec) 824 824 { 825 JSValue thisValue = exec-> hostThisValue();825 JSValue thisValue = exec->thisValue(); 826 826 if (!checkObjectCoercible(thisValue)) 827 827 return throwVMTypeError(exec); … … 882 882 EncodedJSValue JSC_HOST_CALL stringProtoFuncSearch(ExecState* exec) 883 883 { 884 JSValue thisValue = exec-> hostThisValue();884 JSValue thisValue = exec->thisValue(); 885 885 if (!checkObjectCoercible(thisValue)) 886 886 return throwVMTypeError(exec); … … 912 912 EncodedJSValue JSC_HOST_CALL stringProtoFuncSlice(ExecState* exec) 913 913 { 914 JSValue thisValue = exec-> hostThisValue();914 JSValue thisValue = exec->thisValue(); 915 915 if (!checkObjectCoercible(thisValue)) 916 916 return throwVMTypeError(exec); … … 970 970 { 971 971 // 1. Call CheckObjectCoercible passing the this value as its argument. 972 JSValue thisValue = exec-> hostThisValue();972 JSValue thisValue = exec->thisValue(); 973 973 if (!checkObjectCoercible(thisValue)) 974 974 return throwVMTypeError(exec); … … 1178 1178 EncodedJSValue JSC_HOST_CALL stringProtoFuncSubstr(ExecState* exec) 1179 1179 { 1180 JSValue thisValue = exec-> hostThisValue();1180 JSValue thisValue = exec->thisValue(); 1181 1181 if (!checkObjectCoercible(thisValue)) 1182 1182 return throwVMTypeError(exec); … … 1217 1217 EncodedJSValue JSC_HOST_CALL stringProtoFuncSubstring(ExecState* exec) 1218 1218 { 1219 JSValue thisValue = exec-> hostThisValue();1219 JSValue thisValue = exec->thisValue(); 1220 1220 if (!checkObjectCoercible(thisValue)) 1221 1221 return throwVMTypeError(exec); … … 1256 1256 EncodedJSValue JSC_HOST_CALL stringProtoFuncToLowerCase(ExecState* exec) 1257 1257 { 1258 JSValue thisValue = exec-> hostThisValue();1258 JSValue thisValue = exec->thisValue(); 1259 1259 if (!checkObjectCoercible(thisValue)) 1260 1260 return throwVMTypeError(exec); … … 1275 1275 EncodedJSValue JSC_HOST_CALL stringProtoFuncToUpperCase(ExecState* exec) 1276 1276 { 1277 JSValue thisValue = exec-> hostThisValue();1277 JSValue thisValue = exec->thisValue(); 1278 1278 if (!checkObjectCoercible(thisValue)) 1279 1279 return throwVMTypeError(exec); … … 1294 1294 EncodedJSValue JSC_HOST_CALL stringProtoFuncLocaleCompare(ExecState* exec) 1295 1295 { 1296 JSValue thisValue = exec-> hostThisValue();1296 JSValue thisValue = exec->thisValue(); 1297 1297 if (!checkObjectCoercible(thisValue)) 1298 1298 return throwVMTypeError(exec); … … 1305 1305 EncodedJSValue JSC_HOST_CALL stringProtoFuncBig(ExecState* exec) 1306 1306 { 1307 JSValue thisValue = exec-> hostThisValue();1307 JSValue thisValue = exec->thisValue(); 1308 1308 if (!checkObjectCoercible(thisValue)) 1309 1309 return throwVMTypeError(exec); … … 1314 1314 EncodedJSValue JSC_HOST_CALL stringProtoFuncSmall(ExecState* exec) 1315 1315 { 1316 JSValue thisValue = exec-> hostThisValue();1316 JSValue thisValue = exec->thisValue(); 1317 1317 if (!checkObjectCoercible(thisValue)) 1318 1318 return throwVMTypeError(exec); … … 1323 1323 EncodedJSValue JSC_HOST_CALL stringProtoFuncBlink(ExecState* exec) 1324 1324 { 1325 JSValue thisValue = exec-> hostThisValue();1325 JSValue thisValue = exec->thisValue(); 1326 1326 if (!checkObjectCoercible(thisValue)) 1327 1327 return throwVMTypeError(exec); … … 1332 1332 EncodedJSValue JSC_HOST_CALL stringProtoFuncBold(ExecState* exec) 1333 1333 { 1334 JSValue thisValue = exec-> hostThisValue();1334 JSValue thisValue = exec->thisValue(); 1335 1335 if (!checkObjectCoercible(thisValue)) 1336 1336 return throwVMTypeError(exec); … … 1341 1341 EncodedJSValue JSC_HOST_CALL stringProtoFuncFixed(ExecState* exec) 1342 1342 { 1343 JSValue thisValue = exec-> hostThisValue();1343 JSValue thisValue = exec->thisValue(); 1344 1344 if (!checkObjectCoercible(thisValue)) 1345 1345 return throwVMTypeError(exec); … … 1350 1350 EncodedJSValue JSC_HOST_CALL stringProtoFuncItalics(ExecState* exec) 1351 1351 { 1352 JSValue thisValue = exec-> hostThisValue();1352 JSValue thisValue = exec->thisValue(); 1353 1353 if (!checkObjectCoercible(thisValue)) 1354 1354 return throwVMTypeError(exec); … … 1359 1359 EncodedJSValue JSC_HOST_CALL stringProtoFuncStrike(ExecState* exec) 1360 1360 { 1361 JSValue thisValue = exec-> hostThisValue();1361 JSValue thisValue = exec->thisValue(); 1362 1362 if (!checkObjectCoercible(thisValue)) 1363 1363 return throwVMTypeError(exec); … … 1368 1368 EncodedJSValue JSC_HOST_CALL stringProtoFuncSub(ExecState* exec) 1369 1369 { 1370 JSValue thisValue = exec-> hostThisValue();1370 JSValue thisValue = exec->thisValue(); 1371 1371 if (!checkObjectCoercible(thisValue)) 1372 1372 return throwVMTypeError(exec); … … 1377 1377 EncodedJSValue JSC_HOST_CALL stringProtoFuncSup(ExecState* exec) 1378 1378 { 1379 JSValue thisValue = exec-> hostThisValue();1379 JSValue thisValue = exec->thisValue(); 1380 1380 if (!checkObjectCoercible(thisValue)) 1381 1381 return throwVMTypeError(exec); … … 1386 1386 EncodedJSValue JSC_HOST_CALL stringProtoFuncFontcolor(ExecState* exec) 1387 1387 { 1388 JSValue thisValue = exec-> hostThisValue();1388 JSValue thisValue = exec->thisValue(); 1389 1389 if (!checkObjectCoercible(thisValue)) 1390 1390 return throwVMTypeError(exec); … … 1399 1399 EncodedJSValue JSC_HOST_CALL stringProtoFuncFontsize(ExecState* exec) 1400 1400 { 1401 JSValue thisValue = exec-> hostThisValue();1401 JSValue thisValue = exec->thisValue(); 1402 1402 if (!checkObjectCoercible(thisValue)) 1403 1403 return throwVMTypeError(exec); … … 1448 1448 EncodedJSValue JSC_HOST_CALL stringProtoFuncAnchor(ExecState* exec) 1449 1449 { 1450 JSValue thisValue = exec-> hostThisValue();1450 JSValue thisValue = exec->thisValue(); 1451 1451 if (!checkObjectCoercible(thisValue)) 1452 1452 return throwVMTypeError(exec); … … 1461 1461 EncodedJSValue JSC_HOST_CALL stringProtoFuncLink(ExecState* exec) 1462 1462 { 1463 JSValue thisValue = exec-> hostThisValue();1463 JSValue thisValue = exec->thisValue(); 1464 1464 if (!checkObjectCoercible(thisValue)) 1465 1465 return throwVMTypeError(exec); … … 1532 1532 EncodedJSValue JSC_HOST_CALL stringProtoFuncTrim(ExecState* exec) 1533 1533 { 1534 JSValue thisValue = exec-> hostThisValue();1534 JSValue thisValue = exec->thisValue(); 1535 1535 return JSValue::encode(trimString(exec, thisValue, TrimLeft | TrimRight)); 1536 1536 } … … 1538 1538 EncodedJSValue JSC_HOST_CALL stringProtoFuncTrimLeft(ExecState* exec) 1539 1539 { 1540 JSValue thisValue = exec-> hostThisValue();1540 JSValue thisValue = exec->thisValue(); 1541 1541 return JSValue::encode(trimString(exec, thisValue, TrimLeft)); 1542 1542 } … … 1544 1544 EncodedJSValue JSC_HOST_CALL stringProtoFuncTrimRight(ExecState* exec) 1545 1545 { 1546 JSValue thisValue = exec-> hostThisValue();1546 JSValue thisValue = exec->thisValue(); 1547 1547 return JSValue::encode(trimString(exec, thisValue, TrimRight)); 1548 1548 } -
trunk/Source/WebCore/ChangeLog
r166491 r166493 1 2014-03-31 Dániel Bátyai <dbatyai.u-szeged@partner.samsung.com> 2 3 Remove hostThisRegister() and hostThisValue() 4 https://bugs.webkit.org/show_bug.cgi?id=130895 5 6 Reviewed by Geoffrey Garen. 7 8 Removed hostThisRegister() and hostThisValue() and instead use thisArgumentOffset() and thisValue() respectively. 9 10 No new tests, no behavior changes. 11 12 * bindings/js/JSNavigatorCustom.cpp: 13 (WebCore::JSNavigator::webkitGetUserMedia): 14 * bindings/js/JSPluginElementFunctions.cpp: 15 (WebCore::callPlugin): 16 * bindings/scripts/CodeGeneratorJS.pm: 17 (GenerateImplementation): 18 * bindings/scripts/test/JS/JSFloat64Array.cpp: 19 (WebCore::jsFloat64ArrayPrototypeFunctionFoo): 20 (WebCore::jsFloat64ArrayPrototypeFunctionSet): 21 * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp: 22 (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction): 23 (WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage): 24 * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp: 25 (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction): 26 * bindings/scripts/test/JS/JSTestEventTarget.cpp: 27 (WebCore::jsTestEventTargetPrototypeFunctionItem): 28 (WebCore::jsTestEventTargetPrototypeFunctionAddEventListener): 29 (WebCore::jsTestEventTargetPrototypeFunctionRemoveEventListener): 30 (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent): 31 * bindings/scripts/test/JS/JSTestInterface.cpp: 32 (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod1): 33 (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2): 34 (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod3): 35 (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod1): 36 (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2): 37 (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod3): 38 * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: 39 (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod): 40 * bindings/scripts/test/JS/JSTestObj.cpp: 41 (WebCore::jsTestObjPrototypeFunctionVoidMethod): 42 (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): 43 (WebCore::jsTestObjPrototypeFunctionByteMethod): 44 (WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs): 45 (WebCore::jsTestObjPrototypeFunctionOctetMethod): 46 (WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs): 47 (WebCore::jsTestObjPrototypeFunctionLongMethod): 48 (WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs): 49 (WebCore::jsTestObjPrototypeFunctionObjMethod): 50 (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs): 51 (WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg): 52 (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence): 53 (WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg): 54 (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows): 55 (WebCore::jsTestObjPrototypeFunctionSerializedValue): 56 (WebCore::jsTestObjPrototypeFunctionOptionsObject): 57 (WebCore::jsTestObjPrototypeFunctionMethodWithException): 58 (WebCore::jsTestObjPrototypeFunctionCustomMethod): 59 (WebCore::jsTestObjPrototypeFunctionCustomMethodWithArgs): 60 (WebCore::jsTestObjPrototypeFunctionAddEventListener): 61 (WebCore::jsTestObjPrototypeFunctionRemoveEventListener): 62 (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoid): 63 (WebCore::jsTestObjPrototypeFunctionWithScriptStateObj): 64 (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException): 65 (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException): 66 (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext): 67 (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState): 68 (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException): 69 (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces): 70 (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack): 71 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg): 72 (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg): 73 (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs): 74 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalString): 75 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefined): 76 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString): 77 (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg): 78 (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg): 79 (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg): 80 (WebCore::jsTestObjPrototypeFunctionConditionalMethod1): 81 (WebCore::jsTestObjPrototypeFunctionConditionalMethod2): 82 (WebCore::jsTestObjPrototypeFunctionConditionalMethod3): 83 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1): 84 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2): 85 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3): 86 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4): 87 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod5): 88 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6): 89 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7): 90 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod8): 91 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod9): 92 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod10): 93 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod11): 94 (WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp): 95 (WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence): 96 (WebCore::jsTestObjPrototypeFunctionStringArrayFunction): 97 (WebCore::jsTestObjPrototypeFunctionDomStringListFunction): 98 (WebCore::jsTestObjPrototypeFunctionGetSVGDocument): 99 (WebCore::jsTestObjPrototypeFunctionConvert1): 100 (WebCore::jsTestObjPrototypeFunctionConvert2): 101 (WebCore::jsTestObjPrototypeFunctionConvert4): 102 (WebCore::jsTestObjPrototypeFunctionConvert5): 103 (WebCore::jsTestObjPrototypeFunctionMutablePointFunction): 104 (WebCore::jsTestObjPrototypeFunctionImmutablePointFunction): 105 (WebCore::jsTestObjPrototypeFunctionOrange): 106 (WebCore::jsTestObjPrototypeFunctionStrictFunction): 107 (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence): 108 (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray): 109 (WebCore::jsTestObjPrototypeFunctionVariadicStringMethod): 110 (WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod): 111 (WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod): 112 (WebCore::jsTestObjPrototypeFunctionAny): 113 * bindings/scripts/test/JS/JSTestTypedefs.cpp: 114 (WebCore::jsTestTypedefsPrototypeFunctionFunc): 115 (WebCore::jsTestTypedefsPrototypeFunctionSetShadow): 116 (WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg): 117 (WebCore::jsTestTypedefsPrototypeFunctionNullableArrayArg): 118 (WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp): 119 (WebCore::jsTestTypedefsPrototypeFunctionImmutablePointFunction): 120 (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction): 121 (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2): 122 (WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude): 123 (WebCore::jsTestTypedefsPrototypeFunctionMethodWithException): 124 * bridge/objc/objc_runtime.mm: 125 (JSC::Bindings::callObjCFallbackObject): 126 * bridge/runtime_method.cpp: 127 (JSC::callRuntimeMethod): 128 1 129 2014-03-31 Zan Dobersek <zdobersek@igalia.com> 2 130 -
trunk/Source/WebCore/bindings/js/JSNavigatorCustom.cpp
r166207 r166493 60 60 } 61 61 62 JSNavigator* castedThis = jsDynamicCast<JSNavigator*>(exec-> hostThisValue());62 JSNavigator* castedThis = jsDynamicCast<JSNavigator*>(exec->thisValue()); 63 63 RefPtr<NavigatorUserMediaErrorCallback> errorCallback; 64 64 if (!exec->argument(2).isUndefinedOrNull()) { -
trunk/Source/WebCore/bindings/js/JSPluginElementFunctions.cpp
r163496 r166493 155 155 156 156 // Call the object. 157 JSValue result = call(exec, scriptObject, callType, callData, exec-> hostThisValue(), argumentList);157 JSValue result = call(exec, scriptObject, callType, callData, exec->thisValue(), argumentList); 158 158 return JSValue::encode(result); 159 159 } -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r166413 r166493 2707 2707 } else { 2708 2708 if ($interface->extendedAttributes->{"CustomProxyToJSObject"}) { 2709 push(@implContent, " $className* castedThis = to${className}(exec-> hostThisValue().toThis(exec, NotStrictMode));\n");2709 push(@implContent, " $className* castedThis = to${className}(exec->thisValue().toThis(exec, NotStrictMode));\n"); 2710 2710 push(@implContent, " if (UNLIKELY(!castedThis))\n"); 2711 2711 push(@implContent, " return throwVMTypeError(exec);\n"); 2712 2712 } elsif ($interface->extendedAttributes->{"WorkerGlobalScope"}) { 2713 push(@implContent, " $className* castedThis = to${className}(exec-> hostThisValue().toThis(exec, NotStrictMode));\n");2713 push(@implContent, " $className* castedThis = to${className}(exec->thisValue().toThis(exec, NotStrictMode));\n"); 2714 2714 push(@implContent, " if (UNLIKELY(!castedThis))\n"); 2715 2715 push(@implContent, " return throwVMTypeError(exec);\n"); 2716 2716 } else { 2717 push(@implContent, " JSValue thisValue = exec-> hostThisValue();\n");2717 push(@implContent, " JSValue thisValue = exec->thisValue();\n"); 2718 2718 push(@implContent, " $className* castedThis = jsDynamicCast<$className*>(thisValue);\n"); 2719 2719 my $domFunctionName = $function->signature->name; -
trunk/Source/WebCore/bindings/scripts/test/JS/JSFloat64Array.cpp
r154038 r166493 252 252 EncodedJSValue JSC_HOST_CALL jsFloat64ArrayPrototypeFunctionFoo(ExecState* exec) 253 253 { 254 JSValue thisValue = exec-> hostThisValue();254 JSValue thisValue = exec->thisValue(); 255 255 if (!thisValue.inherits(JSFloat64Array::info())) 256 256 return throwVMTypeError(exec); … … 270 270 EncodedJSValue JSC_HOST_CALL jsFloat64ArrayPrototypeFunctionSet(ExecState* exec) 271 271 { 272 JSValue thisValue = exec-> hostThisValue();272 JSValue thisValue = exec->thisValue(); 273 273 if (!thisValue.inherits(JSFloat64Array::info())) 274 274 return throwVMTypeError(exec); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp
r166417 r166493 185 185 EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionExcitingFunction(ExecState* exec) 186 186 { 187 JSValue thisValue = exec-> hostThisValue();187 JSValue thisValue = exec->thisValue(); 188 188 JSTestActiveDOMObject* castedThis = jsDynamicCast<JSTestActiveDOMObject*>(thisValue); 189 189 if (UNLIKELY(!castedThis)) … … 204 204 EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionPostMessage(ExecState* exec) 205 205 { 206 JSValue thisValue = exec-> hostThisValue();206 JSValue thisValue = exec->thisValue(); 207 207 JSTestActiveDOMObject* castedThis = jsDynamicCast<JSTestActiveDOMObject*>(thisValue); 208 208 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp
r166417 r166493 171 171 EncodedJSValue JSC_HOST_CALL jsTestCustomNamedGetterPrototypeFunctionAnotherFunction(ExecState* exec) 172 172 { 173 JSValue thisValue = exec-> hostThisValue();173 JSValue thisValue = exec->thisValue(); 174 174 JSTestCustomNamedGetter* castedThis = jsDynamicCast<JSTestCustomNamedGetter*>(thisValue); 175 175 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp
r166417 r166493 211 211 EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionItem(ExecState* exec) 212 212 { 213 JSValue thisValue = exec-> hostThisValue();213 JSValue thisValue = exec->thisValue(); 214 214 JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue); 215 215 if (UNLIKELY(!castedThis)) … … 232 232 EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionAddEventListener(ExecState* exec) 233 233 { 234 JSValue thisValue = exec-> hostThisValue();234 JSValue thisValue = exec->thisValue(); 235 235 JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue); 236 236 if (UNLIKELY(!castedThis)) … … 247 247 EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionRemoveEventListener(ExecState* exec) 248 248 { 249 JSValue thisValue = exec-> hostThisValue();249 JSValue thisValue = exec->thisValue(); 250 250 JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue); 251 251 if (UNLIKELY(!castedThis)) … … 262 262 EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionDispatchEvent(ExecState* exec) 263 263 { 264 JSValue thisValue = exec-> hostThisValue();264 JSValue thisValue = exec->thisValue(); 265 265 JSTestEventTarget* castedThis = jsDynamicCast<JSTestEventTarget*>(thisValue); 266 266 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
r166417 r166493 792 792 EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod1(ExecState* exec) 793 793 { 794 JSValue thisValue = exec-> hostThisValue();794 JSValue thisValue = exec->thisValue(); 795 795 JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue); 796 796 if (UNLIKELY(!castedThis)) … … 807 807 EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod2(ExecState* exec) 808 808 { 809 JSValue thisValue = exec-> hostThisValue();809 JSValue thisValue = exec->thisValue(); 810 810 JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue); 811 811 if (UNLIKELY(!castedThis)) … … 836 836 EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod3(ExecState* exec) 837 837 { 838 JSValue thisValue = exec-> hostThisValue();838 JSValue thisValue = exec->thisValue(); 839 839 JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue); 840 840 if (UNLIKELY(!castedThis)) … … 858 858 EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod1(ExecState* exec) 859 859 { 860 JSValue thisValue = exec-> hostThisValue();860 JSValue thisValue = exec->thisValue(); 861 861 JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue); 862 862 if (UNLIKELY(!castedThis)) … … 873 873 EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod2(ExecState* exec) 874 874 { 875 JSValue thisValue = exec-> hostThisValue();875 JSValue thisValue = exec->thisValue(); 876 876 JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue); 877 877 if (UNLIKELY(!castedThis)) … … 902 902 EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod3(ExecState* exec) 903 903 { 904 JSValue thisValue = exec-> hostThisValue();904 JSValue thisValue = exec->thisValue(); 905 905 JSTestInterface* castedThis = jsDynamicCast<JSTestInterface*>(thisValue); 906 906 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
r166417 r166493 144 144 EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(ExecState* exec) 145 145 { 146 JSValue thisValue = exec-> hostThisValue();146 JSValue thisValue = exec->thisValue(); 147 147 JSTestMediaQueryListListener* castedThis = jsDynamicCast<JSTestMediaQueryListListener*>(thisValue); 148 148 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r166417 r166493 3246 3246 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethod(ExecState* exec) 3247 3247 { 3248 JSValue thisValue = exec-> hostThisValue();3248 JSValue thisValue = exec->thisValue(); 3249 3249 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3250 3250 if (UNLIKELY(!castedThis)) … … 3258 3258 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethodWithArgs(ExecState* exec) 3259 3259 { 3260 JSValue thisValue = exec-> hostThisValue();3260 JSValue thisValue = exec->thisValue(); 3261 3261 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3262 3262 if (UNLIKELY(!castedThis)) … … 3281 3281 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionByteMethod(ExecState* exec) 3282 3282 { 3283 JSValue thisValue = exec-> hostThisValue();3283 JSValue thisValue = exec->thisValue(); 3284 3284 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3285 3285 if (UNLIKELY(!castedThis)) … … 3293 3293 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionByteMethodWithArgs(ExecState* exec) 3294 3294 { 3295 JSValue thisValue = exec-> hostThisValue();3295 JSValue thisValue = exec->thisValue(); 3296 3296 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3297 3297 if (UNLIKELY(!castedThis)) … … 3316 3316 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOctetMethod(ExecState* exec) 3317 3317 { 3318 JSValue thisValue = exec-> hostThisValue();3318 JSValue thisValue = exec->thisValue(); 3319 3319 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3320 3320 if (UNLIKELY(!castedThis)) … … 3328 3328 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOctetMethodWithArgs(ExecState* exec) 3329 3329 { 3330 JSValue thisValue = exec-> hostThisValue();3330 JSValue thisValue = exec->thisValue(); 3331 3331 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3332 3332 if (UNLIKELY(!castedThis)) … … 3351 3351 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionLongMethod(ExecState* exec) 3352 3352 { 3353 JSValue thisValue = exec-> hostThisValue();3353 JSValue thisValue = exec->thisValue(); 3354 3354 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3355 3355 if (UNLIKELY(!castedThis)) … … 3363 3363 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionLongMethodWithArgs(ExecState* exec) 3364 3364 { 3365 JSValue thisValue = exec-> hostThisValue();3365 JSValue thisValue = exec->thisValue(); 3366 3366 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3367 3367 if (UNLIKELY(!castedThis)) … … 3386 3386 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethod(ExecState* exec) 3387 3387 { 3388 JSValue thisValue = exec-> hostThisValue();3388 JSValue thisValue = exec->thisValue(); 3389 3389 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3390 3390 if (UNLIKELY(!castedThis)) … … 3398 3398 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethodWithArgs(ExecState* exec) 3399 3399 { 3400 JSValue thisValue = exec-> hostThisValue();3400 JSValue thisValue = exec->thisValue(); 3401 3401 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3402 3402 if (UNLIKELY(!castedThis)) … … 3421 3421 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithSequenceArg(ExecState* exec) 3422 3422 { 3423 JSValue thisValue = exec-> hostThisValue();3423 JSValue thisValue = exec->thisValue(); 3424 3424 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3425 3425 if (UNLIKELY(!castedThis)) … … 3438 3438 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodReturningSequence(ExecState* exec) 3439 3439 { 3440 JSValue thisValue = exec-> hostThisValue();3440 JSValue thisValue = exec->thisValue(); 3441 3441 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3442 3442 if (UNLIKELY(!castedThis)) … … 3455 3455 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithEnumArg(ExecState* exec) 3456 3456 { 3457 JSValue thisValue = exec-> hostThisValue();3457 JSValue thisValue = exec->thisValue(); 3458 3458 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3459 3459 if (UNLIKELY(!castedThis)) … … 3474 3474 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows(ExecState* exec) 3475 3475 { 3476 JSValue thisValue = exec-> hostThisValue();3476 JSValue thisValue = exec->thisValue(); 3477 3477 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3478 3478 if (UNLIKELY(!castedThis)) … … 3497 3497 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionSerializedValue(ExecState* exec) 3498 3498 { 3499 JSValue thisValue = exec-> hostThisValue();3499 JSValue thisValue = exec->thisValue(); 3500 3500 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3501 3501 if (UNLIKELY(!castedThis)) … … 3514 3514 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(ExecState* exec) 3515 3515 { 3516 JSValue thisValue = exec-> hostThisValue();3516 JSValue thisValue = exec->thisValue(); 3517 3517 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3518 3518 if (UNLIKELY(!castedThis)) … … 3534 3534 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithException(ExecState* exec) 3535 3535 { 3536 JSValue thisValue = exec-> hostThisValue();3536 JSValue thisValue = exec->thisValue(); 3537 3537 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3538 3538 if (UNLIKELY(!castedThis)) … … 3548 3548 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethod(ExecState* exec) 3549 3549 { 3550 JSValue thisValue = exec-> hostThisValue();3550 JSValue thisValue = exec->thisValue(); 3551 3551 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3552 3552 if (UNLIKELY(!castedThis)) … … 3558 3558 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethodWithArgs(ExecState* exec) 3559 3559 { 3560 JSValue thisValue = exec-> hostThisValue();3560 JSValue thisValue = exec->thisValue(); 3561 3561 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3562 3562 if (UNLIKELY(!castedThis)) … … 3568 3568 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAddEventListener(ExecState* exec) 3569 3569 { 3570 JSValue thisValue = exec-> hostThisValue();3570 JSValue thisValue = exec->thisValue(); 3571 3571 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3572 3572 if (UNLIKELY(!castedThis)) … … 3583 3583 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionRemoveEventListener(ExecState* exec) 3584 3584 { 3585 JSValue thisValue = exec-> hostThisValue();3585 JSValue thisValue = exec->thisValue(); 3586 3586 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3587 3587 if (UNLIKELY(!castedThis)) … … 3598 3598 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoid(ExecState* exec) 3599 3599 { 3600 JSValue thisValue = exec-> hostThisValue();3600 JSValue thisValue = exec->thisValue(); 3601 3601 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3602 3602 if (UNLIKELY(!castedThis)) … … 3610 3610 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObj(ExecState* exec) 3611 3611 { 3612 JSValue thisValue = exec-> hostThisValue();3612 JSValue thisValue = exec->thisValue(); 3613 3613 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3614 3614 if (UNLIKELY(!castedThis)) … … 3624 3624 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoidException(ExecState* exec) 3625 3625 { 3626 JSValue thisValue = exec-> hostThisValue();3626 JSValue thisValue = exec->thisValue(); 3627 3627 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3628 3628 if (UNLIKELY(!castedThis)) … … 3638 3638 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObjException(ExecState* exec) 3639 3639 { 3640 JSValue thisValue = exec-> hostThisValue();3640 JSValue thisValue = exec->thisValue(); 3641 3641 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3642 3642 if (UNLIKELY(!castedThis)) … … 3655 3655 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContext(ExecState* exec) 3656 3656 { 3657 JSValue thisValue = exec-> hostThisValue();3657 JSValue thisValue = exec->thisValue(); 3658 3658 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3659 3659 if (UNLIKELY(!castedThis)) … … 3670 3670 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState(ExecState* exec) 3671 3671 { 3672 JSValue thisValue = exec-> hostThisValue();3672 JSValue thisValue = exec->thisValue(); 3673 3673 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3674 3674 if (UNLIKELY(!castedThis)) … … 3685 3685 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException(ExecState* exec) 3686 3686 { 3687 JSValue thisValue = exec-> hostThisValue();3687 JSValue thisValue = exec->thisValue(); 3688 3688 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3689 3689 if (UNLIKELY(!castedThis)) … … 3705 3705 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces(ExecState* exec) 3706 3706 { 3707 JSValue thisValue = exec-> hostThisValue();3707 JSValue thisValue = exec->thisValue(); 3708 3708 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3709 3709 if (UNLIKELY(!castedThis)) … … 3722 3722 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack(ExecState* exec) 3723 3723 { 3724 JSValue thisValue = exec-> hostThisValue();3724 JSValue thisValue = exec->thisValue(); 3725 3725 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3726 3726 if (UNLIKELY(!castedThis)) … … 3735 3735 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArg(ExecState* exec) 3736 3736 { 3737 JSValue thisValue = exec-> hostThisValue();3737 JSValue thisValue = exec->thisValue(); 3738 3738 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3739 3739 if (UNLIKELY(!castedThis)) … … 3757 3757 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(ExecState* exec) 3758 3758 { 3759 JSValue thisValue = exec-> hostThisValue();3759 JSValue thisValue = exec->thisValue(); 3760 3760 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3761 3761 if (UNLIKELY(!castedThis)) … … 3784 3784 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(ExecState* exec) 3785 3785 { 3786 JSValue thisValue = exec-> hostThisValue();3786 JSValue thisValue = exec->thisValue(); 3787 3787 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3788 3788 if (UNLIKELY(!castedThis)) … … 3819 3819 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalString(ExecState* exec) 3820 3820 { 3821 JSValue thisValue = exec-> hostThisValue();3821 JSValue thisValue = exec->thisValue(); 3822 3822 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3823 3823 if (UNLIKELY(!castedThis)) … … 3841 3841 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefined(ExecState* exec) 3842 3842 { 3843 JSValue thisValue = exec-> hostThisValue();3843 JSValue thisValue = exec->thisValue(); 3844 3844 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3845 3845 if (UNLIKELY(!castedThis)) … … 3856 3856 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString(ExecState* exec) 3857 3857 { 3858 JSValue thisValue = exec-> hostThisValue();3858 JSValue thisValue = exec->thisValue(); 3859 3859 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3860 3860 if (UNLIKELY(!castedThis)) … … 3871 3871 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(ExecState* exec) 3872 3872 { 3873 JSValue thisValue = exec-> hostThisValue();3873 JSValue thisValue = exec->thisValue(); 3874 3874 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3875 3875 if (UNLIKELY(!castedThis)) … … 3888 3888 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(ExecState* exec) 3889 3889 { 3890 JSValue thisValue = exec-> hostThisValue();3890 JSValue thisValue = exec->thisValue(); 3891 3891 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3892 3892 if (UNLIKELY(!castedThis)) … … 3908 3908 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg(ExecState* exec) 3909 3909 { 3910 JSValue thisValue = exec-> hostThisValue();3910 JSValue thisValue = exec->thisValue(); 3911 3911 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3912 3912 if (UNLIKELY(!castedThis)) … … 3950 3950 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod1(ExecState* exec) 3951 3951 { 3952 JSValue thisValue = exec-> hostThisValue();3952 JSValue thisValue = exec->thisValue(); 3953 3953 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3954 3954 if (UNLIKELY(!castedThis)) … … 3965 3965 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod2(ExecState* exec) 3966 3966 { 3967 JSValue thisValue = exec-> hostThisValue();3967 JSValue thisValue = exec->thisValue(); 3968 3968 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3969 3969 if (UNLIKELY(!castedThis)) … … 3980 3980 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalMethod3(ExecState* exec) 3981 3981 { 3982 JSValue thisValue = exec-> hostThisValue();3982 JSValue thisValue = exec->thisValue(); 3983 3983 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3984 3984 if (UNLIKELY(!castedThis)) … … 3994 3994 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod1(ExecState* exec) 3995 3995 { 3996 JSValue thisValue = exec-> hostThisValue();3996 JSValue thisValue = exec->thisValue(); 3997 3997 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 3998 3998 if (UNLIKELY(!castedThis)) … … 4014 4014 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod2(ExecState* exec) 4015 4015 { 4016 JSValue thisValue = exec-> hostThisValue();4016 JSValue thisValue = exec->thisValue(); 4017 4017 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4018 4018 if (UNLIKELY(!castedThis)) … … 4041 4041 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod3(ExecState* exec) 4042 4042 { 4043 JSValue thisValue = exec-> hostThisValue();4043 JSValue thisValue = exec->thisValue(); 4044 4044 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4045 4045 if (UNLIKELY(!castedThis)) … … 4058 4058 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod4(ExecState* exec) 4059 4059 { 4060 JSValue thisValue = exec-> hostThisValue();4060 JSValue thisValue = exec->thisValue(); 4061 4061 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4062 4062 if (UNLIKELY(!castedThis)) … … 4075 4075 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod5(ExecState* exec) 4076 4076 { 4077 JSValue thisValue = exec-> hostThisValue();4077 JSValue thisValue = exec->thisValue(); 4078 4078 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4079 4079 if (UNLIKELY(!castedThis)) … … 4092 4092 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod6(ExecState* exec) 4093 4093 { 4094 JSValue thisValue = exec-> hostThisValue();4094 JSValue thisValue = exec->thisValue(); 4095 4095 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4096 4096 if (UNLIKELY(!castedThis)) … … 4109 4109 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod7(ExecState* exec) 4110 4110 { 4111 JSValue thisValue = exec-> hostThisValue();4111 JSValue thisValue = exec->thisValue(); 4112 4112 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4113 4113 if (UNLIKELY(!castedThis)) … … 4126 4126 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod8(ExecState* exec) 4127 4127 { 4128 JSValue thisValue = exec-> hostThisValue();4128 JSValue thisValue = exec->thisValue(); 4129 4129 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4130 4130 if (UNLIKELY(!castedThis)) … … 4143 4143 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod9(ExecState* exec) 4144 4144 { 4145 JSValue thisValue = exec-> hostThisValue();4145 JSValue thisValue = exec->thisValue(); 4146 4146 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4147 4147 if (UNLIKELY(!castedThis)) … … 4160 4160 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod10(ExecState* exec) 4161 4161 { 4162 JSValue thisValue = exec-> hostThisValue();4162 JSValue thisValue = exec->thisValue(); 4163 4163 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4164 4164 if (UNLIKELY(!castedThis)) … … 4177 4177 static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod11(ExecState* exec) 4178 4178 { 4179 JSValue thisValue = exec-> hostThisValue();4179 JSValue thisValue = exec->thisValue(); 4180 4180 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4181 4181 if (UNLIKELY(!castedThis)) … … 4302 4302 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethodWithClamp(ExecState* exec) 4303 4303 { 4304 JSValue thisValue = exec-> hostThisValue();4304 JSValue thisValue = exec->thisValue(); 4305 4305 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4306 4306 if (UNLIKELY(!castedThis)) … … 4332 4332 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence(ExecState* exec) 4333 4333 { 4334 JSValue thisValue = exec-> hostThisValue();4334 JSValue thisValue = exec->thisValue(); 4335 4335 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4336 4336 if (UNLIKELY(!castedThis)) … … 4349 4349 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStringArrayFunction(ExecState* exec) 4350 4350 { 4351 JSValue thisValue = exec-> hostThisValue();4351 JSValue thisValue = exec->thisValue(); 4352 4352 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4353 4353 if (UNLIKELY(!castedThis)) … … 4369 4369 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionDomStringListFunction(ExecState* exec) 4370 4370 { 4371 JSValue thisValue = exec-> hostThisValue();4371 JSValue thisValue = exec->thisValue(); 4372 4372 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4373 4373 if (UNLIKELY(!castedThis)) … … 4389 4389 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionGetSVGDocument(ExecState* exec) 4390 4390 { 4391 JSValue thisValue = exec-> hostThisValue();4391 JSValue thisValue = exec->thisValue(); 4392 4392 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4393 4393 if (UNLIKELY(!castedThis)) … … 4406 4406 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert1(ExecState* exec) 4407 4407 { 4408 JSValue thisValue = exec-> hostThisValue();4408 JSValue thisValue = exec->thisValue(); 4409 4409 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4410 4410 if (UNLIKELY(!castedThis)) … … 4423 4423 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert2(ExecState* exec) 4424 4424 { 4425 JSValue thisValue = exec-> hostThisValue();4425 JSValue thisValue = exec->thisValue(); 4426 4426 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4427 4427 if (UNLIKELY(!castedThis)) … … 4440 4440 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert4(ExecState* exec) 4441 4441 { 4442 JSValue thisValue = exec-> hostThisValue();4442 JSValue thisValue = exec->thisValue(); 4443 4443 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4444 4444 if (UNLIKELY(!castedThis)) … … 4457 4457 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConvert5(ExecState* exec) 4458 4458 { 4459 JSValue thisValue = exec-> hostThisValue();4459 JSValue thisValue = exec->thisValue(); 4460 4460 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4461 4461 if (UNLIKELY(!castedThis)) … … 4474 4474 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMutablePointFunction(ExecState* exec) 4475 4475 { 4476 JSValue thisValue = exec-> hostThisValue();4476 JSValue thisValue = exec->thisValue(); 4477 4477 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4478 4478 if (UNLIKELY(!castedThis)) … … 4486 4486 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionImmutablePointFunction(ExecState* exec) 4487 4487 { 4488 JSValue thisValue = exec-> hostThisValue();4488 JSValue thisValue = exec->thisValue(); 4489 4489 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4490 4490 if (UNLIKELY(!castedThis)) … … 4498 4498 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOrange(ExecState* exec) 4499 4499 { 4500 JSValue thisValue = exec-> hostThisValue();4500 JSValue thisValue = exec->thisValue(); 4501 4501 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4502 4502 if (UNLIKELY(!castedThis)) … … 4510 4510 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunction(ExecState* exec) 4511 4511 { 4512 JSValue thisValue = exec-> hostThisValue();4512 JSValue thisValue = exec->thisValue(); 4513 4513 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4514 4514 if (UNLIKELY(!castedThis)) … … 4536 4536 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunctionWithSequence(ExecState* exec) 4537 4537 { 4538 JSValue thisValue = exec-> hostThisValue();4538 JSValue thisValue = exec->thisValue(); 4539 4539 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4540 4540 if (UNLIKELY(!castedThis)) … … 4561 4561 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionStrictFunctionWithArray(ExecState* exec) 4562 4562 { 4563 JSValue thisValue = exec-> hostThisValue();4563 JSValue thisValue = exec->thisValue(); 4564 4564 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4565 4565 if (UNLIKELY(!castedThis)) … … 4586 4586 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicStringMethod(ExecState* exec) 4587 4587 { 4588 JSValue thisValue = exec-> hostThisValue();4588 JSValue thisValue = exec->thisValue(); 4589 4589 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4590 4590 if (UNLIKELY(!castedThis)) … … 4606 4606 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicDoubleMethod(ExecState* exec) 4607 4607 { 4608 JSValue thisValue = exec-> hostThisValue();4608 JSValue thisValue = exec->thisValue(); 4609 4609 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4610 4610 if (UNLIKELY(!castedThis)) … … 4626 4626 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVariadicNodeMethod(ExecState* exec) 4627 4627 { 4628 JSValue thisValue = exec-> hostThisValue();4628 JSValue thisValue = exec->thisValue(); 4629 4629 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4630 4630 if (UNLIKELY(!castedThis)) … … 4649 4649 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAny(ExecState* exec) 4650 4650 { 4651 JSValue thisValue = exec-> hostThisValue();4651 JSValue thisValue = exec->thisValue(); 4652 4652 JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(thisValue); 4653 4653 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp
r166417 r166493 506 506 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionFunc(ExecState* exec) 507 507 { 508 JSValue thisValue = exec-> hostThisValue();508 JSValue thisValue = exec->thisValue(); 509 509 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 510 510 if (UNLIKELY(!castedThis)) … … 528 528 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionSetShadow(ExecState* exec) 529 529 { 530 JSValue thisValue = exec-> hostThisValue();530 JSValue thisValue = exec->thisValue(); 531 531 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 532 532 if (UNLIKELY(!castedThis)) … … 569 569 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithSequenceArg(ExecState* exec) 570 570 { 571 JSValue thisValue = exec-> hostThisValue();571 JSValue thisValue = exec->thisValue(); 572 572 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 573 573 if (UNLIKELY(!castedThis)) … … 586 586 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionNullableArrayArg(ExecState* exec) 587 587 { 588 JSValue thisValue = exec-> hostThisValue();588 JSValue thisValue = exec->thisValue(); 589 589 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 590 590 if (UNLIKELY(!castedThis)) … … 603 603 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionFuncWithClamp(ExecState* exec) 604 604 { 605 JSValue thisValue = exec-> hostThisValue();605 JSValue thisValue = exec->thisValue(); 606 606 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 607 607 if (UNLIKELY(!castedThis)) … … 640 640 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionImmutablePointFunction(ExecState* exec) 641 641 { 642 JSValue thisValue = exec-> hostThisValue();642 JSValue thisValue = exec->thisValue(); 643 643 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 644 644 if (UNLIKELY(!castedThis)) … … 652 652 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionStringArrayFunction(ExecState* exec) 653 653 { 654 JSValue thisValue = exec-> hostThisValue();654 JSValue thisValue = exec->thisValue(); 655 655 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 656 656 if (UNLIKELY(!castedThis)) … … 672 672 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionStringArrayFunction2(ExecState* exec) 673 673 { 674 JSValue thisValue = exec-> hostThisValue();674 JSValue thisValue = exec->thisValue(); 675 675 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 676 676 if (UNLIKELY(!castedThis)) … … 692 692 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude(ExecState* exec) 693 693 { 694 JSValue thisValue = exec-> hostThisValue();694 JSValue thisValue = exec->thisValue(); 695 695 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 696 696 if (UNLIKELY(!castedThis)) … … 709 709 EncodedJSValue JSC_HOST_CALL jsTestTypedefsPrototypeFunctionMethodWithException(ExecState* exec) 710 710 { 711 JSValue thisValue = exec-> hostThisValue();711 JSValue thisValue = exec->thisValue(); 712 712 JSTestTypedefs* castedThis = jsDynamicCast<JSTestTypedefs*>(thisValue); 713 713 if (UNLIKELY(!castedThis)) -
trunk/Source/WebCore/bridge/objc/objc_runtime.mm
r165676 r166493 222 222 static EncodedJSValue JSC_HOST_CALL callObjCFallbackObject(ExecState* exec) 223 223 { 224 JSValue thisValue = exec-> hostThisValue();224 JSValue thisValue = exec->thisValue(); 225 225 if (!thisValue.inherits(ObjCRuntimeObject::info())) 226 226 return throwVMTypeError(exec); -
trunk/Source/WebCore/bridge/runtime_method.cpp
r165676 r166493 83 83 RefPtr<Instance> instance; 84 84 85 JSValue thisValue = exec-> hostThisValue();85 JSValue thisValue = exec->thisValue(); 86 86 if (thisValue.inherits(RuntimeObject::info())) { 87 87 RuntimeObject* runtimeObject = static_cast<RuntimeObject*>(asObject(thisValue)); -
trunk/Source/WebKit2/ChangeLog
r166492 r166493 1 2014-03-31 Dániel Bátyai <dbatyai.u-szeged@partner.samsung.com> 2 3 Remove hostThisRegister() and hostThisValue() 4 https://bugs.webkit.org/show_bug.cgi?id=130895 5 6 Reviewed by Geoffrey Garen. 7 8 Removed hostThisRegister() and hostThisValue() and instead use thisArgumentOffset() and thisValue() respectively. 9 10 * WebProcess/Plugins/Netscape/JSNPMethod.cpp: 11 (WebKit::callMethod): 12 1 13 2014-03-31 Carlos Garcia Campos <cgarcia@igalia.com> 2 14 -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/JSNPMethod.cpp
r160208 r166493 62 62 JSNPMethod* jsNPMethod = jsCast<JSNPMethod*>(exec->callee()); 63 63 64 JSValue thisValue = exec-> hostThisValue();64 JSValue thisValue = exec->thisValue(); 65 65 66 66 // Check if we're calling a method on the plug-in script object.
Note: See TracChangeset
for help on using the changeset viewer.