| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 3814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3825 | 3825 |
| 3826 void SmiToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3826 void SmiToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3827 Register value = locs()->in(0).reg(); | 3827 Register value = locs()->in(0).reg(); |
| 3828 FpuRegister result = locs()->out(0).fpu_reg(); | 3828 FpuRegister result = locs()->out(0).fpu_reg(); |
| 3829 __ SmiUntag(TMP, value); | 3829 __ SmiUntag(TMP, value); |
| 3830 __ mtc1(TMP, STMP1); | 3830 __ mtc1(TMP, STMP1); |
| 3831 __ cvtdw(result, STMP1); | 3831 __ cvtdw(result, STMP1); |
| 3832 } | 3832 } |
| 3833 | 3833 |
| 3834 | 3834 |
| 3835 LocationSummary* MintToDoubleInstr::MakeLocationSummary(Isolate* isolate, |
| 3836 bool opt) const { |
| 3837 UNIMPLEMENTED(); |
| 3838 return NULL; |
| 3839 } |
| 3840 |
| 3841 |
| 3842 void MintToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3843 UNIMPLEMENTED(); |
| 3844 } |
| 3845 |
| 3846 |
| 3835 LocationSummary* DoubleToIntegerInstr::MakeLocationSummary(Isolate* isolate, | 3847 LocationSummary* DoubleToIntegerInstr::MakeLocationSummary(Isolate* isolate, |
| 3836 bool opt) const { | 3848 bool opt) const { |
| 3837 const intptr_t kNumInputs = 1; | 3849 const intptr_t kNumInputs = 1; |
| 3838 const intptr_t kNumTemps = 0; | 3850 const intptr_t kNumTemps = 0; |
| 3839 LocationSummary* result = new(isolate) LocationSummary( | 3851 LocationSummary* result = new(isolate) LocationSummary( |
| 3840 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); | 3852 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 3841 result->set_in(0, Location::RegisterLocation(T1)); | 3853 result->set_in(0, Location::RegisterLocation(T1)); |
| 3842 result->set_out(0, Location::RegisterLocation(V0)); | 3854 result->set_out(0, Location::RegisterLocation(V0)); |
| 3843 return result; | 3855 return result; |
| 3844 } | 3856 } |
| (...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4914 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 4926 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 4915 #if defined(DEBUG) | 4927 #if defined(DEBUG) |
| 4916 __ LoadImmediate(S4, kInvalidObjectPointer); | 4928 __ LoadImmediate(S4, kInvalidObjectPointer); |
| 4917 __ LoadImmediate(S5, kInvalidObjectPointer); | 4929 __ LoadImmediate(S5, kInvalidObjectPointer); |
| 4918 #endif | 4930 #endif |
| 4919 } | 4931 } |
| 4920 | 4932 |
| 4921 } // namespace dart | 4933 } // namespace dart |
| 4922 | 4934 |
| 4923 #endif // defined TARGET_ARCH_MIPS | 4935 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |