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

Unified Diff: dart/runtime/vm/flow_graph_compiler_arm.cc

Issue 828433005: Version 1.8.4 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.8/
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/flow_graph_compiler_arm.cc
===================================================================
--- dart/runtime/vm/flow_graph_compiler_arm.cc (revision 42727)
+++ dart/runtime/vm/flow_graph_compiler_arm.cc (working copy)
@@ -1689,11 +1689,19 @@
Exchange(source.base_reg(), source.ToStackSlotOffset(),
destination.base_reg(), destination.ToStackSlotOffset());
} else if (source.IsFpuRegister() && destination.IsFpuRegister()) {
- const DRegister dst = EvenDRegisterOf(destination.fpu_reg());
- DRegister src = EvenDRegisterOf(source.fpu_reg());
- __ vmovd(DTMP, src);
- __ vmovd(src, dst);
- __ vmovd(dst, DTMP);
+ if (TargetCPUFeatures::neon_supported()) {
+ const QRegister dst = destination.fpu_reg();
+ const QRegister src = source.fpu_reg();
+ __ vmovq(QTMP, src);
+ __ vmovq(src, dst);
+ __ vmovq(dst, QTMP);
+ } else {
+ const DRegister dst = EvenDRegisterOf(destination.fpu_reg());
+ const DRegister src = EvenDRegisterOf(source.fpu_reg());
+ __ vmovd(DTMP, src);
+ __ vmovd(src, dst);
+ __ vmovd(dst, DTMP);
+ }
} else if (source.IsFpuRegister() || destination.IsFpuRegister()) {
ASSERT(destination.IsDoubleStackSlot() ||
destination.IsQuadStackSlot() ||
« no previous file with comments | « no previous file | dart/runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698