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

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

Issue 247023004: Adds StoreIntoObject for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698