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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-win32.cc
===================================================================
--- src/platform-win32.cc (revision 3332)
+++ src/platform-win32.cc (working copy)
@@ -1317,7 +1317,16 @@
uint64_t OS::CpuFeaturesImpliedByPlatform() {
+#if _M_IX86_FP == 2
+ // If the C++ compiler is using SSE2 then we can use that in the
+ // snapshot too. SSE2 implies a bunch of other features that were
+ // invented before SSE2. This is for MSVC++, there doesn't appear
+ // to be any equivalent for gcc. See
+ // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
+ return (1u << SSE2) | (1u << CMOV) | (1u << RDTSC) | (1u << CPUID);
+#else
return 0; // Windows runs on anything.
+#endif
}
« 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