Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: Source/wtf/dtoa.cpp

Issue 27009003: Fixes for compilation of Blink on VS2013 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/wtf/MathExtras.h ('k') | public/platform/WebFloatSize.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /**************************************************************** 1 /****************************************************************
2 * 2 *
3 * The author of this software is David M. Gay. 3 * The author of this software is David M. Gay.
4 * 4 *
5 * Copyright (c) 1991, 2000, 2001 by Lucent Technologies. 5 * Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
6 * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved. 6 * Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved.
7 * 7 *
8 * Permission to use, copy, modify, and distribute this software for any 8 * Permission to use, copy, modify, and distribute this software for any
9 * purpose without fee is hereby granted, provided that this entire notice 9 * purpose without fee is hereby granted, provided that this entire notice
10 * is included in all copies of any software which is or includes a copy 10 * is included in all copies of any software which is or includes a copy
(...skipping 26 matching lines...) Expand all
37 37
38 #include "wtf/CPU.h" 38 #include "wtf/CPU.h"
39 #include "wtf/MathExtras.h" 39 #include "wtf/MathExtras.h"
40 #include "wtf/ThreadingPrimitives.h" 40 #include "wtf/ThreadingPrimitives.h"
41 #include "wtf/Vector.h" 41 #include "wtf/Vector.h"
42 42
43 #if COMPILER(MSVC) 43 #if COMPILER(MSVC)
44 #pragma warning(disable: 4244) 44 #pragma warning(disable: 4244)
45 #pragma warning(disable: 4245) 45 #pragma warning(disable: 4245)
46 #pragma warning(disable: 4554) 46 #pragma warning(disable: 4554)
47
48 #if _MSC_VER == 1800
49 // TODO(scottmg): VS2013 currently ICEs on a bunch of functions in this file.
50 // Upstream bug fixed in next release. See http://crbug.com/288498.
51 #pragma optimize("", off)
52 #endif
53
47 #endif 54 #endif
48 55
49 namespace WTF { 56 namespace WTF {
50 57
51 Mutex* s_dtoaP5Mutex; 58 Mutex* s_dtoaP5Mutex;
52 59
53 typedef union { 60 typedef union {
54 double d; 61 double d;
55 uint32_t L[2]; 62 uint32_t L[2];
56 } U; 63 } U;
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 { 1311 {
1305 Vector<LChar> conversionBuffer(length); 1312 Vector<LChar> conversionBuffer(length);
1306 for (size_t i = 0; i < length; ++i) 1313 for (size_t i = 0; i < length; ++i)
1307 conversionBuffer[i] = isASCII(string[i]) ? string[i] : 0; 1314 conversionBuffer[i] = isASCII(string[i]) ? string[i] : 0;
1308 return parseDouble(conversionBuffer.data(), length, parsedLength); 1315 return parseDouble(conversionBuffer.data(), length, parsedLength);
1309 } 1316 }
1310 1317
1311 } // namespace Internal 1318 } // namespace Internal
1312 1319
1313 } // namespace WTF 1320 } // namespace WTF
OLDNEW
« no previous file with comments | « Source/wtf/MathExtras.h ('k') | public/platform/WebFloatSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698