| Index: runtime/vm/assembler_ia32.h
|
| ===================================================================
|
| --- runtime/vm/assembler_ia32.h (revision 32559)
|
| +++ runtime/vm/assembler_ia32.h (working copy)
|
| @@ -286,6 +286,25 @@
|
| };
|
|
|
|
|
| +class CPUFeatures : public AllStatic {
|
| + public:
|
| + static void InitOnce();
|
| + static bool sse2_supported();
|
| + static bool sse4_1_supported();
|
| + static bool double_truncate_round_supported() { return sse4_1_supported(); }
|
| +
|
| + private:
|
| + static const uint64_t kSSE2BitMask = static_cast<uint64_t>(1) << 26;
|
| + static const uint64_t kSSE4_1BitMask = static_cast<uint64_t>(1) << 51;
|
| +
|
| + static bool sse2_supported_;
|
| + static bool sse4_1_supported_;
|
| +#ifdef DEBUG
|
| + static bool initialized_;
|
| +#endif
|
| +};
|
| +
|
| +
|
| class Assembler : public ValueObject {
|
| public:
|
| explicit Assembler(bool use_far_branches = false)
|
|
|