| 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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1278 __ ret(); | 1278 __ ret(); |
| 1279 } | 1279 } |
| 1280 | 1280 |
| 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 |
| 1289 // Called from assembler_test.cc. |
| 1290 // LR: return address. |
| 1291 // R0: context. |
| 1292 // R1: value. |
| 1293 // R2: growable array. |
| 1294 ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) { |
| 1295 __ PushPP(); |
| 1296 __ LoadPoolPointer(PP); |
| 1297 __ Push(CTX); |
| 1298 __ Push(LR); |
| 1299 __ mov(CTX, R0); |
| 1300 __ StoreIntoObject(R2, |
| 1301 FieldAddress(R2, GrowableObjectArray::data_offset()), |
| 1302 R1); |
| 1303 __ Pop(LR); |
| 1304 __ Pop(CTX); |
| 1305 __ PopPP(); |
| 1306 __ ret(); |
| 1307 } |
| 1308 |
| 1288 } // namespace dart | 1309 } // namespace dart |
| 1289 | 1310 |
| 1290 #endif // defined(TARGET_ARCH_ARM64) | 1311 #endif // defined(TARGET_ARCH_ARM64) |
| OLD | NEW |