| 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 4620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4631 | 4631 |
| 4632 | 4632 |
| 4633 void SmiToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4633 void SmiToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4634 Register value = locs()->in(0).reg(); | 4634 Register value = locs()->in(0).reg(); |
| 4635 FpuRegister result = locs()->out(0).fpu_reg(); | 4635 FpuRegister result = locs()->out(0).fpu_reg(); |
| 4636 __ SmiUntag(value); | 4636 __ SmiUntag(value); |
| 4637 __ cvtsi2sd(result, value); | 4637 __ cvtsi2sd(result, value); |
| 4638 } | 4638 } |
| 4639 | 4639 |
| 4640 | 4640 |
| 4641 LocationSummary* MintToDoubleInstr::MakeLocationSummary(Isolate* isolate, |
| 4642 bool opt) const { |
| 4643 UNIMPLEMENTED(); |
| 4644 return NULL; |
| 4645 } |
| 4646 |
| 4647 |
| 4648 void MintToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4649 UNIMPLEMENTED(); |
| 4650 } |
| 4651 |
| 4652 |
| 4641 LocationSummary* DoubleToIntegerInstr::MakeLocationSummary(Isolate* isolate, | 4653 LocationSummary* DoubleToIntegerInstr::MakeLocationSummary(Isolate* isolate, |
| 4642 bool opt) const { | 4654 bool opt) const { |
| 4643 const intptr_t kNumInputs = 1; | 4655 const intptr_t kNumInputs = 1; |
| 4644 const intptr_t kNumTemps = 1; | 4656 const intptr_t kNumTemps = 1; |
| 4645 LocationSummary* result = new(isolate) LocationSummary( | 4657 LocationSummary* result = new(isolate) LocationSummary( |
| 4646 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); | 4658 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 4647 result->set_in(0, Location::RegisterLocation(RCX)); | 4659 result->set_in(0, Location::RegisterLocation(RCX)); |
| 4648 result->set_out(0, Location::RegisterLocation(RAX)); | 4660 result->set_out(0, Location::RegisterLocation(RAX)); |
| 4649 result->set_temp(0, Location::RegisterLocation(RBX)); | 4661 result->set_temp(0, Location::RegisterLocation(RBX)); |
| 4650 return result; | 4662 return result; |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5910 __ movq(R10, Immediate(kInvalidObjectPointer)); | 5922 __ movq(R10, Immediate(kInvalidObjectPointer)); |
| 5911 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 5923 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
| 5912 #endif | 5924 #endif |
| 5913 } | 5925 } |
| 5914 | 5926 |
| 5915 } // namespace dart | 5927 } // namespace dart |
| 5916 | 5928 |
| 5917 #undef __ | 5929 #undef __ |
| 5918 | 5930 |
| 5919 #endif // defined TARGET_ARCH_X64 | 5931 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |