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

Side by Side Diff: runtime/vm/assembler_arm64_test.cc

Issue 1944503002: Adds more DBC assembler tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | runtime/vm/assembler_dbc_test.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 1680
1681 1681
1682 static void LeaveTestFrame(Assembler* assembler) { 1682 static void LeaveTestFrame(Assembler* assembler) {
1683 __ PopAndUntagPP(); 1683 __ PopAndUntagPP();
1684 __ Pop(THR); 1684 __ Pop(THR);
1685 __ Pop(CODE_REG); 1685 __ Pop(CODE_REG);
1686 __ LeaveFrame(); 1686 __ LeaveFrame();
1687 } 1687 }
1688 1688
1689 1689
1690
1691
1692 // Loading immediate values with the object pool. 1690 // Loading immediate values with the object pool.
1693 ASSEMBLER_TEST_GENERATE(LoadImmediatePPSmall, assembler) { 1691 ASSEMBLER_TEST_GENERATE(LoadImmediatePPSmall, assembler) {
1694 __ SetupDartSP(kTestStackSpace); 1692 __ SetupDartSP(kTestStackSpace);
1695 EnterTestFrame(assembler); 1693 EnterTestFrame(assembler);
1696 __ LoadImmediate(R0, 42); 1694 __ LoadImmediate(R0, 42);
1697 LeaveTestFrame(assembler); 1695 LeaveTestFrame(assembler);
1698 __ mov(CSP, SP); 1696 __ mov(CSP, SP);
1699 __ ret(); 1697 __ ret();
1700 } 1698 }
1701 1699
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
3676 3674
3677 EXPECT_EQ(-1, RANGE_OF(RawBool*, Bool::True().raw())); 3675 EXPECT_EQ(-1, RANGE_OF(RawBool*, Bool::True().raw()));
3678 3676
3679 #undef RANGE_OF 3677 #undef RANGE_OF
3680 } 3678 }
3681 3679
3682 3680
3683 } // namespace dart 3681 } // namespace dart
3684 3682
3685 #endif // defined(TARGET_ARCH_ARM64) 3683 #endif // defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_dbc_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698