Index: src/extensions/i18n/i18n-extension.h |
diff --git a/test/cctest/test-cpu-x64.cc b/src/extensions/i18n/i18n-extension.h |
similarity index 82% |
copy from test/cctest/test-cpu-x64.cc |
copy to src/extensions/i18n/i18n-extension.h |
index a2c45cf8621e7aabb1879620b7a897f5a5ca56b8..9e538cb2ddcc1beffbb960b58289276c54116071 100644 |
--- a/test/cctest/test-cpu-x64.cc |
+++ b/src/extensions/i18n/i18n-extension.h |
@@ -24,21 +24,25 @@ |
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// limitations under the License. |
+ |
+#ifndef V8_EXTENSIONS_I18N_I18N_EXTENSION_H_ |
+#define V8_EXTENSIONS_I18N_I18N_EXTENSION_H_ |
#include "v8.h" |
-#include "cctest.h" |
-#include "cpu.h" |
+namespace v8_i18n { |
+ |
+class Extension : public v8::Extension { |
+ public: |
+ Extension(); |
+ |
+ static void Register(); |
-using namespace v8::internal; |
+ private: |
+ static Extension* extension_; |
+}; |
+} // namespace v8_i18n |
-TEST(RequiredFeaturesX64) { |
- // Test for the features required by every x64 CPU. |
- CPU cpu; |
- CHECK(cpu.has_fpu()); |
- CHECK(cpu.has_cmov()); |
- CHECK(cpu.has_mmx()); |
- CHECK(cpu.has_sse()); |
- CHECK(cpu.has_sse2()); |
-} |
+#endif // V8_EXTENSIONS_I18N_I18N_EXTENSION_H_ |