| Index: runtime/vm/cpu_mips.h
|
| ===================================================================
|
| --- runtime/vm/cpu_mips.h (revision 34370)
|
| +++ runtime/vm/cpu_mips.h (working copy)
|
| @@ -17,6 +17,12 @@
|
| // additionally mock the options needed for the target architecture so that
|
| // they may be altered for testing.
|
|
|
| +enum MIPSVersion {
|
| + MIPS32,
|
| + MIPS32r2,
|
| + MIPSvUnknown,
|
| +};
|
| +
|
| class HostCPUFeatures: public AllStatic {
|
| public:
|
| static void InitOnce();
|
| @@ -25,9 +31,14 @@
|
| DEBUG_ASSERT(initialized_);
|
| return hardware_;
|
| }
|
| + static MIPSVersion mips_version() {
|
| + DEBUG_ASSERT(initialized_);
|
| + return mips_version_;
|
| + }
|
|
|
| private:
|
| static const char* hardware_;
|
| + static MIPSVersion mips_version_;
|
| #if defined(DEBUG)
|
| static bool initialized_;
|
| #endif
|
| @@ -47,6 +58,9 @@
|
| static bool double_truncate_round_supported() {
|
| return false;
|
| }
|
| + static MIPSVersion mips_version() {
|
| + return HostCPUFeatures::mips_version();
|
| + }
|
| };
|
|
|
| } // namespace dart
|
|
|