X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..4be4e30906bcb8ee30b4d189205cb70bad6707ce:/runtime/JSGlobalObjectFunctions.h?ds=inline diff --git a/runtime/JSGlobalObjectFunctions.h b/runtime/JSGlobalObjectFunctions.h index 8833bf6..f4512e4 100644 --- a/runtime/JSGlobalObjectFunctions.h +++ b/runtime/JSGlobalObjectFunctions.h @@ -24,39 +24,39 @@ #ifndef JSGlobalObjectFunctions_h #define JSGlobalObjectFunctions_h -#include "JSValue.h" +#include "JSCJSValue.h" #include namespace JSC { - class ArgList; - class ExecState; - class JSObject; - - // FIXME: These functions should really be in JSGlobalObject.cpp, but putting them there - // is a 0.5% reduction. - - EncodedJSValue JSC_HOST_CALL globalFuncEval(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncParseInt(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncParseFloat(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncIsNaN(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncIsFinite(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncDecodeURI(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncDecodeURIComponent(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncEncodeURI(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncEncodeURIComponent(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncEscape(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncUnescape(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncThrowTypeError(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncProtoGetter(ExecState*); - EncodedJSValue JSC_HOST_CALL globalFuncProtoSetter(ExecState*); - - static const double mantissaOverflowLowerBound = 9007199254740992.0; - double parseIntOverflow(const LChar*, int length, int radix); - ALWAYS_INLINE double parseIntOverflow(const char* s, int length, int radix) { return parseIntOverflow(reinterpret_cast(s), length, radix); } - double parseIntOverflow(const UChar*, int length, int radix); - bool isStrWhiteSpace(UChar); - double jsToNumber(const UString& s); +class ArgList; +class ExecState; +class JSObject; + +// FIXME: These functions should really be in JSGlobalObject.cpp, but putting them there +// is a 0.5% reduction. + +EncodedJSValue JSC_HOST_CALL globalFuncEval(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncParseInt(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncParseFloat(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncIsNaN(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncIsFinite(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncDecodeURI(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncDecodeURIComponent(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncEncodeURI(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncEncodeURIComponent(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncEscape(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncUnescape(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncThrowTypeError(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncProtoGetter(ExecState*); +EncodedJSValue JSC_HOST_CALL globalFuncProtoSetter(ExecState*); + +static const double mantissaOverflowLowerBound = 9007199254740992.0; +double parseIntOverflow(const LChar*, int length, int radix); +ALWAYS_INLINE double parseIntOverflow(const char* s, int length, int radix) { return parseIntOverflow(reinterpret_cast(s), length, radix); } +double parseIntOverflow(const UChar*, int length, int radix); +bool isStrWhiteSpace(UChar); +double jsToNumber(const WTF::String&); } // namespace JSC