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 4790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4801 } | 4801 } |
4802 | 4802 |
4803 | 4803 |
4804 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, | 4804 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, |
4805 bool opt) const { | 4805 bool opt) const { |
4806 const intptr_t kNumInputs = 1; | 4806 const intptr_t kNumInputs = 1; |
4807 const intptr_t kNumTemps = 1; | 4807 const intptr_t kNumTemps = 1; |
4808 LocationSummary* result = new(isolate) LocationSummary( | 4808 LocationSummary* result = new(isolate) LocationSummary( |
4809 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); | 4809 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); |
4810 result->set_in(0, Location::RequiresFpuRegister()); | 4810 result->set_in(0, Location::RequiresFpuRegister()); |
4811 result->set_out(0, Location:: Location::RequiresRegister()); | 4811 result->set_out(0, Location::RequiresRegister()); |
4812 result->set_temp(0, Location::RequiresRegister()); | 4812 result->set_temp(0, Location::RequiresRegister()); |
4813 return result; | 4813 return result; |
4814 } | 4814 } |
4815 | 4815 |
4816 | 4816 |
4817 void DoubleToSmiInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4817 void DoubleToSmiInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
4818 Label* deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptDoubleToSmi); | 4818 Label* deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptDoubleToSmi); |
4819 Register result = locs()->out(0).reg(); | 4819 Register result = locs()->out(0).reg(); |
4820 XmmRegister value = locs()->in(0).fpu_reg(); | 4820 XmmRegister value = locs()->in(0).fpu_reg(); |
4821 Register temp = locs()->temp(0).reg(); | 4821 Register temp = locs()->temp(0).reg(); |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5825 PcDescriptors::kOther, | 5825 PcDescriptors::kOther, |
5826 locs()); | 5826 locs()); |
5827 __ Drop(ArgumentCount()); // Discard arguments. | 5827 __ Drop(ArgumentCount()); // Discard arguments. |
5828 } | 5828 } |
5829 | 5829 |
5830 } // namespace dart | 5830 } // namespace dart |
5831 | 5831 |
5832 #undef __ | 5832 #undef __ |
5833 | 5833 |
5834 #endif // defined TARGET_ARCH_X64 | 5834 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |