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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 392343002: Cleanup of class id loading sequences. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32_test.cc
===================================================================
--- runtime/vm/assembler_ia32_test.cc (revision 38317)
+++ runtime/vm/assembler_ia32_test.cc (working copy)
@@ -179,6 +179,25 @@
}
+ASSEMBLER_TEST_GENERATE(Cmpb, assembler) {
+ Label done;
+ __ movl(EAX, Immediate(1));
+ __ pushl(Immediate(0xffffff11));
+ __ cmpb(Address(ESP, 0), Immediate(0x11));
+ __ j(EQUAL, &done, Assembler::kNearJump);
+ __ movl(EAX, Immediate(0));
+ __ Bind(&done);
+ __ popl(ECX);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Cmpb, test) {
+ typedef int (*CmpbCode)();
+ EXPECT_EQ(1, reinterpret_cast<CmpbCode>(test->entry())());
+}
+
+
ASSEMBLER_TEST_GENERATE(Increment, assembler) {
__ movl(EAX, Immediate(0));
__ pushl(EAX);
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698