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

Unified Diff: runtime/vm/assembler_x64_test.cc

Issue 381803005: Reland r38116: Improve receiver class check in polymorphic inlining. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments Created 6 years, 5 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: runtime/vm/assembler_x64_test.cc
===================================================================
--- runtime/vm/assembler_x64_test.cc (revision 38118)
+++ runtime/vm/assembler_x64_test.cc (working copy)
@@ -2950,6 +2950,25 @@
}
+ASSEMBLER_TEST_GENERATE(BitTest, assembler) {
+ __ movq(RAX, Immediate(4));
+ __ movq(R12, Immediate(2));
+ __ btq(RAX, R12);
+ Label ok;
+ __ j(CARRY, &ok);
+ __ int3();
+ __ Bind(&ok);
+ __ movq(RAX, Immediate(1));
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(BitTest, test) {
+ typedef int (*BitTest)();
+ EXPECT_EQ(1, reinterpret_cast<BitTest>(test->entry())());
+}
+
+
// Return 1 if equal, 0 if not equal.
ASSEMBLER_TEST_GENERATE(ConditionalMovesEqual, assembler) {
__ movq(RDX, CallingConventions::kArg1Reg);

Powered by Google App Engine
This is Rietveld 408576698