Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1353)

Unified Diff: test/cctest/compiler/test-instruction-selector.cc

Issue 441883004: [turbofan] Improve testability of the InstructionSelector. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also add sample test for ia32. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/compiler/test-instruction-selector.cc
diff --git a/test/cctest/compiler/test-instruction-selector.cc b/test/cctest/compiler/test-instruction-selector.cc
index 862643f0c8f4b42dbc42a214b6abbf1134df0308..4cab8758a13ca2155e113cb1be3acfd3e590867b 100644
--- a/test/cctest/compiler/test-instruction-selector.cc
+++ b/test/cctest/compiler/test-instruction-selector.cc
@@ -7,16 +7,16 @@
using namespace v8::internal;
using namespace v8::internal::compiler;
-#if V8_TURBOFAN_TARGET
+#if V8_TURBOFAN_BACKEND
TEST(InstructionSelectionReturnZero) {
- InstructionSelectorTester m(InstructionSelectorTester::kInternalMode);
+ InstructionSelectorTester m;
m.Return(m.Int32Constant(0));
- m.SelectInstructions();
+ m.SelectInstructions(InstructionSelectorTester::kInternalMode);
CHECK_EQ(2, static_cast<int>(m.code.size()));
CHECK_EQ(kArchNop, m.code[0]->opcode());
CHECK_EQ(kArchRet, m.code[1]->opcode());
CHECK_EQ(1, static_cast<int>(m.code[1]->InputCount()));
}
-#endif
+#endif // !V8_TURBOFAN_BACKEND
« no previous file with comments | « test/cctest/compiler/instruction-selector-tester.h ('k') | test/cctest/compiler/test-instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698