Index: test/compiler-unittests/compiler-unittests.h |
diff --git a/test/compiler-unittests/compiler-unittests.h b/test/compiler-unittests/compiler-unittests.h |
index aa978a2c52221ef3bb48be5b4f1c11a57f190c64..091b137066d07b37ef3a11235cbaf6bec18349f3 100644 |
--- a/test/compiler-unittests/compiler-unittests.h |
+++ b/test/compiler-unittests/compiler-unittests.h |
@@ -33,6 +33,16 @@ namespace compiler { |
#endif |
+// The TARGET_TYPED_TEST(Case, Name) macro works just like |
+// TYPED_TEST(Case, Name), except that the test is disabled |
+// if the platform is not a supported TurboFan target. |
+#if V8_TURBOFAN_TARGET |
+#define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, Name) |
+#else |
+#define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, DISABLED_##Name) |
+#endif |
+ |
+ |
class CompilerTest : public ::testing::Test { |
public: |
CompilerTest(); |