| 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 "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 3394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3405 summary->set_out(Location::SameAsFirstInput()); | 3405 summary->set_out(Location::SameAsFirstInput()); |
| 3406 return summary; | 3406 return summary; |
| 3407 } | 3407 } |
| 3408 | 3408 |
| 3409 | 3409 |
| 3410 void Float32x4ToUint32x4Instr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3410 void Float32x4ToUint32x4Instr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3411 // NOP. | 3411 // NOP. |
| 3412 } | 3412 } |
| 3413 | 3413 |
| 3414 | 3414 |
| 3415 LocationSummary* Float32x4TwoArgShuffleInstr::MakeLocationSummary() const { |
| 3416 const intptr_t kNumInputs = 2; |
| 3417 const intptr_t kNumTemps = 0; |
| 3418 LocationSummary* summary = |
| 3419 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 3420 summary->set_in(0, Location::RequiresFpuRegister()); |
| 3421 summary->set_in(1, Location::RequiresFpuRegister()); |
| 3422 summary->set_out(Location::SameAsFirstInput()); |
| 3423 return summary; |
| 3424 } |
| 3425 |
| 3426 |
| 3427 void Float32x4TwoArgShuffleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3428 XmmRegister left = locs()->in(0).fpu_reg(); |
| 3429 XmmRegister right = locs()->in(1).fpu_reg(); |
| 3430 |
| 3431 ASSERT(locs()->out().fpu_reg() == left); |
| 3432 |
| 3433 switch (op_kind()) { |
| 3434 case MethodRecognizer::kFloat32x4WithZWInXY: |
| 3435 __ movhlps(left, right); |
| 3436 break; |
| 3437 case MethodRecognizer::kFloat32x4InterleaveXY: |
| 3438 __ unpcklps(left, right); |
| 3439 break; |
| 3440 case MethodRecognizer::kFloat32x4InterleaveZW: |
| 3441 __ unpckhps(left, right); |
| 3442 break; |
| 3443 case MethodRecognizer::kFloat32x4InterleaveXYPairs: |
| 3444 __ unpcklpd(left, right); |
| 3445 break; |
| 3446 case MethodRecognizer::kFloat32x4InterleaveZWPairs: |
| 3447 __ unpckhpd(left, right); |
| 3448 break; |
| 3449 default: UNREACHABLE(); |
| 3450 } |
| 3451 } |
| 3452 |
| 3453 |
| 3415 LocationSummary* Uint32x4BoolConstructorInstr::MakeLocationSummary() const { | 3454 LocationSummary* Uint32x4BoolConstructorInstr::MakeLocationSummary() const { |
| 3416 const intptr_t kNumInputs = 4; | 3455 const intptr_t kNumInputs = 4; |
| 3417 const intptr_t kNumTemps = 1; | 3456 const intptr_t kNumTemps = 1; |
| 3418 LocationSummary* summary = | 3457 LocationSummary* summary = |
| 3419 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); | 3458 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 3420 summary->set_in(0, Location::RequiresRegister()); | 3459 summary->set_in(0, Location::RequiresRegister()); |
| 3421 summary->set_in(1, Location::RequiresRegister()); | 3460 summary->set_in(1, Location::RequiresRegister()); |
| 3422 summary->set_in(2, Location::RequiresRegister()); | 3461 summary->set_in(2, Location::RequiresRegister()); |
| 3423 summary->set_in(3, Location::RequiresRegister()); | 3462 summary->set_in(3, Location::RequiresRegister()); |
| 3424 summary->set_temp(0, Location::RequiresRegister()); | 3463 summary->set_temp(0, Location::RequiresRegister()); |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4512 PcDescriptors::kOther, | 4551 PcDescriptors::kOther, |
| 4513 locs()); | 4552 locs()); |
| 4514 __ Drop(2); // Discard type arguments and receiver. | 4553 __ Drop(2); // Discard type arguments and receiver. |
| 4515 } | 4554 } |
| 4516 | 4555 |
| 4517 } // namespace dart | 4556 } // namespace dart |
| 4518 | 4557 |
| 4519 #undef __ | 4558 #undef __ |
| 4520 | 4559 |
| 4521 #endif // defined TARGET_ARCH_X64 | 4560 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |