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

Unified Diff: JavaScriptCore/jit/JITArithmetic.cpp

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « JavaScriptCore/jit/JIT.cpp ('k') | JavaScriptCore/jit/JITCall.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: JavaScriptCore/jit/JITArithmetic.cpp
===================================================================
--- JavaScriptCore/jit/JITArithmetic.cpp (revision 10232)
+++ JavaScriptCore/jit/JITArithmetic.cpp (working copy)
@@ -621,9 +621,19 @@
cpuid;
mov flags, edx;
}
+#elif COMPILER(GCC)
+ asm (
+ "movl $0x1, %%eax;"
+ "pushl %%ebx;"
+ "cpuid;"
+ "popl %%ebx;"
+ "movl %%edx, %0;"
+ : "=g" (flags)
+ :
+ : "%eax", "%ecx", "%edx"
+ );
#else
flags = 0;
- // FIXME: Add GCC code to do above asm
#endif
present = (flags & SSE2FeatureBit) != 0;
}
« no previous file with comments | « JavaScriptCore/jit/JIT.cpp ('k') | JavaScriptCore/jit/JITCall.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698