Changeset 37684 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObjectFunctions.cpp
- Timestamp:
- Oct 18, 2008, 6:52:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObjectFunctions.cpp
r37622 r37684 49 49 namespace JSC { 50 50 51 static JSValue *encode(ExecState* exec, const ArgList& args, const char* doNotEscape)51 static JSValuePtr encode(ExecState* exec, const ArgList& args, const char* doNotEscape) 52 52 { 53 53 UString str = args.at(exec, 0)->toString(exec); … … 71 71 } 72 72 73 static JSValue *decode(ExecState* exec, const ArgList& args, const char* doNotUnescape, bool strict)73 static JSValuePtr decode(ExecState* exec, const ArgList& args, const char* doNotUnescape, bool strict) 74 74 { 75 75 UString result = ""; … … 270 270 } 271 271 272 JSValue * globalFuncEval(ExecState* exec, JSObject* function, JSValue*thisValue, const ArgList& args)272 JSValuePtr globalFuncEval(ExecState* exec, JSObject* function, JSValuePtr thisValue, const ArgList& args) 273 273 { 274 274 JSObject* thisObject = thisValue->toThisObject(exec); … … 277 277 return throwError(exec, EvalError, "The \"this\" value passed to eval must be the global object from which eval originated"); 278 278 279 JSValue *x = args.at(exec, 0);279 JSValuePtr x = args.at(exec, 0); 280 280 if (!x->isString()) 281 281 return x; … … 295 295 } 296 296 297 JSValue * globalFuncParseInt(ExecState* exec, JSObject*, JSValue*, const ArgList& args)298 { 299 JSValue *value = args.at(exec, 0);297 JSValuePtr globalFuncParseInt(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 298 { 299 JSValuePtr value = args.at(exec, 0); 300 300 int32_t radix = args.at(exec, 1)->toInt32(exec); 301 301 … … 312 312 } 313 313 314 JSValue * globalFuncParseFloat(ExecState* exec, JSObject*, JSValue*, const ArgList& args)314 JSValuePtr globalFuncParseFloat(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 315 315 { 316 316 return jsNumber(exec, parseFloat(args.at(exec, 0)->toString(exec))); 317 317 } 318 318 319 JSValue * globalFuncIsNaN(ExecState* exec, JSObject*, JSValue*, const ArgList& args)319 JSValuePtr globalFuncIsNaN(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 320 320 { 321 321 return jsBoolean(isnan(args.at(exec, 0)->toNumber(exec))); 322 322 } 323 323 324 JSValue * globalFuncIsFinite(ExecState* exec, JSObject*, JSValue*, const ArgList& args)324 JSValuePtr globalFuncIsFinite(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 325 325 { 326 326 double n = args.at(exec, 0)->toNumber(exec); … … 328 328 } 329 329 330 JSValue * globalFuncDecodeURI(ExecState* exec, JSObject*, JSValue*, const ArgList& args)330 JSValuePtr globalFuncDecodeURI(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 331 331 { 332 332 static const char do_not_unescape_when_decoding_URI[] = … … 336 336 } 337 337 338 JSValue * globalFuncDecodeURIComponent(ExecState* exec, JSObject*, JSValue*, const ArgList& args)338 JSValuePtr globalFuncDecodeURIComponent(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 339 339 { 340 340 return decode(exec, args, "", true); 341 341 } 342 342 343 JSValue * globalFuncEncodeURI(ExecState* exec, JSObject*, JSValue*, const ArgList& args)343 JSValuePtr globalFuncEncodeURI(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 344 344 { 345 345 static const char do_not_escape_when_encoding_URI[] = … … 352 352 } 353 353 354 JSValue * globalFuncEncodeURIComponent(ExecState* exec, JSObject*, JSValue*, const ArgList& args)354 JSValuePtr globalFuncEncodeURIComponent(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 355 355 { 356 356 static const char do_not_escape_when_encoding_URI_component[] = … … 363 363 } 364 364 365 JSValue * globalFuncEscape(ExecState* exec, JSObject*, JSValue*, const ArgList& args)365 JSValuePtr globalFuncEscape(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 366 366 { 367 367 static const char do_not_escape[] = … … 394 394 } 395 395 396 JSValue * globalFuncUnescape(ExecState* exec, JSObject*, JSValue*, const ArgList& args)396 JSValuePtr globalFuncUnescape(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 397 397 { 398 398 UString result = ""; … … 422 422 423 423 #ifndef NDEBUG 424 JSValue * globalFuncKJSPrint(ExecState* exec, JSObject*, JSValue*, const ArgList& args)424 JSValuePtr globalFuncKJSPrint(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) 425 425 { 426 426 CStringBuffer string;
Note:
See TracChangeset
for help on using the changeset viewer.