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

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

Issue 294223003: Last cross-platform cleanup in preparation of improved ARM code for indexed (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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" // Needed here to get TARGET_ARCH_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 ASSERT(!random_A_field.IsNull()); 1127 ASSERT(!random_A_field.IsNull());
1128 ASSERT(random_A_field.is_const()); 1128 ASSERT(random_A_field.is_const());
1129 const Instance& a_value = Instance::Handle(random_A_field.value()); 1129 const Instance& a_value = Instance::Handle(random_A_field.value());
1130 const int64_t a_int_value = Integer::Cast(a_value).AsInt64Value(); 1130 const int64_t a_int_value = Integer::Cast(a_value).AsInt64Value();
1131 1131
1132 __ ldr(R0, Address(SP, 0 * kWordSize)); // Receiver. 1132 __ ldr(R0, Address(SP, 0 * kWordSize)); // Receiver.
1133 __ ldr(R1, FieldAddress(R0, state_field.Offset())); // Field '_state'. 1133 __ ldr(R1, FieldAddress(R0, state_field.Offset())); // Field '_state'.
1134 1134
1135 // Addresses of _state[0]. 1135 // Addresses of _state[0].
1136 const int64_t disp = 1136 const int64_t disp =
1137 FlowGraphCompiler::DataOffsetFor(kTypedDataUint32ArrayCid) - 1137 Instance::DataOffsetFor(kTypedDataUint32ArrayCid) - kHeapObjectTag;
1138 kHeapObjectTag;
1139 1138
1140 __ LoadImmediate(R0, a_int_value, kNoPP); 1139 __ LoadImmediate(R0, a_int_value, kNoPP);
1141 __ LoadFromOffset(R2, R1, disp, kNoPP); 1140 __ LoadFromOffset(R2, R1, disp, kNoPP);
1142 __ Lsr(R3, R2, 32); 1141 __ Lsr(R3, R2, 32);
1143 __ andi(R2, R2, 0xffffffff); 1142 __ andi(R2, R2, 0xffffffff);
1144 __ mul(R2, R0, R2); 1143 __ mul(R2, R0, R2);
1145 __ add(R2, R2, Operand(R3)); 1144 __ add(R2, R2, Operand(R3));
1146 __ StoreToOffset(R2, R1, disp, kNoPP); 1145 __ StoreToOffset(R2, R1, disp, kNoPP);
1147 __ ret(); 1146 __ ret();
1148 } 1147 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 Isolate* isolate = Isolate::Current(); 1551 Isolate* isolate = Isolate::Current();
1553 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); 1552 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP);
1554 // Set return value to Isolate::current_tag_. 1553 // Set return value to Isolate::current_tag_.
1555 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 1554 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
1556 __ ret(); 1555 __ ret();
1557 } 1556 }
1558 1557
1559 } // namespace dart 1558 } // namespace dart
1560 1559
1561 #endif // defined TARGET_ARCH_ARM64 1560 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698