Changeset 163496 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Feb 5, 2014, 4:58:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r163321 r163496 224 224 } 225 225 226 EncodedJSValue JSFunction::argumentsGetter(ExecState* exec, EncodedJSValueslotBase, EncodedJSValue, PropertyName)227 { 228 JSFunction* thisObj = jsCast<JSFunction*>( JSValue::decode(slotBase));226 EncodedJSValue JSFunction::argumentsGetter(ExecState* exec, JSObject* slotBase, EncodedJSValue, PropertyName) 227 { 228 JSFunction* thisObj = jsCast<JSFunction*>(slotBase); 229 229 ASSERT(!thisObj->isHostFunction()); 230 230 … … 279 279 } 280 280 281 EncodedJSValue JSFunction::callerGetter(ExecState* exec, EncodedJSValueslotBase, EncodedJSValue, PropertyName)282 { 283 JSFunction* thisObj = jsCast<JSFunction*>( JSValue::decode(slotBase));281 EncodedJSValue JSFunction::callerGetter(ExecState* exec, JSObject* slotBase, EncodedJSValue, PropertyName) 282 { 283 JSFunction* thisObj = jsCast<JSFunction*>(slotBase); 284 284 ASSERT(!thisObj->isHostFunction()); 285 285 JSValue caller = retrieveCallerFunction(exec, thisObj); … … 294 294 } 295 295 296 EncodedJSValue JSFunction::lengthGetter(ExecState*, EncodedJSValueslotBase, EncodedJSValue, PropertyName)297 { 298 JSFunction* thisObj = jsCast<JSFunction*>( JSValue::decode(slotBase));296 EncodedJSValue JSFunction::lengthGetter(ExecState*, JSObject* slotBase, EncodedJSValue, PropertyName) 297 { 298 JSFunction* thisObj = jsCast<JSFunction*>(slotBase); 299 299 ASSERT(!thisObj->isHostFunction()); 300 300 return JSValue::encode(jsNumber(thisObj->jsExecutable()->parameterCount())); 301 301 } 302 302 303 EncodedJSValue JSFunction::nameGetter(ExecState*, EncodedJSValueslotBase, EncodedJSValue, PropertyName)304 { 305 JSFunction* thisObj = jsCast<JSFunction*>( JSValue::decode(slotBase));303 EncodedJSValue JSFunction::nameGetter(ExecState*, JSObject* slotBase, EncodedJSValue, PropertyName) 304 { 305 JSFunction* thisObj = jsCast<JSFunction*>(slotBase); 306 306 ASSERT(!thisObj->isHostFunction()); 307 307 return JSValue::encode(thisObj->jsExecutable()->nameValue());
Note:
See TracChangeset
for help on using the changeset viewer.