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

Side by Side Diff: test/cctest/test-assembler-arm64.cc

Issue 877753007: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: VS201x now happy? Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | test/cctest/test-assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3748 matching lines...) Expand 10 before | Expand all | Expand 10 after
3759 START(); 3759 START();
3760 __ Mov(x0, 0); 3760 __ Mov(x0, 0);
3761 __ Mov(x1, 0); 3761 __ Mov(x1, 0);
3762 __ Mov(x2, 0); 3762 __ Mov(x2, 0);
3763 3763
3764 Label blob1; 3764 Label blob1;
3765 __ Bind(&blob1); 3765 __ Bind(&blob1);
3766 __ Add(x0, x0, 0); 3766 __ Add(x0, x0, 0);
3767 __ Sub(x1, x1, 0); 3767 __ Sub(x1, x1, 0);
3768 __ Sub(x2, x2, xzr); 3768 __ Sub(x2, x2, xzr);
3769 CHECK_EQ(0, __ SizeOfCodeGeneratedSince(&blob1)); 3769 CHECK_EQ(0u, __ SizeOfCodeGeneratedSince(&blob1));
3770 3770
3771 Label blob2; 3771 Label blob2;
3772 __ Bind(&blob2); 3772 __ Bind(&blob2);
3773 __ Add(w3, w3, 0); 3773 __ Add(w3, w3, 0);
3774 CHECK_NE(0, __ SizeOfCodeGeneratedSince(&blob2)); 3774 CHECK_NE(0u, __ SizeOfCodeGeneratedSince(&blob2));
3775 3775
3776 Label blob3; 3776 Label blob3;
3777 __ Bind(&blob3); 3777 __ Bind(&blob3);
3778 __ Sub(w3, w3, wzr); 3778 __ Sub(w3, w3, wzr);
3779 CHECK_NE(0, __ SizeOfCodeGeneratedSince(&blob3)); 3779 CHECK_NE(0u, __ SizeOfCodeGeneratedSince(&blob3));
3780 3780
3781 END(); 3781 END();
3782 3782
3783 RUN(); 3783 RUN();
3784 3784
3785 CHECK_EQUAL_64(0, x0); 3785 CHECK_EQUAL_64(0, x0);
3786 CHECK_EQUAL_64(0, x1); 3786 CHECK_EQUAL_64(0, x1);
3787 CHECK_EQUAL_64(0, x2); 3787 CHECK_EQUAL_64(0, x2);
3788 3788
3789 TEARDOWN(); 3789 TEARDOWN();
(...skipping 13 matching lines...) Expand all
3803 __ Claim(xzr, 8); 3803 __ Claim(xzr, 8);
3804 __ Drop(xzr, 8); 3804 __ Drop(xzr, 8);
3805 __ Claim(xzr, 0); 3805 __ Claim(xzr, 0);
3806 __ Drop(xzr, 0); 3806 __ Drop(xzr, 0);
3807 __ Claim(x7, 0); 3807 __ Claim(x7, 0);
3808 __ Drop(x7, 0); 3808 __ Drop(x7, 0);
3809 __ ClaimBySMI(xzr, 8); 3809 __ ClaimBySMI(xzr, 8);
3810 __ DropBySMI(xzr, 8); 3810 __ DropBySMI(xzr, 8);
3811 __ ClaimBySMI(xzr, 0); 3811 __ ClaimBySMI(xzr, 0);
3812 __ DropBySMI(xzr, 0); 3812 __ DropBySMI(xzr, 0);
3813 CHECK_EQ(0, __ SizeOfCodeGeneratedSince(&start)); 3813 CHECK_EQ(0u, __ SizeOfCodeGeneratedSince(&start));
3814 3814
3815 END(); 3815 END();
3816 3816
3817 RUN(); 3817 RUN();
3818 3818
3819 TEARDOWN(); 3819 TEARDOWN();
3820 } 3820 }
3821 3821
3822 3822
3823 TEST(neg) { 3823 TEST(neg) {
(...skipping 7392 matching lines...) Expand 10 before | Expand all | Expand 10 after
11216 if (RelocInfo::IsVeneerPool(info->rmode())) { 11216 if (RelocInfo::IsVeneerPool(info->rmode())) {
11217 DCHECK(info->data() == veneer_pool_size); 11217 DCHECK(info->data() == veneer_pool_size);
11218 ++pool_count; 11218 ++pool_count;
11219 } 11219 }
11220 } 11220 }
11221 11221
11222 DCHECK(pool_count == 2); 11222 DCHECK(pool_count == 2);
11223 11223
11224 TEARDOWN(); 11224 TEARDOWN();
11225 } 11225 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | test/cctest/test-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698