Changeset 160254 in webkit
- Timestamp:
- Dec 6, 2013 2:56:46 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/tests/testapi.c
r155495 r160254 46 46 #if COMPILER(MSVC) 47 47 48 #if _MSC_VER < 1800 48 49 #include <wtf/MathExtras.h> 49 50 … … 55 56 using std::isinf; 56 57 using std::isnan; 58 #endif 57 59 58 60 #endif -
trunk/Source/JavaScriptCore/ChangeLog
r160252 r160254 1 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com> 2 3 [Win] Support compiling with VS2013 4 https://bugs.webkit.org/show_bug.cgi?id=125353 5 6 Reviewed by Anders Carlsson. 7 8 * API/tests/testapi.c: Use C99 defines if available. 9 * jit/JITOperations.cpp: Don't attempt to define C linkage when 10 returning a C++ object. 11 1 12 2013-12-06 Filip Pizlo <fpizlo@apple.com> 2 13 -
trunk/Source/JavaScriptCore/jit/JITOperations.cpp
r160244 r160254 1364 1364 } 1365 1365 1366 } 1367 1366 1368 static JSValue getByVal(ExecState* exec, JSValue baseValue, JSValue subscript, ReturnAddressPtr returnAddress) 1367 1369 { … … 1387 1389 } 1388 1390 1391 extern "C" { 1392 1389 1393 EncodedJSValue JIT_OPERATION operationGetByValGeneric(ExecState* exec, EncodedJSValue encodedBase, EncodedJSValue encodedSubscript) 1390 1394 { -
trunk/Source/WTF/ChangeLog
r160228 r160254 1 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com> 2 3 [Win] Support compiling with VS2013 4 https://bugs.webkit.org/show_bug.cgi?id=125353 5 6 Reviewed by Anders Carlsson. 7 8 * wtf/Compiler.h: Show proper features for VS2012 and VS2013. 9 * wtf/MathExtras.h: Don't implement common C99 routines when 10 they are available through the runtime libraries. 11 * wtf/RetainPtr.h: 12 (WTF::RetainPtr::operator bool): Added. 13 * wtf/StdLibExtras.h: Use Microsoft's version of make_unique 14 when it exists. 15 1 16 2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu> 2 17 -
trunk/Source/WTF/wtf/Compiler.h
r159202 r160254 80 80 #if !COMPILER(CLANG) 81 81 #define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL 1 82 #if !defined(_MSC_VER) || _MSC_VER < 1800 82 83 #define WTF_COMPILER_QUIRK_FINAL_IS_CALLED_SEALED 1 84 #endif 83 85 #endif 84 86 … … 88 90 #define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT 1 89 91 #define WTF_COMPILER_SUPPORTS_CXX_AUTO_TYPE 1 92 #endif 93 94 #if _MSC_VER >= 1700 95 #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS 1 96 #define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL 1 97 #endif 98 99 #if _MSC_VER >= 1800 100 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1 101 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1 102 #define WTF_COMPILER_SUPPORTS_CXX_GENERALIZED_INITIALIZERS 1 103 #define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES 1 90 104 #endif 91 105 -
trunk/Source/WTF/wtf/MathExtras.h
r158401 r160254 124 124 #if COMPILER(MSVC) 125 125 126 #if _MSC_VER < 1800 126 127 // We must not do 'num + 0.5' or 'num - 0.5' because they can cause precision loss. 127 128 static double round(double num) … … 139 140 return integer - num >= 0.5f ? integer - 1.0f : integer; 140 141 } 142 141 143 inline long long llround(double num) { return static_cast<long long>(round(num)); } 142 144 inline long long llroundf(float num) { return static_cast<long long>(roundf(num)); } … … 145 147 inline double trunc(double num) { return num > 0 ? floor(num) : ceil(num); } 146 148 147 #if _MSC_VER < 1800148 149 149 inline double remainder(double numerator, double denominator) 150 150 { … … 156 156 } 157 157 158 #endif159 160 158 inline double asinh(double d) 161 159 { … … 187 185 return pow(d, 1.0 / 3.0); 188 186 } 187 188 #endif 189 189 190 190 #endif … … 216 216 #endif 217 217 218 #if _MSC_VER < 1800 219 218 220 namespace std { 219 221 … … 224 226 225 227 } // namespace std 228 229 #endif 226 230 227 231 inline double nextafter(double x, double y) { return _nextafter(x, y); } -
trunk/Source/WTF/wtf/RetainPtr.h
r157653 r160254 120 120 #if COMPILER_SUPPORTS(CXX_EXPLICIT_CONVERSIONS) 121 121 explicit operator PtrType() const { return fromStorageType(m_ptr); } 122 explicit operator bool() const { return m_ptr; } 122 123 #endif 123 124 -
trunk/Source/WTF/wtf/StdLibExtras.h
r157872 r160254 336 336 337 337 #if COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) 338 #if !defined(_MSC_VER) || _MSC_VER < 1800 338 339 template<class T, class... Args> inline typename _Unique_if<T>::_Single_object 339 340 make_unique(Args&&... args) … … 341 342 return unique_ptr<T>(new T(std::forward<Args>(args)...)); 342 343 } 344 #endif 343 345 #else 344 346 template<class T> inline typename _Unique_if<T>::_Single_object … … 409 411 #endif 410 412 413 #if !defined(_MSC_VER) || _MSC_VER < 1800 411 414 template<class T> inline typename _Unique_if<T>::_Unknown_bound 412 415 make_unique(size_t n) … … 415 418 return unique_ptr<T>(new U[n]()); 416 419 } 420 #endif 417 421 418 422 #if COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) -
trunk/Source/WebCore/ChangeLog
r160251 r160254 1 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com> 2 3 [Win] Support compiling with VS2013 4 https://bugs.webkit.org/show_bug.cgi?id=125353 5 6 Reviewed by Anders Carlsson. 7 8 * loader/archive/cf/LegacyWebArchive.cpp: 9 (WebCore::LegacyWebArchive::create): Use nullptr 10 (WebCore::LegacyWebArchive::createFromSelection): Ditto 11 1 12 2013-11-15 Jer Noble <jer.noble@apple.com> 2 13 -
trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
r159171 r160254 495 495 String markupString = documentTypeString(document) + createMarkup(*range, &nodeList, AnnotateForInterchange); 496 496 497 return create(markupString, frame, nodeList, 0);497 return create(markupString, frame, nodeList, nullptr); 498 498 } 499 499 … … 602 602 603 603 String markupString = builder.toString(); 604 RefPtr<LegacyWebArchive> archive = create(markupString, frame, nodeList, 0);604 RefPtr<LegacyWebArchive> archive = create(markupString, frame, nodeList, nullptr); 605 605 606 606 if (!document->isFrameSet()) -
trunk/Source/WebKit/ChangeLog
r160217 r160254 1 2013-12-06 Roger Fong <roger_fong@apple.com> and Brent Fulgham <bfulgham@apple.com> 2 3 [Win] Support compiling with VS2013. 4 https://bugs.webkit.org/show_bug.cgi?id=125353 5 6 Reviewed by Anders Carlsson. 7 8 * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Provide 9 proper exports for VS2013 build. 10 1 11 2013-12-06 Dániel Bátyai <Batyai.Daniel@stud.u-szeged.hu> 2 12 -
trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in
r160217 r160254 347 347 symbolWithPointer(?close@DOMWindow@WebCore@@QAEXPAVScriptExecutionContext@2@@Z, ?close@DOMWindow@WebCore@@QEAAXPEAVScriptExecutionContext@2@@Z) 348 348 symbolWithPointer(?document@DOMWindow@WebCore@@QBEPAVDocument@2@XZ, ?document@DOMWindow@WebCore@@QEBAPEAVDocument@2@XZ) 349 #if _MSC_VER < 1800 349 350 symbolWithPointer(?open@DOMWindow@WebCore@@QAE?AV?$PassRefPtr@VDOMWindow@WebCore@@@WTF@@ABVString@4@ABVAtomicString@4@0PAV12@2@Z, ?open@DOMWindow@WebCore@@QEAA?AV?$PassRefPtr@VDOMWindow@WebCore@@@WTF@@AEBVString@4@AEBVAtomicString@4@0PEAV12@2@Z) 351 #else 352 symbolWithPointer(?open@DOMWindow@WebCore@@QAE?AV?$PassRefPtr@VDOMWindow@WebCore@@@WTF@@ABVString@4@ABVAtomicString@4@0AAV12@2@Z, ?open@DOMWindow@WebCore@@QEAA?AV?$PassRefPtr@VDOMWindow@WebCore@@@WTF@@AEBVString@4@AEBVAtomicString@4@0AEAV12@2@Z) 353 354 #endif 350 355 symbolWithPointer(?toJS@WebCore@@YA?AVJSValue@JSC@@PAVExecState@3@PAVJSDOMGlobalObject@1@PAVDOMWindow@1@@Z, ?toJS@WebCore@@YA?AVJSValue@JSC@@PEAVExecState@3@PEAVJSDOMGlobalObject@1@PEAVDOMWindow@1@@Z) 351 356 symbolWithPointer(?layerTreeAsText@Frame@WebCore@@QBE?AVString@WTF@@I@Z, ?layerTreeAsText@Frame@WebCore@@QEBA?AVString@WTF@@I@Z) … … 460 465 symbolWithPointer(?setDefaultOriginQuota@ApplicationCacheStorage@WebCore@@QAEX_J@Z, ?setDefaultOriginQuota@ApplicationCacheStorage@WebCore@@QEAAX_J@Z) 461 466 symbolWithPointer(?vm@ScriptExecutionContext@WebCore@@QAEPAVVM@JSC@@XZ, ?vm@ScriptExecutionContext@WebCore@@QEAAPEAVVM@JSC@@XZ) 467 #if _MSC_VER >= 1800 468 symbolWithPointer(?completeURL@Document@WebCore@@UBE?AVURL@2@ABVString@WTF@@@Z, ?completeURL@Document@WebCore@@UBE?AVURL@2@ABVString@WTF@@@Z) 469 symbolWithPointer(??1DOMWindow@WebCore@@UAE@XZ, ??1DOMWindow@WebCore@@UAE@XZ) 470 symbolWithPointer(?visibleContentRect@ScrollView@WebCore@@UBE?AVIntRect@2@W4VisibleContentRectIncludesScrollbars@ScrollableArea@2@@Z, ?visibleContentRect@ScrollView@WebCore@@UBE?AVIntRect@2@W4VisibleContentRectIncludesScrollbars@ScrollableArea@2@@Z) 471 #endif
Note: See TracChangeset
for help on using the changeset viewer.