Changeset 43372 in webkit for trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- May 7, 2009, 3:52:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r43156 r43372 269 269 } 270 270 271 JSValue globalFuncEval(ExecState* exec, JSObject* function, JSValue thisValue, const ArgList& args)271 JSValue JSC_HOST_CALL globalFuncEval(ExecState* exec, JSObject* function, JSValue thisValue, const ArgList& args) 272 272 { 273 273 JSObject* thisObject = thisValue.toThisObject(exec); … … 294 294 } 295 295 296 JSValue globalFuncParseInt(ExecState* exec, JSObject*, JSValue, const ArgList& args)296 JSValue JSC_HOST_CALL globalFuncParseInt(ExecState* exec, JSObject*, JSValue, const ArgList& args) 297 297 { 298 298 JSValue value = args.at(0); … … 313 313 } 314 314 315 JSValue globalFuncParseFloat(ExecState* exec, JSObject*, JSValue, const ArgList& args)315 JSValue JSC_HOST_CALL globalFuncParseFloat(ExecState* exec, JSObject*, JSValue, const ArgList& args) 316 316 { 317 317 return jsNumber(exec, parseFloat(args.at(0).toString(exec))); 318 318 } 319 319 320 JSValue globalFuncIsNaN(ExecState* exec, JSObject*, JSValue, const ArgList& args)320 JSValue JSC_HOST_CALL globalFuncIsNaN(ExecState* exec, JSObject*, JSValue, const ArgList& args) 321 321 { 322 322 return jsBoolean(isnan(args.at(0).toNumber(exec))); 323 323 } 324 324 325 JSValue globalFuncIsFinite(ExecState* exec, JSObject*, JSValue, const ArgList& args)325 JSValue JSC_HOST_CALL globalFuncIsFinite(ExecState* exec, JSObject*, JSValue, const ArgList& args) 326 326 { 327 327 double n = args.at(0).toNumber(exec); … … 329 329 } 330 330 331 JSValue globalFuncDecodeURI(ExecState* exec, JSObject*, JSValue, const ArgList& args)331 JSValue JSC_HOST_CALL globalFuncDecodeURI(ExecState* exec, JSObject*, JSValue, const ArgList& args) 332 332 { 333 333 static const char do_not_unescape_when_decoding_URI[] = … … 337 337 } 338 338 339 JSValue globalFuncDecodeURIComponent(ExecState* exec, JSObject*, JSValue, const ArgList& args)339 JSValue JSC_HOST_CALL globalFuncDecodeURIComponent(ExecState* exec, JSObject*, JSValue, const ArgList& args) 340 340 { 341 341 return decode(exec, args, "", true); 342 342 } 343 343 344 JSValue globalFuncEncodeURI(ExecState* exec, JSObject*, JSValue, const ArgList& args)344 JSValue JSC_HOST_CALL globalFuncEncodeURI(ExecState* exec, JSObject*, JSValue, const ArgList& args) 345 345 { 346 346 static const char do_not_escape_when_encoding_URI[] = … … 353 353 } 354 354 355 JSValue globalFuncEncodeURIComponent(ExecState* exec, JSObject*, JSValue, const ArgList& args)355 JSValue JSC_HOST_CALL globalFuncEncodeURIComponent(ExecState* exec, JSObject*, JSValue, const ArgList& args) 356 356 { 357 357 static const char do_not_escape_when_encoding_URI_component[] = … … 364 364 } 365 365 366 JSValue globalFuncEscape(ExecState* exec, JSObject*, JSValue, const ArgList& args)366 JSValue JSC_HOST_CALL globalFuncEscape(ExecState* exec, JSObject*, JSValue, const ArgList& args) 367 367 { 368 368 static const char do_not_escape[] = … … 395 395 } 396 396 397 JSValue globalFuncUnescape(ExecState* exec, JSObject*, JSValue, const ArgList& args)397 JSValue JSC_HOST_CALL globalFuncUnescape(ExecState* exec, JSObject*, JSValue, const ArgList& args) 398 398 { 399 399 UString result = ""; … … 423 423 424 424 #ifndef NDEBUG 425 JSValue globalFuncJSCPrint(ExecState* exec, JSObject*, JSValue, const ArgList& args)425 JSValue JSC_HOST_CALL globalFuncJSCPrint(ExecState* exec, JSObject*, JSValue, const ArgList& args) 426 426 { 427 427 CStringBuffer string;
Note:
See TracChangeset
for help on using the changeset viewer.