| 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 4782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4793 } | 4793 } |
| 4794 | 4794 |
| 4795 | 4795 |
| 4796 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, | 4796 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, |
| 4797 bool opt) const { | 4797 bool opt) const { |
| 4798 const intptr_t kNumInputs = 1; | 4798 const intptr_t kNumInputs = 1; |
| 4799 const intptr_t kNumTemps = 1; | 4799 const intptr_t kNumTemps = 1; |
| 4800 LocationSummary* result = new(isolate) LocationSummary( | 4800 LocationSummary* result = new(isolate) LocationSummary( |
| 4801 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); | 4801 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 4802 result->set_in(0, Location::RequiresFpuRegister()); | 4802 result->set_in(0, Location::RequiresFpuRegister()); |
| 4803 result->set_out(0, Location:: Location::RequiresRegister()); | 4803 result->set_out(0, Location::RequiresRegister()); |
| 4804 result->set_temp(0, Location::RequiresRegister()); | 4804 result->set_temp(0, Location::RequiresRegister()); |
| 4805 return result; | 4805 return result; |
| 4806 } | 4806 } |
| 4807 | 4807 |
| 4808 | 4808 |
| 4809 void DoubleToSmiInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4809 void DoubleToSmiInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4810 Label* deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptDoubleToSmi); | 4810 Label* deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptDoubleToSmi); |
| 4811 Register result = locs()->out(0).reg(); | 4811 Register result = locs()->out(0).reg(); |
| 4812 XmmRegister value = locs()->in(0).fpu_reg(); | 4812 XmmRegister value = locs()->in(0).fpu_reg(); |
| 4813 Register temp = locs()->temp(0).reg(); | 4813 Register temp = locs()->temp(0).reg(); |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5817 PcDescriptors::kOther, | 5817 PcDescriptors::kOther, |
| 5818 locs()); | 5818 locs()); |
| 5819 __ Drop(ArgumentCount()); // Discard arguments. | 5819 __ Drop(ArgumentCount()); // Discard arguments. |
| 5820 } | 5820 } |
| 5821 | 5821 |
| 5822 } // namespace dart | 5822 } // namespace dart |
| 5823 | 5823 |
| 5824 #undef __ | 5824 #undef __ |
| 5825 | 5825 |
| 5826 #endif // defined TARGET_ARCH_X64 | 5826 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |