| OLD | NEW |
| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3082 __ cvtss2sd(value, value); | 3082 __ cvtss2sd(value, value); |
| 3083 break; | 3083 break; |
| 3084 case MethodRecognizer::kFloat32x4Shuffle: | 3084 case MethodRecognizer::kFloat32x4Shuffle: |
| 3085 __ shufps(value, value, Immediate(mask_)); | 3085 __ shufps(value, value, Immediate(mask_)); |
| 3086 break; | 3086 break; |
| 3087 default: UNREACHABLE(); | 3087 default: UNREACHABLE(); |
| 3088 } | 3088 } |
| 3089 } | 3089 } |
| 3090 | 3090 |
| 3091 | 3091 |
| 3092 LocationSummary* Simd32x4GetSignMaskInstr::MakeLocationSummary() const { |
| 3093 const intptr_t kNumInputs = 1; |
| 3094 const intptr_t kNumTemps = 0; |
| 3095 LocationSummary* summary = |
| 3096 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 3097 summary->set_in(0, Location::RequiresFpuRegister()); |
| 3098 summary->set_out(Location::RequiresRegister()); |
| 3099 return summary; |
| 3100 } |
| 3101 |
| 3102 |
| 3103 void Simd32x4GetSignMaskInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3104 XmmRegister value = locs()->in(0).fpu_reg(); |
| 3105 Register out = locs()->out().reg(); |
| 3106 |
| 3107 __ movmskps(out, value); |
| 3108 __ SmiTag(out); |
| 3109 } |
| 3110 |
| 3111 |
| 3092 LocationSummary* Float32x4ConstructorInstr::MakeLocationSummary() const { | 3112 LocationSummary* Float32x4ConstructorInstr::MakeLocationSummary() const { |
| 3093 const intptr_t kNumInputs = 4; | 3113 const intptr_t kNumInputs = 4; |
| 3094 const intptr_t kNumTemps = 0; | 3114 const intptr_t kNumTemps = 0; |
| 3095 LocationSummary* summary = | 3115 LocationSummary* summary = |
| 3096 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); | 3116 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 3097 summary->set_in(0, Location::RequiresFpuRegister()); | 3117 summary->set_in(0, Location::RequiresFpuRegister()); |
| 3098 summary->set_in(1, Location::RequiresFpuRegister()); | 3118 summary->set_in(1, Location::RequiresFpuRegister()); |
| 3099 summary->set_in(2, Location::RequiresFpuRegister()); | 3119 summary->set_in(2, Location::RequiresFpuRegister()); |
| 3100 summary->set_in(3, Location::RequiresFpuRegister()); | 3120 summary->set_in(3, Location::RequiresFpuRegister()); |
| 3101 summary->set_out(Location::SameAsFirstInput()); | 3121 summary->set_out(Location::SameAsFirstInput()); |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4614 PcDescriptors::kOther, | 4634 PcDescriptors::kOther, |
| 4615 locs()); | 4635 locs()); |
| 4616 __ Drop(2); // Discard type arguments and receiver. | 4636 __ Drop(2); // Discard type arguments and receiver. |
| 4617 } | 4637 } |
| 4618 | 4638 |
| 4619 } // namespace dart | 4639 } // namespace dart |
| 4620 | 4640 |
| 4621 #undef __ | 4641 #undef __ |
| 4622 | 4642 |
| 4623 #endif // defined TARGET_ARCH_X64 | 4643 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |