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

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

Issue 15822008: Implements intrinsics for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
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" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 FpuRegister right, 1507 FpuRegister right,
1508 Register result) { 1508 Register result) {
1509 UNIMPLEMENTED(); 1509 UNIMPLEMENTED();
1510 } 1510 }
1511 1511
1512 1512
1513 FieldAddress FlowGraphCompiler::ElementAddressForIntIndex(intptr_t cid, 1513 FieldAddress FlowGraphCompiler::ElementAddressForIntIndex(intptr_t cid,
1514 intptr_t index_scale, 1514 intptr_t index_scale,
1515 Register array, 1515 Register array,
1516 intptr_t index) { 1516 intptr_t index) {
1517 UNIMPLEMENTED(); 1517 const int64_t disp =
1518 return FieldAddress(array, index); 1518 static_cast<int64_t>(index) * index_scale + DataOffsetFor(cid);
1519 ASSERT(Utils::IsAbsoluteUint(12, disp));
regis 2013/05/28 22:01:44 This assert will fire sooner or later. I do not th
zra 2013/05/28 22:49:31 Done.
1520 return FieldAddress(array, static_cast<int32_t>(disp));
1519 } 1521 }
1520 1522
1521 1523
1522 FieldAddress FlowGraphCompiler::ElementAddressForRegIndex(intptr_t cid, 1524 FieldAddress FlowGraphCompiler::ElementAddressForRegIndex(intptr_t cid,
1523 intptr_t index_scale, 1525 intptr_t index_scale,
1524 Register array, 1526 Register array,
1525 Register index) { 1527 Register index) {
1526 UNREACHABLE(); // No register indexed with offset addressing mode on ARM. 1528 UNREACHABLE(); // No register indexed with offset addressing mode on ARM.
1527 return FieldAddress(array, index); 1529 return FieldAddress(array, index);
1528 } 1530 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1730 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1729 __ vldrd(reg, Address(SP, kDoubleSize, Address::PostIndex)); 1731 __ vldrd(reg, Address(SP, kDoubleSize, Address::PostIndex));
1730 } 1732 }
1731 1733
1732 1734
1733 #undef __ 1735 #undef __
1734 1736
1735 } // namespace dart 1737 } // namespace dart
1736 1738
1737 #endif // defined TARGET_ARCH_ARM 1739 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698