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

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

Issue 269343010: Adds single-precision and SIMD load/store to arm64. (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
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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 944
945 945
946 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { 946 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) {
947 // LR: return address. 947 // LR: return address.
948 // SP+1: receiver. 948 // SP+1: receiver.
949 // SP+0: value. 949 // SP+0: value.
950 // Sequence node has one store node and one return NULL node. 950 // Sequence node has one store node and one return NULL node.
951 __ Comment("Inlined Setter"); 951 __ Comment("Inlined Setter");
952 __ LoadFromOffset(R0, SP, 1 * kWordSize); // Receiver. 952 __ LoadFromOffset(R0, SP, 1 * kWordSize); // Receiver.
953 __ LoadFromOffset(R1, SP, 0 * kWordSize); // Value. 953 __ LoadFromOffset(R1, SP, 0 * kWordSize); // Value.
954 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1); 954 __ StoreIntoObjectOffset(R0, offset, R1);
955 __ LoadObject(R0, Object::null_object(), PP); 955 __ LoadObject(R0, Object::null_object(), PP);
956 __ ret(); 956 __ ret();
957 } 957 }
958 958
959 959
960 void FlowGraphCompiler::EmitFrameEntry() { 960 void FlowGraphCompiler::EmitFrameEntry() {
961 const Function& function = parsed_function().function(); 961 const Function& function = parsed_function().function();
962 Register new_pp = kNoPP; 962 Register new_pp = kNoPP;
963 if (CanOptimizeFunction() && 963 if (CanOptimizeFunction() &&
964 function.IsOptimizable() && 964 function.IsOptimizable() &&
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1772 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1773 UNIMPLEMENTED(); 1773 UNIMPLEMENTED();
1774 } 1774 }
1775 1775
1776 1776
1777 #undef __ 1777 #undef __
1778 1778
1779 } // namespace dart 1779 } // namespace dart
1780 1780
1781 #endif // defined TARGET_ARCH_ARM64 1781 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698