Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #ifndef VM_CPU_MIPS_H_ | |
| 6 #define VM_CPU_MIPS_H_ | |
| 7 | |
| 8 #include "vm/allocation.h" | |
| 9 | |
| 10 namespace dart { | |
| 11 | |
| 12 class HostCPUFeatures: public AllStatic { | |
|
Ivan Posva
2014/01/21 21:41:02
Don't you support the same simulator overriding ca
zra
2014/01/24 21:18:27
Done.
| |
| 13 public: | |
| 14 static void InitOnce(); | |
| 15 static char* hardware() { | |
| 16 DEBUG_ASSERT(initialized_); | |
| 17 return hardware_; | |
| 18 } | |
| 19 | |
| 20 private: | |
| 21 static char* hardware_; | |
| 22 #if defined(DEBUG) | |
| 23 static bool initialized_; | |
| 24 #endif | |
| 25 }; | |
| 26 | |
| 27 class TargetCPUFeatures : public AllStatic { | |
| 28 public: | |
| 29 static void InitOnce() { HostCPUFeatures::InitOnce(); } | |
| 30 static bool double_truncate_round_supported() { return false; } | |
| 31 }; | |
| 32 | |
| 33 } // namespace dart | |
| 34 | |
| 35 #endif // VM_CPU_MIPS_H_ | |
| OLD | NEW |