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

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

Issue 13801014: Fix bug in ParallelMoveResolver::EmitSwap: implement swaps of FPU spill slots. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo Created 7 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
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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 2885 matching lines...) Expand 10 before | Expand all | Expand 10 after
2896 UNREACHABLE(); 2896 UNREACHABLE();
2897 } 2897 }
2898 } 2898 }
2899 2899
2900 2900
2901 LocationSummary* InvokeMathCFunctionInstr::MakeLocationSummary() const { 2901 LocationSummary* InvokeMathCFunctionInstr::MakeLocationSummary() const {
2902 ASSERT((InputCount() == 1) || (InputCount() == 2)); 2902 ASSERT((InputCount() == 1) || (InputCount() == 2));
2903 const intptr_t kNumTemps = 0; 2903 const intptr_t kNumTemps = 0;
2904 LocationSummary* result = 2904 LocationSummary* result =
2905 new LocationSummary(InputCount(), kNumTemps, LocationSummary::kCall); 2905 new LocationSummary(InputCount(), kNumTemps, LocationSummary::kCall);
2906 result->set_in(0, Location::FpuRegisterLocation(XMM1, kUnboxedDouble)); 2906 result->set_in(0, Location::FpuRegisterLocation(XMM1));
2907 if (InputCount() == 2) { 2907 if (InputCount() == 2) {
2908 result->set_in(1, Location::FpuRegisterLocation(XMM2, kUnboxedDouble)); 2908 result->set_in(1, Location::FpuRegisterLocation(XMM2));
2909 } 2909 }
2910 result->set_out(Location::FpuRegisterLocation(XMM1, kUnboxedDouble)); 2910 result->set_out(Location::FpuRegisterLocation(XMM1));
2911 return result; 2911 return result;
2912 } 2912 }
2913 2913
2914 2914
2915 void InvokeMathCFunctionInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2915 void InvokeMathCFunctionInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2916 __ EnterFrame(0); 2916 __ EnterFrame(0);
2917 __ ReserveAlignedFrameSpace(kDoubleSize * InputCount()); 2917 __ ReserveAlignedFrameSpace(kDoubleSize * InputCount());
2918 for (intptr_t i = 0; i < InputCount(); i++) { 2918 for (intptr_t i = 0; i < InputCount(); i++) {
2919 __ movsd(Address(ESP, kDoubleSize * i), locs()->in(i).fpu_reg()); 2919 __ movsd(Address(ESP, kDoubleSize * i), locs()->in(i).fpu_reg());
2920 } 2920 }
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3719 PcDescriptors::kOther, 3719 PcDescriptors::kOther,
3720 locs()); 3720 locs());
3721 __ Drop(2); // Discard type arguments and receiver. 3721 __ Drop(2); // Discard type arguments and receiver.
3722 } 3722 }
3723 3723
3724 } // namespace dart 3724 } // namespace dart
3725 3725
3726 #undef __ 3726 #undef __
3727 3727
3728 #endif // defined TARGET_ARCH_IA32 3728 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698