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

Unified Diff: runtime/vm/assembler_x64.h

Issue 120723003: Refactors CPU feature detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/assembler_x64.h
===================================================================
--- runtime/vm/assembler_x64.h (revision 32467)
+++ runtime/vm/assembler_x64.h (working copy)
@@ -317,24 +317,6 @@
};
-class CPUFeatures : public AllStatic {
- public:
- static void InitOnce();
- // x64 always has at least SSE2.
- static bool sse2_supported() { return true; }
- static bool sse4_1_supported();
- static bool double_truncate_round_supported() { return sse4_1_supported(); }
-
- private:
- static const uint64_t kSSE4_1BitMask = static_cast<uint64_t>(1) << 51;
-
- static bool sse4_1_supported_;
-#ifdef DEBUG
- static bool initialized_;
-#endif
-};
-
-
class Assembler : public ValueObject {
public:
explicit Assembler(bool use_far_branches = false);

Powered by Google App Engine
This is Rietveld 408576698