Reviewers: Søren Gjesse,

Description:
Enable SSE2 in snapshot in Google Chrome.

Please review this at http://codereview.chromium.org/404026

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/platform-win32.cc


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
  }





--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to