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

Side by Side Diff: src/platform-win32.cc

Issue 404026: Enable SSE2 in snapshot in Google Chrome. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 // Restore warnings to previous settings. 1310 // Restore warnings to previous settings.
1311 #pragma warning(pop) 1311 #pragma warning(pop)
1312 1312
1313 #else // __MINGW32__ 1313 #else // __MINGW32__
1314 void OS::LogSharedLibraryAddresses() { } 1314 void OS::LogSharedLibraryAddresses() { }
1315 int OS::StackWalk(Vector<OS::StackFrame> frames) { return 0; } 1315 int OS::StackWalk(Vector<OS::StackFrame> frames) { return 0; }
1316 #endif // __MINGW32__ 1316 #endif // __MINGW32__
1317 1317
1318 1318
1319 uint64_t OS::CpuFeaturesImpliedByPlatform() { 1319 uint64_t OS::CpuFeaturesImpliedByPlatform() {
1320 #if _M_IX86_FP == 2
1321 // If the C++ compiler is using SSE2 then we can use that in the
1322 // snapshot too. SSE2 implies a bunch of other features that were
1323 // invented before SSE2. This is for MSVC++, there doesn't appear
1324 // to be any equivalent for gcc. See
1325 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
1326 return (1u << SSE2) | (1u << CMOV) | (1u << RDTSC) | (1u << CPUID);
1327 #else
1320 return 0; // Windows runs on anything. 1328 return 0; // Windows runs on anything.
1329 #endif
1321 } 1330 }
1322 1331
1323 1332
1324 double OS::nan_value() { 1333 double OS::nan_value() {
1325 #ifdef _MSC_VER 1334 #ifdef _MSC_VER
1326 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits 1335 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits
1327 // in mask set, so value equals mask. 1336 // in mask set, so value equals mask.
1328 static const __int64 nanval = kQuietNaNMask; 1337 static const __int64 nanval = kQuietNaNMask;
1329 return *reinterpret_cast<const double*>(&nanval); 1338 return *reinterpret_cast<const double*>(&nanval);
1330 #else // _MSC_VER 1339 #else // _MSC_VER
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 1908
1900 // Release the thread handles 1909 // Release the thread handles
1901 CloseHandle(data_->sampler_thread_); 1910 CloseHandle(data_->sampler_thread_);
1902 CloseHandle(data_->profiled_thread_); 1911 CloseHandle(data_->profiled_thread_);
1903 } 1912 }
1904 1913
1905 1914
1906 #endif // ENABLE_LOGGING_AND_PROFILING 1915 #endif // ENABLE_LOGGING_AND_PROFILING
1907 1916
1908 } } // namespace v8::internal 1917 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698