| OLD | NEW |
| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 ASSEMBLER_TEST_RUN(SimpleLoadStore, test) { | 297 ASSEMBLER_TEST_RUN(SimpleLoadStore, test) { |
| 298 typedef int (*SimpleCode)(); | 298 typedef int (*SimpleCode)(); |
| 299 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); | 299 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); |
| 300 } | 300 } |
| 301 | 301 |
| 302 | 302 |
| 303 ASSEMBLER_TEST_GENERATE(SimpleLoadStoreHeapTag, assembler) { | 303 ASSEMBLER_TEST_GENERATE(SimpleLoadStoreHeapTag, assembler) { |
| 304 __ movz(R0, 43, 0); | 304 __ movz(R0, 43, 0); |
| 305 __ movz(R1, 42, 0); | 305 __ movz(R1, 42, 0); |
| 306 __ add(R2, SP, Operand(1)); | 306 __ add(R2, SP, Operand(1)); |
| 307 __ str(R1, Address(R2, -1, Address::PreIndex)); | 307 __ str(R1, Address(R2, -1)); |
| 308 __ ldr(R0, Address(R2, -1, Address::PostIndex)); | 308 __ ldr(R0, Address(R2, -1)); |
| 309 __ ret(); | 309 __ ret(); |
| 310 } | 310 } |
| 311 | 311 |
| 312 | 312 |
| 313 ASSEMBLER_TEST_RUN(SimpleLoadStoreHeapTag, test) { | 313 ASSEMBLER_TEST_RUN(SimpleLoadStoreHeapTag, test) { |
| 314 typedef int (*SimpleCode)(); | 314 typedef int (*SimpleCode)(); |
| 315 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); | 315 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); |
| 316 } | 316 } |
| 317 | 317 |
| 318 | 318 |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 | 1281 |
| 1282 ASSEMBLER_TEST_RUN(LoadObjectFalse, test) { | 1282 ASSEMBLER_TEST_RUN(LoadObjectFalse, test) { |
| 1283 typedef int (*SimpleCode)(); | 1283 typedef int (*SimpleCode)(); |
| 1284 EXPECT_EQ(reinterpret_cast<int64_t>(Bool::False().raw()), | 1284 EXPECT_EQ(reinterpret_cast<int64_t>(Bool::False().raw()), |
| 1285 EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); | 1285 EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 } // namespace dart | 1288 } // namespace dart |
| 1289 | 1289 |
| 1290 #endif // defined(TARGET_ARCH_ARM64) | 1290 #endif // defined(TARGET_ARCH_ARM64) |
| OLD | NEW |