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

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

Issue 2226843002: Fuchsia: Fix arm64 build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/cpu_arm64.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"
11 #include "vm/unit_test.h" 11 #include "vm/unit_test.h"
12 #include "vm/virtual_memory.h" 12 #include "vm/virtual_memory.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 static const intptr_t kTestStackSpace = 512 * kWordSize;
17
18 #define __ assembler-> 16 #define __ assembler->
19 17
20 ASSEMBLER_TEST_GENERATE(Simple, assembler) { 18 ASSEMBLER_TEST_GENERATE(Simple, assembler) {
21 __ add(R0, ZR, Operand(ZR)); 19 __ add(R0, ZR, Operand(ZR));
22 __ add(R0, R0, Operand(42)); 20 __ add(R0, R0, Operand(42));
23 __ ret(); 21 __ ret();
24 } 22 }
25 23
26 24
27 ASSEMBLER_TEST_RUN(Simple, test) { 25 ASSEMBLER_TEST_RUN(Simple, test) {
(...skipping 3602 matching lines...) Expand 10 before | Expand all | Expand 10 after
3630 __ Pop(LR); 3628 __ Pop(LR);
3631 __ Pop(THR); 3629 __ Pop(THR);
3632 __ Pop(CODE_REG); 3630 __ Pop(CODE_REG);
3633 __ RestoreCSP(); 3631 __ RestoreCSP();
3634 __ ret(); 3632 __ ret();
3635 } 3633 }
3636 3634
3637 } // namespace dart 3635 } // namespace dart
3638 3636
3639 #endif // defined(TARGET_ARCH_ARM64) 3637 #endif // defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/cpu_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698